简体   繁体   English

minSDKversion 15无法在Android设备版本上运行:4.3

[英]minSDKversion 15 cannot run on android device version : 4.3

Sorry for yesterday not well defined question about this. 对不起昨天没有明确定义的问题。

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'


}

i read that the minSDKVersion is : 我读到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.

i tested on device that has Android Version 7.1 API (25) and it works but when i test it on phone that is Android Version 4.3 (API 18) it gives me "Unfortunately,App has stopped". 我在具有Android版本7.1 API(25)的设备上进行了测试,但是当它在Android版本4.3(API 18)的手机上进行测试时,它给了我“不幸的是,应用程序停止了”。 Really hope that i defined this time the question. 真的希望我这次定义了这个问题。 Thanks 谢谢

Recheck your activities, maybe you have targeted a higher version in an activity. 重新检查您的活动,也许您已在活动中定位了更高版本。 Check for any @TargetApi(--) in your code and change code which corresponds to it 检查代码中的任何@TargetApi( - )并更改与其对应的代码

暂无
暂无

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

相关问题 Android compileSdkVersion 23, minSdkVersion 15, targetSdkVersion 23 - Android compileSdkVersion 23, minSdkVersion 15, targetSdkVersion 23 适用于Android的哪个Java版本具有不同的minSdkVersion和targetSdkVersion - Which Java version for Android with different minSdkVersion and targetSdkVersion Android Studio:清单合并失败:uses-sdk:minSdkVersion 14不能小于库中声明的L版本 - Android studio: Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version L declared in library use-sdk:minSdkVersion 9不能小于版本14 - uses-sdk:minSdkVersion 9 cannot be smaller than version 14 在具有更新的Android版本的设备中重建和运行android程序时出错(androidapi 15 rev1至api 15 rev2) - Error while re building and running the android program in device with updated Android version(androidapi 15 rev1 to api 15 rev2) 最低sdk版本设置为api级别15 android 4.0.3的Android应用程序无法在软糖豆设备上运行 - Android app not working on jelly bean device while minimum sdk version set to api level 15 android 4.0.3 Android 版本 4.3 中的异常 android java.util.Objects - Exception android java.util.Objects in Android Version 4.3 清单合并失败:uses-sdk:minSdkVersion 16 不能小于库中声明的版本 19 - Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library 我正在将我的Android手机与API 15用作测试设备。 我尝试运行此应用程序,但在加载后它就停止在我的设备上运行 - I am using my android phone with API 15 as a testing device. I try to run this application and it'stops running on my device just after it's loaded Android Studio-Java库上的MinSdkVersion - Android Studio - MinSdkVersion on Java Library
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM