Android Studio - Unable to run app on device minSdk(API 23, N) != device Sdk(API 22)

后端 未结 9 1982
滥情空心
滥情空心 2021-02-13 06:06

so i reinstalled linux on my computer and after i reinstalled android studio i tried getting an app that i wrote on to my phone which previously had not been a problem. The App

相关标签:
9条回答
  • 2021-02-13 06:20

    Changing the minSdkVersion may not always help. Check your SDK Manager, as already suggested, and make sure that you have the necessary versions installed as well (I had changed mine in Gradle, but it only made things worse on my end).

    0 讨论(0)
  • 2021-02-13 06:21

    Change the minSdkVersion to your target device sdkVersion in build.gradle(Module:app)file will be appear on left side in Gradle Scripts.. Ex: minSdkVersion 24 //change the version value to ur target device value(like 23 or 22 or 21 or etc)

    According to your configuration you have to change the minSdkVersion 23 to minSdkVersion 22, becoz your target device at API LEVEL 1

    0 讨论(0)
  • 2021-02-13 06:24

    The same happened to me on Android Studio, so I could not start a new emulator. I had to: Gradle Scripts -> build.gradle (module:app) -> minSdkVersion 14

    (update "minSdkVersion" value to "14".

    Now I am able to start a new emulator.

    0 讨论(0)
  • 2021-02-13 06:26

    check your build.gradle file to ensure the proper min sdk is set...android studio overrides the manifest with the build.gradle

    0 讨论(0)
  • 2021-02-13 06:30

    you can do a thing just open the sdk manager since i had one and just install ,the ÄNDROID N (API 23 N PREVIEW PACKAGES) give it a try instead of changing the gradle files

    0 讨论(0)
  • 2021-02-13 06:33

    See the explain of CommonsWare. The key point is a preview version, so older level device was prevented to install app anyway when using N compileSdkVersion.

    0 讨论(0)
提交回复
热议问题