我的iAd / AdMob中介适用于所有iOS 7模拟器和设备。 但是,iOS 8 didFailToReceiveAdWithError方法不适用于任何模拟器,但适用于iOS 8设备。 问题是我没有iPhone 6/6 +设备来testing。 所以我在iOS 8模拟器。 -(void)bannerViewDidLoadAd:(ADBannerView *)banner{ [UIView beginAnimations:nil context:NULL]; iAd.frame=CGRectOffset (iAd.frame 0, -667); [UIView commitAnimations]; [UIView beginAnimations:nil context:NULL]; iAd.frame=CGRectOffset (iAd.frame 0, 0); [UIView commitAnimations]; } -(void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error{ [UIView beginAnimations:nil context:NULL]; iAd.frame=CGRectOffset (iAd.frame 0, -740); [UIView commitAnimations]; [UIView beginAnimations:nil context:NULL]; AdMob.frame=CGRectOffset (iAd.frame 0, -667); [UIView […]
我试图将admob广告合并到我的应用程序中。 到目前为止,我已经在我的应用程序的主要活动的onCreate方法中添加了以下代码… adView = new AdView(this,AdSize.BANNER,"my code number"); adView.loadAd(new AdRequest()); 该程序编译没有错误,但在运行时,我得到消息java.lang.NoClassDefFoundError: com.google.ads.AdView 。 我已经看到了这个问题的解释和治愈,但是我不明白它是如何适用于我的项目,因为我的项目中没有“lib”或“libs”目录。 据eclipse的SDK经理介绍,我使用的是最新的版本。
我在将应用程序放入admob后出现错误。 昨天的应用程序工作正常,但今天它没有工作了..错误如下: ld: library not found for -lGoogleAdMobAds clang: error: linker command failed with exit code 1 (use -v to see invocation) 如何解决它? 谢谢 !!
我做了大量的研究,这对于许多用户来说似乎是一个常见的错误,但是原因却非常不同。 没有发现我为我工作。 我越来越 java.lang.RuntimeException: Unable to start activity ComponentInfo{ […]/[…].activities.StartActivity}: android.view.InflateException: Binary XML file line #173: Error inflating class […].BannerAd […] Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class com.google.android.gms.ads.AdView […] Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.AdView" on path: DexPathList[[zip file "/data/app/[…]-1.apk"],nativeLibraryDirectories=[/data/app-lib/[…]-1, /vendor/lib, /system/lib]] 我正在安装最新版本的ADT和SDK软件包。 我将google-play-services_lib复制到我的工作区,并将其作为Android项目导入。 我把它作为一个库添加到我的应用程序项目。 我检查了“订单和出口”下的所有内容。 我有一个banner_ad.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" […]
我刚开始面对iOS 10 GM版本的这个问题。 我收到一封电子邮件说: 要处理您的交付,必须纠正以下问题: 此应用程序尝试访问隐私敏感的数据,没有使用说明。 应用程序的Info.plist必须包含一个带有string值的NSCameraUsageDescription项,向用户解释应用程序如何使用此数据。 一旦所需的更正已经完成,您可以重新发送更正后的二进制文件。 问候, App Store团队 我正在使用谷歌的GoogleSignIn。 我没有使用Firebase,但是使用cocoa pod安装GoogleSignIn时,我在日志中看到它自动安装了Firebase。 除了必须定义这些键之外,还有什么我们可以做的,因为我的应用程序与相机/照片等无关,因此我不希望用户认为我们正在使用它们。 我注意到其他人也面临这个问题: https : //forums.developer.apple.com/thread/62229
我注意到,当我在build.gradle文件中使用以下权限时,会自动添加以下权限 compile 'com.google.android.gms:play-services:7.5.0' 这与早期版本的播放服务没有发生。 有没有人有一个解决scheme来删除这些不需要的权限? 我只使用广告function(INTERNET和ACCESSNETWORK_STATE)。 我不需要LOCATION和USE_CREDENTIALS权限。 你如何删除这些不需要的权限? 我注意到'manifest-merger-xxx-debug-report.txt'文件包含以下内容 …<snipped bunch of other merges> MERGED from com.google.android.gms:play-services-maps:7.5.0:22:5 android:name ADDED from com.google.android.gms:play-services-maps:7.5.0:22:22 uses-permission#android.permission.ACCESS_COARSE_LOCATION ADDED from com.google.android.gms:play-services-maps:7.5.0:23:5 MERGED from com.google.android.gms:play-services-maps:7.5.0:23:5 MERGED from com.google.android.gms:play-services-maps:7.5.0:23:5 MERGED from com.google.android.gms:play-services-maps:7.5.0:23:5 android:name ADDED from com.google.android.gms:play-services-maps:7.5.0:23:22 uses-feature#0x00020000 ADDED from com.google.android.gms:play-services-maps:7.5.0:24:5 MERGED from com.google.android.gms:play-services-maps:7.5.0:24:5 MERGED from com.google.android.gms:play-services-maps:7.5.0:24:5 MERGED from com.google.android.gms:play-services-maps:7.5.0:24:5 android:glEsVersion ADDED from com.google.android.gms:play-services-maps:7.5.0:25:8 […]
在我的AndroidManifest.xml中,Eclipse给了我一个关于android:configChanges行的错误: <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"></activity> 错误是: error: Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize'). 如果我只留下keyboard|keyboardHidden|orientation那就没有错误,但是当我尝试构build时,编译器要求剩下的4个。 我正在使用GoogleAdMobAdsSDK-4.3.1 。 有任何想法吗? 编辑:我得到了它通过更改我的project.properties (SDK的低于14)的文件default.properties工作: # Project target. target=android-14 并在我的SDK Manager中安装SDK平台Android 4.0 – 修订版本14 。 它也应该为SDK平台的Android 3.2 – 修订版13 ,所以你只需要更改project.properties目标为android-13,如果是这样的话。 基本上你只需要确保SDK修订版本是13或者更高版本,并且你已经在SDKpipe理器中安装了这个SDK,并且default / project.properties中的项目目标指向了它。
当我按照说明通过xml将广告添加到我的应用程序中时,出现以下错误: Description Resource Path Location Type error: No resource identifier found for attribute 'adSize' in package 'com.google.example' main.xml /HelloWorld/res/layout line 12 Android AAPT Problem Description Resource Path Location Type error: No resource identifier found for attribute 'adUnitId' in package 'com.google.example' main.xml /HelloWorld/res/layout line 12 Android AAPT Problem 我没有编辑main.xml ,添加attrs.xml文件,但编译器不喜欢它。