简体   繁体   中英

Will my app work on Android 5.0?

I have these lines in my app's Gradle Settings:

compileSdkVersion 25
    buildToolsVersion "25.0.0"
    defaultConfig {
        minSdkVersion 21
        targetSdkVersion 25
    }

    ...bla bla bla...

    compile 'com.android.support:appcompat-v7:25.0.0'
    compile 'com.android.support:design:25.0.0'
    compile 'com.android.support:recyclerview-v7:25.0.0'
    compile 'com.android.support:cardview-v7:25.0.0'

So will my app launch and work on Android 5.0?

你的应用有 minSdkVersion 21,它等于 Lolipop 5.0,所以是的,它会

Most likely it won't check the page Platform Codenames, Versions, API Levels, and NDK Releases You are using the platform version 7.1 to compile. Any method call that does not exist in API21 but does on API25 will cause an error. If you are going to develop for an older versions you will be better off compiling with the older version. Also check the support library if you are going to implement some new feature but want it to be backward compatible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM