- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
这是我加载广告的代码:
adView = new AdView(this,getResources().getString(R.string.facebook_ad_id) , AdSize.BANNER_320_50);
LinearLayout layout = (LinearLayout)findViewById(R.id.adView);
layout.addView(adView);
//AdSettings.addTestDevice("d0750cd2c16e48849a32688beeaa1890");
adView.loadAd();
除非我取消对 AdSettings.addTestDevice() 的注释,否则此代码将无法运行,这就是问题所在。我想看看它是否适用于发布。
这是我尝试加载广告时的 logcat:
05-25 15:34:09.253 13334-13572/h2d.drawteam.howtodraw D/IMGSRV: gralloc_register_buffer:1390: hnd=0x55725c6890 ID=280842 fd=88 ref=1
05-25 15:34:09.253 13334-13572/h2d.drawteam.howtodraw D/GraphicBuffer: register, handle(0x55725c6890) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)
05-25 15:34:09.310 13334-13334/h2d.drawteam.howtodraw V/SettingsInterface: from settings cache , name = sound_effects_enabled , value = 1
05-25 15:34:09.328 13334-22002/h2d.drawteam.howtodraw E/ActivityThread: Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider
05-25 15:34:09.332 13334-13334/h2d.drawteam.howtodraw D/ColorDrawable: Color = -1118482, canvas = android.view.GLES20RecordingCanvas@6b66443, mTintMode = SRC_IN, mTint = null, ColorDrawable = android.graphics.drawable.ColorDrawable@1f5f1cdd
05-25 15:34:09.393 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]rx timeout:1
05-25 15:34:09.394 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]rx timeout:1
05-25 15:34:09.394 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 sslRead buf=0x55727744e0 len=2048,timeo=10
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 info_callback where=0x4004 ret=256
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 SSL3 alert read:W:CN warning close notify
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 info_callback ignored
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]rx timeout:8000
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]rx timeout:8000
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw I/System.out: Close in OkHttp:0
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 NativeCrypto_SSL_interrupt
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: sslNotify, appData=0x5572417de0 ret=1
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: sslNotify, appData=0x5572417de0 ret=1
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 info_callback where=0x4008 ret=256
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 SSL3 alert write:W:CN warning close notify
05-25 15:34:09.396 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x557258cde0 info_callback ignored
05-25 15:34:09.397 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]close[49487]
05-25 15:34:09.397 13334-22004/h2d.drawteam.howtodraw D/libc-netbsd: [getaddrinfo]: hostname=graph.facebook.com; servname=(null); cache_mode=(null), netid=0; mark=0
05-25 15:34:09.397 13334-22004/h2d.drawteam.howtodraw D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
05-25 15:34:09.397 13334-22004/h2d.drawteam.howtodraw D/libc-netbsd: [getaddrinfo]: hostname=graph.facebook.com; servname=(null); cache_mode=(null), netid=0; mark=0
05-25 15:34:09.397 13334-22004/h2d.drawteam.howtodraw D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
05-25 15:34:09.415 13334-22004/h2d.drawteam.howtodraw D/libc-netbsd: getaddrinfo: graph.facebook.com get result from proxy >>
05-25 15:34:09.415 13334-22004/h2d.drawteam.howtodraw I/System.out: propertyValue:true
05-25 15:34:09.420 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]rx timeout:8000
05-25 15:34:09.421 13334-22004/h2d.drawteam.howtodraw I/System.out: [socket][3] connection graph.facebook.com/31.13.92.10:443;LocalPort=36844(0)
05-25 15:34:09.421 13334-22004/h2d.drawteam.howtodraw I/System.out: [CDS]connect[graph.facebook.com/31.13.92.10:443] tm:90
05-25 15:34:09.422 13334-22004/h2d.drawteam.howtodraw D/Posix: [Posix_connect Debug]Process h2d.drawteam.howtodraw :443
05-25 15:34:09.455 13334-22004/h2d.drawteam.howtodraw I/System.out: [socket][/192.168.1.107:36844] connected
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 NativeCrypto_SSL_do_handshake fd=0x7f7c141f94 shc=0x7f7c141f98 timeout_millis=8000 client_mode=1 npn=0x0
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: doing handshake ++
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x10 ret=1
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 handshake start in UNKWN before/connect initialization
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback calling handshakeCompleted
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback completed
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:UNKWN before/connect initialization
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3WCH_A SSLv3 write client hello A
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1002 ret=-1
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:error exit in 3RSH_A SSLv3 read server hello A
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: doing handshake -- ret=-1
05-25 15:34:09.460 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 NativeCrypto_SSL_do_handshake ret=-1 errno=11 sslError=2 timeout_millis=8000
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: doing handshake ++
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3RSH_A SSLv3 read server hello A
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3RFINA SSLv3 read finished A
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3WCCSA SSLv3 write change cipher spec A
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3WFINA SSLv3 write finished A
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1001 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:3FLUSH SSLv3 flush data
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x20 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 handshake done in SSLOK SSL negotiation finished successfully
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback calling handshakeCompleted
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback completed
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback where=0x1002 ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 SSL_connect:ok exit in SSLOK SSL negotiation finished successfully
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 info_callback ignored
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: doing handshake -- ret=1
05-25 15:34:09.494 13334-22004/h2d.drawteam.howtodraw I/System.out: gba_cipher_suite:TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
05-25 15:34:09.495 13334-22004/h2d.drawteam.howtodraw I/System.out: [OkHttp] sendRequest>>
05-25 15:34:09.495 13334-22004/h2d.drawteam.howtodraw I/System.out: [OkHttp] sendRequest<<
05-25 15:34:09.495 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 sslWrite buf=0x55727744e0 len=1079 write_timeout_millis=0
05-25 15:34:09.495 13334-22004/h2d.drawteam.howtodraw D/NativeCrypto: ssl=0x5572747e30 sslRead buf=0x55727744e0 len=2048,timeo=8000
我怀疑 E/ActivityThread: Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider
错误应该告诉我一些事情,但据我搜索,它与权限或错误的 ID,但所有这些都已正确设置。
最佳答案
事实证明,只有在 Facebook 开发者控制台中的管理员批准该应用程序后,Facebook 才会转换广告。
关于android - Facebook SDK 广告在没有 AdSettings.addTestDevice 的情况下无法工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37437376/
我通过 spring ioc 编写了一些 Rest 应用程序。但我无法解决这个问题。这是我的异常(exception): org.springframework.beans.factory.BeanC
我对 TestNG、Spring 框架等完全陌生,我正在尝试使用注释 @Value通过 @Configuration 访问配置文件注释。 我在这里想要实现的目标是让控制台从配置文件中写出“hi”,通过
为此工作了几个小时。我完全被难住了。 这是 CS113 的实验室。 如果用户在程序(二进制计算器)结束时选择继续,我们需要使用 goto 语句来到达程序的顶部。 但是,我们还需要释放所有分配的内存。
我正在尝试使用 ffmpeg 库构建一个小的 C 程序。但是我什至无法使用 avformat_open_input() 打开音频文件设置检查错误代码的函数后,我得到以下输出: Error code:
使用 Spring Initializer 创建一个简单的 Spring boot。我只在可用选项下选择 DevTools。 创建项目后,无需对其进行任何更改,即可正常运行程序。 现在,当我尝试在项目
所以我只是在 Mac OS X 中通过 brew 安装了 qt。但是它无法链接它。当我尝试运行 brew link qt 或 brew link --overwrite qt 我得到以下信息: ton
我在提交和 pull 时遇到了问题:在提交的 IDE 中,我看到: warning not all local changes may be shown due to an error: unable
我跑 man gcc | grep "-L" 我明白了 Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more inf
我有一段代码,旨在接收任何 URL 并将其从网络上撕下来。到目前为止,它运行良好,直到有人给了它这个 URL: http://www.aspensurgical.com/static/images/a
在过去的 5 个小时里,我一直在尝试在我的服务器上设置 WireGuard,但在完成所有设置后,我无法 ping IP 或解析域。 下面是服务器配置 [Interface] Address = 10.
我正在尝试在 GitLab 中 fork 我的一个私有(private)项目,但是当我按下 fork 按钮时,我会收到以下信息: No available namespaces to fork the
我这里遇到了一些问题。我是 node.js 和 Rest API 的新手,但我正在尝试自学。我制作了 REST API,使用 MongoDB 与我的数据库进行通信,我使用 Postman 来测试我的路
下面的代码在控制台中给出以下消息: Uncaught DOMException: Failed to execute 'appendChild' on 'Node': The new child el
我正在尝试调用一个新端点来显示数据,我意识到在上一组有效的数据中,它在数据周围用一对额外的“[]”括号进行控制台,我认为这就是问题是,而新端点不会以我使用数据的方式产生它! 这是 NgFor 失败的原
我正在尝试将我的 Symfony2 应用程序部署到我的 Azure Web 应用程序,但遇到了一些麻烦。 推送到远程时,我在终端中收到以下消息 remote: Updating branch 'mas
Minikube已启动并正在运行,没有任何错误,但是我无法 curl IP。我在这里遵循:https://docs.traefik.io/user-guide/kubernetes/,似乎没有提到关闭
每当我尝试docker组成任何项目时,都会出现以下错误。 我尝试过有和没有sudo 我在这台机器上只有这个问题。我可以在Mac和Amazon WorkSpace上运行相同的容器。 (myslabs)
我正在尝试 pip install stanza 并收到此消息: ERROR: No matching distribution found for torch>=1.3.0 (from stanza
DNS 解析看起来不错,但我无法 ping 我的服务。可能是什么原因? 来自集群中的另一个 Pod: $ ping backend PING backend.default.svc.cluster.l
我正在使用Hibernate 4 + Spring MVC 4当我开始 Apache Tomcat Server 8我收到此错误: Error creating bean with name 'wel
我是一名优秀的程序员,十分优秀!