2016-11-01 64 views
-2

我遵守它與sdk 23並試圖用sdk 16編譯它,但錯誤彈出..我不能用sdk 16構建它。 我也試過改變目標sdk和最小sdk。 應用程序適用於棒棒糖和棉花糖。 但像kitkat薑餅更低版本不開放。總是強迫戒菸。我的應用程序不工作(不啓動)與Kitkat或更低的版本

我的build.gradle(應用程序)文件:

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 23 
    buildToolsVersion "25.0.0" 

    defaultConfig { 
     applicationId "com.braveheartcreations.wifiexplorer" 
     minSdkVersion 16 
     targetSdkVersion 17 
     versionCode 1 
     versionName "1.0" 
     multiDexEnabled true 

    } 
    buildTypes { 
     release { 
      shrinkResources true 
      minifyEnabled true 
      proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 
      lintOptions { 
       disable 'MissingTranslation' 
      } 
     } 
    } 
    compileOptions { 
     sourceCompatibility JavaVersion.VERSION_1_8 
     targetCompatibility JavaVersion.VERSION_1_8 
    } 
} 

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:23.4.0' 
    compile 'com.google.android.gms:play-services:9.8.00' 
} 


dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    compile 'net.vrallev.android:cat:1.0.2' 
    provided 'org.projectlombok:lombok:1.16.6' 
    compile 'com.android.support:appcompat-v7:23.2.0' 
    compile 'com.android.support:support-v13:23.2.0' 
    compile 'com.android.support:design:23.2.0' 
    compile 'com.android.support:cardview-v7:23.2.0' 
    compile 'me.dm7.barcodescanner:zxing:1.9' 
    compile 'com.karumi:dexter:2.3.1' 
    compile 'com.google.code.gson:gson:2.2.4' 
    compile 'com.getbase:floatingactionbutton:1.9.0' 
    compile files('libs/ftp4j-1.7.2.jar') 
} 

buildscript { 
    repositories { 
     mavenCentral() 
    } 

    dependencies { 
     classpath 'me.tatarka:gradle-retrolambda:3.2.1' 
    } 
} 

repositories { 
    mavenCentral() 
} 

apply plugin: 'com.android.application' 
apply plugin: 'me.tatarka.retrolambda' 
+0

是否有機會顯示錯誤消息? – Henry

+0

對不起。其實我只擁有marshmallo和棒棒糖設備。而我嘗試在kitkat中安裝應用程序而不打開它。它迫使戒菸。這個配置適用於所有設備? – BraveHeart

回答

0

因爲是的minSdkVersion的16.For設備奇巧,則無法安裝該應用程序的Android成4.0.4和更低版本的設備,必須貼日誌在這裏。

順便說一下,當您使用與JavaVersion.VERSION_1_8的兼容性時,您必須啓用插孔。

defaultConfig { 
    ... 
    jackOptions { 
     enabled true 
    } 
} 
相關問題