简体   繁体   English

错误:screenSize | smallestScreenSize android studio目标SDK 23

[英]Error : screenSize|smallestScreenSize android studio Target SDK 23

I'm trying to integrate HeyZap ads into my app but I keep getting this error on build : Error:screenSize|smallestScreenSize). 我正在尝试将HeyZap广告集成到我的应用中,但在构建时不断出现此错误:Error:screenSize | smallestScreenSize)。

I've searched on it and I found that it's target sdk error which should be at least 13 but here I'm using SDK 23 . 我搜索了它,发现它的目标sdk错误应该至少为13,但在这里我使用的是SDK 23。

Here is my Manifest file : 这是我的清单文件:

 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.celebria"> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:name="com.celebria.MyApplication"> <activity android:name=".ActivitySplash" android:theme="@style/AppThemeLogin" android:windowSoftInputMode="adjustPan"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".Tutorial" android:theme="@style/AppThemeLogin" android:windowSoftInputMode="adjustPan" /> <activity android:name=".ActivityLogin" android:theme="@style/AppThemeLogin" android:windowSoftInputMode="adjustPan" /> <receiver android:name=".AlarmReceiver" android:enabled="true" android:process=":remote" android:exported="true"/> <receiver android:name=".BootReceiver" android:enabled="true" android:exported="true"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <action android:name="android.intent.action.QUICKBOOT_POWERON"/> </intent-filter> </receiver> <service android:name=".DownloadService" android:enabled="true" android:stopWithTask="false" android:exported="true"/> <activity android:name=".Home" android:theme="@style/AppThemeLogin" android:windowSoftInputMode="adjustPan" /> <activity android:name=".ActivityCreateAccount" android:theme="@style/AppThemeLogin" android:windowSoftInputMode="adjustPan" /> <activity android:name=".ActivityActiveTrivia" android:theme="@style/AppThemeLogin" android:windowSoftInputMode="adjustPan" /> <activity android:name=".ActivityMatchUp" android:theme="@style/AppThemeLogin" android:windowSoftInputMode="adjustPan" /> <activity android:name=".ActivityQuestionAnswer" android:theme="@style/AppThemeLogin" android:windowSoftInputMode="adjustPan" /> <activity android:name=".ActivityWinner" android:theme="@style/AppThemeLogin" android:windowSoftInputMode="adjustPan" /> <activity android:name=".CreateAccount" android:theme="@style/AppThemeLogin"/> <activity android:name=".ActivityForgotPassword" android:theme="@style/AppThemeLogin" android:windowSoftInputMode="adjustPan" /> <!-- Google Play Services --> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/> <!-- Fyber Marketplace --> <activity android:name="com.heyzap.sdk.ads.HeyzapIncentivizedActivity" android:configChanges="orientation|screenSize" android:theme="@android:style/Theme.Translucent" android:hardwareAccelerated="true" /> <activity android:name="com.heyzap.sdk.ads.HeyzapInterstitialActivity" android:configChanges="orientation|screenSize" android:theme="@android:style/Theme.Translucent" /> <activity android:name="com.heyzap.sdk.ads.MediationTestActivity" /> <activity android:name="com.fyber.ads.ofw.OfferWallUnityActivity" android:configChanges="orientation" /> <service android:name="com.fyber.cache.CacheVideoDownloadService" android:exported="false" /> <meta-data android:name="FYBVideoPlayerOptionCloseButtonDelay" android:value="-1" /> </application> </manifest> 

Here is my build.gradle file : 这是我的build.gradle文件:

 apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultConfig { applicationId "com.celebria" minSdkVersion 16 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } repositories { mavenCentral() maven { name "Fyber's maven repo" url "https://fyber.bintray.com/maven" } flatDir { dirs "libs" } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' compile'com.google.android.gms:play-services-location:10.0.1' compile'com.google.android.gms:play-services-ads:10.0.1' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.wang.avi:library:2.1.3' compile 'com.squareup.picasso:picasso:2.5.0' compile 'de.hdodenhof:circleimageview:2.1.0' compile 'jp.wasabeef:blurry:2.1.0' compile 'com.squareup.picasso:picasso:2.5.2' compile 'uk.co.chrisjenx:calligraphy:2.2.0' compile 'me.relex:circleindicator:1.2.2@aar' compile(name:'heyzap-unified-platform-10.3.0', ext:'aar') } 

This is a picture of the error : 这是错误的图片:

在此处输入图片说明

and this is the link I've been following : https://developers.heyzap.com/docs/android_sdk_setup_and_requirements 这是我一直关注的链接: https : //developers.heyzap.com/docs/android_sdk_setup_and_requirements

android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"

screenSize & smallestScreenSize attributes are not available in SDK 10.They are available from API level 13. screenSize和minimumScreenSize属性在SDK 10中不可用,它们在API级别13中可用。

For more details: http://developer.android.com/guide/topics/manifest/activity-element.html#config 有关更多详细信息: http : //developer.android.com/guide/topics/manifest/activity-element.html#config

My issue was specific to my setup. 我的问题特定于我的设置。 I had set my compiler flags to have --stacktrace --debug and when I took that off (made it empty) then things worked as expected. 我已经将编译器标志设置为--stacktrace --debug然后将其取消(将其清空),然后一切按预期进行。

Compiler flags are in File > Settings > Build, Execution, Deployment > Compiler 编译器标志位于文件>设置>构建,执行,部署>编译器中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 科尔多瓦:安装了android-23 sdk后仍然出现错误“请安装android target 23” - Cordova: still getting the error “please install android target 23” with android-23 sdk installed Android 6目标sdk = 23安装权限 - Android 6 target sdk=23 permissions on install 将SDK与在6.0 API 23上运行的目标9.0 API 28链接在一起时,Xamarin Android AppCompatCheckBox错误 - Xamarin Android AppCompatCheckBox error when link sdk with target 9.0 API 28 running on 6.0 API 23 Android Travis CI错误:在/ usr / local / android-sdk中找不到带有哈希字符串&#39;android-23&#39;的目标 - Android Travis CI Error: failed to find target with hash string 'android-23' in: /usr/local/android-sdk 在Android Studio中选择目标SDK - Choose the Target SDK in Android Studio 在Android SDK 23中的Windows 7上启动AVD时出错 - Error in Launching AVD on Windows 7 in Android SDK 23 在Android Studio(v 2.1.1; SDK v23)的xml文件中重复出现“父项不匹配”错误 - 'Parent doesn't match' repeated error in xml file in Android Studio (v 2.1.1; SDK v23) 在Fedora 23上运行Android Studio时出错 - Error while running Android Studio on Fedora 23 Android Studio SDK 23中的MalformedURLException,网站重定向到无前缀 - MalformedURLException in Android Studio SDK 23, site redirects to no prefix Android Studio SDK V23 WebView获取地理位置 - android studio sdk v23 webview get geolocation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM