When I tried to launch the project in the tango tutorial, a mistake pops out like this. Where should I look into to fix this problem?
Info shown on Android:
When I tried to launch the project in the tango tutorial, a mistake pops out like this. Where should I look into to fix this problem?
Info shown on Android:
As mentioned above, this indeed is a compatibility issue with Android Studio 2.2. A workaround is to set both targetSdkVersion and compileSdkVersion to 22.
This seems to be an incompatibility between the current version of the samples and android gradle plug-in version 2.2.1, which is the one that Android Studio kindly offers to upgrade the project to when you import it.
Could you please try downgrading to android gradle plug-in version from to 2.1.2 or 2.1.3 and try again? You do this by editing build.gradle at the root of the project.
Great credit for this finding to Iker who worked through a million tests until finding this out.
Change you build.gradle file; set high version.
Example:
android {
compileSdkVersion 21
buildToolsVersion '25.0.2'
Someone said you should delete the .gradle
doc at the root directory, but it didn't work for me.
Then I checked my gradle doc,and found the minSdkVersion
was too low, so I changed it to 19, and high to 25, and compile to 25, then the problem was solved.
I think the cause of this problem is the current NDK Version does not match the Current SDK Version.
And the other problem maybe that you add "~.intent.action.category.HOME" in the manifest.xml file. I meet this and now solved it by remove it.
© 2022 - 2024 — McMap. All rights reserved.