我在将最新版本的应用上传到 Google Play 商店时遇到问题。
我的应用程序没有任何广告,但它使用 Firebase 并com.google.android.gms.permission.AD_ID放入合并清单中。这就是为什么我在“应用内容 > 广告 ID”表单中声明我的应用使用广告 ID 进行分析。
但是,我现在收到以下错误:
您在 Play 管理中心中的广告 ID 声明表明您的应用使用广告 ID。您的活动工件之一中的清单文件不包含 com.google.android.gms.permission.AD_ID 权限。
这是不正确的,因为我的清单中有它,而且我也尝试将其手动放入我的清单中。但没有运气。还是同样的错误。
另一方面,当我更新“应用程序内容 > 广告 ID”表单以表明我的应用程序不使用广告 ID 时,我收到以下错误:
此版本包含 com.google.android.gms.permission.AD_ID 权限,但您在 Play 管理中心上的声明表明您的应用不使用广告 ID。
我应该怎么办?无论我选择什么,都会弹出错误。
我在JSF 2.2.7和Primefaces 5中打开对话框时遇到问题.我有按钮打开一个对话框,每次单击按钮@PostConstruct方法时都会出现问题.为什么?
我只想调用@PostConstruct一次,但我不想将范围更改为Session(使用@SessionScope注释它完美地工作).
这是我的观点:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
<h:form id="f1">
<p:dialog widgetVar="trainingDialog2" id="d1">
<h:outputText value="#{userViewBean.errorMessage}" />
</p:dialog>
<br />
<p:dataTable id="dt1" value="#{userViewBean.infoList}" var="item">
<p:column>
<p:commandButton id="btn" update=":f1:d1"
oncomplete="PF('trainingDialog2').show()"
styleClass="ui-icon ui-icon-calendar">
<f:setPropertyActionListener value="#{item.id}"
target="#{userViewBean.errorMessage}" />
</p:commandButton>
</p:column>
</p:dataTable>
</h:form>
</h:body>
</html>
Run Code Online (Sandbox Code Playgroud)
这是我的豆子:
package pl.jrola.java.www.vigym.viewcontroller.beans.userview;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.view.ViewScoped;
@ManagedBean(name = "userViewBean")
@ViewScoped
public class UserViewBean implements Serializable {
private static final long serialVersionUID = …Run Code Online (Sandbox Code Playgroud)