2017-02-08 9 views
8

मैं अपने ऐप में HeyZap विज्ञापनों को एकीकृत करने की कोशिश कर रहा हूँ, लेकिन मैं निर्माण पर इस त्रुटि प्राप्त हो रही: त्रुटि: screenSize | smallestScreenSize)।त्रुटि: screenSize | smallestScreenSize एंड्रॉयड स्टूडियो लक्ष्य एसडीके 23

मैं इस पर खोज की है और मैंने पाया है कि यह लक्ष्य एसडीके त्रुटि जो कम से कम 13 होना चाहिए, लेकिन यहाँ मैं एसडीके 23 का उपयोग कर रहा है।

यहाँ मेरी मैनिफ़ेस्ट फ़ाइल है:

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:[email protected]' 
 
    compile(name:'heyzap-unified-platform-10.3.0', ext:'aar') 
 
}

यह एक तस्वीर है:

<?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>

यहाँ मेरी build.gradle फ़ाइल है त्रुटि के संरचना:

enter image description here

और इस लिंक मैं निम्नलिखित किया गया है है: https://developers.heyzap.com/docs/android_sdk_setup_and_requirements

+0

आप इस समस्या को हल करने के लिए प्रबंधन किया था? – Marty

+0

मैंने बहुत सारे समाधानों की कोशिश की है लेकिन कुछ भी काम नहीं किया है, इसे हटाकर त्रुटि हुई है। –

+0

मुझे अपने कोड में एक ही समस्या है, हालांकि मैं हेज़पैप का उपयोग नहीं करता हूं। कोई विचार नहीं कि इसे कैसे हटाया जाए – Anton

उत्तर

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

screenSize & smallestScreenSize विशेषताओं एसडीके 10.They में उपलब्ध नहीं हैं एपीआई स्तर से उपलब्ध हैं 13.

अधिक जानकारी के लिए: http://developer.android.com/guide/topics/manifest/activity-element.html#config

0

मेरा मुद्दा मेरे सेटअप के लिए विशिष्ट था। मैं --stacktrace --debug के लिए मेरी संकलक झंडे निर्धारित किया था और जब मुझे लगता है कि दूर ले गया (किए गए यह खाली) के रूप में उम्मीद तो चीजें काम किया।

संकलक झंडे फ़ाइल में हैं> सेटिंग> निर्माण, निष्पादन, तैनाती> संकलक

संबंधित मुद्दे