gpt4 book ai didi

java - minSDKversion 15 无法在 Android 设备版本 : 4. 3 上运行

转载 作者:太空宇宙 更新时间:2023-11-04 11:47:26 24 4
gpt4 key购买 nike

抱歉,昨天没有明确定义这个问题。

Here is my build.gradle code:

android {
compileSdkVersion 25
buildToolsVersion "25.0.1"
defaultConfig {
applicationId "com.example.me.appname"
minSdkVersion 15
targetSdkVersion 25
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true

}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}


repositories {

mavenCentral ()
}


dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:design:25.1.0'
compile 'com.android.support:support-v4:25.1.0'
testCompile 'junit:junit:4.12'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.google.android.gms:play-services:9.6.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.android.support:multidex:1.0.1'


}

我读到 minSDKVersion 是:

min sdk version Is the earliest release of the Android SDK that your application can run on. Usually this is because of a problem with the earlier APIs, lacking functionality, or some other behavioral issue.

target sdk version The version your application was targeted to run on. Ideally this is because of some sort of optimal run conditions. If you were to "make your app for version 19" this is where that would be specified. It may run on earlier or later releases, but this is what you were aiming for. This is mostly to indicate how current your application is for use in the marketplace, etc.

compile sdk version The version of android your IDE (or other means of compiling I suppose) uses to make your app when you publish a .apk file. This is useful for testing your application as it is a common need to compile your app as you develop it. As this will be the version to compile to an APK, it will naturally be the version of your release. Likewise it is advisable to have this match you target sdk version.

我在具有 Android 版本 7.1 API (25) 的设备上进行了测试,它可以工作,但是当我在 Android 版本 4.3 (API 18) 的手机上测试它时,它给我“不幸的是,应用程序已停止”。真的希望我这次定义了这个问题。谢谢

最佳答案

重新检查您的 Activity ,也许您在 Activity 中定位了更高版本。检查代码中是否有 @TargetApi(--) 并更改与其对应的代码

关于java - minSDKversion 15 无法在 Android 设备版本 : 4. 3 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42205930/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com