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

后端 未结 9 1993
滥情空心
滥情空心 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:38

    I renctly encountered this problem, and this is very strange, on the other thread there's people suggest you should change you usb setting to "MTP/FTP" or something, this doesnt make sense and dont work out on my case.

    After search some example case in this problem, I found that most of people have this problem when minSDK/'targetSDK'/'compileSdkVersion' is not a int but a letter.

    I changed my MNC/N' to 23, andbuild - clean build`, problem solved.

    hope it can help someone.

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

    This wortk for me in Android Studio: hold ctl+alt+shift press 'S', This will open project structure. Click on the tab 'Flavors', check in min sdk version if appear a version of your device sdk if you see select it and click 'OK', but if you didn't see a option for your sdk device click on cancel. Go to build.gradle(app) file and type in the min sdk version the version of your sdk device(android studio will recomend you to intall the version sdk). After that hold ctl+alt+shift press 'S' and the version sdk min will be there, just select it and click 'ok'. :)

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

    Change compileSdkVersion 'android-N' to compileSdkVersion 22 and targetSdkVersion 'N' to targetSdkVersion 22

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