[英]What is the minimum SDK version jack compiled code can run well on?
如果我使用jack&jill工具鏈構建我的android項目,我可以將最低SDK版本設置得相當低。 當我通過以下方式啟用插孔時:
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
jackOptions {
enabled true
}
}
}
我能夠將最小sdk設置為:
minSdkVersion 9
任何更低的,我收到錯誤消息:
uses-sdk:minSdkVersion 7 cannot be smaller than version 9 declared in library [com.google.android.gms:play-services-location:7.8.0] {project_folder}/build/intermediates/exploded-aar/com.google.android.gms/play-services-location/7.8.0/AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.google.android.gms.location" to force usage
我不想那么低。 我很好奇,如果使用jack編譯器可能會產生從14到23的sdks范圍內的任何陷阱。 以25的目標和14的最小值說。
在舊版本的android上會出現任何奇怪的行為或問題嗎?
傑克只編譯代碼。 它並不關心你的minSdk是什么,這與使用android API等更相關。
將minSdk設置為低於9時出現錯誤的原因是因為Google Play服務要求它為9或更高。 如果刪除播放服務依賴項,它應該工作。 另見這里
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.