Daniel
Daniel

Reputation: 31

Error:Execution failed for task ':hello_motion_tracking:transformNative_libsWithStripDebugSymbolForDebug'. >

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:

enter image description here

Upvotes: 2

Views: 10457

Answers (5)

BlackSmith
BlackSmith

Reputation: 1

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.

Upvotes: 0

Michael Zhang
Michael Zhang

Reputation: 11

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.

Upvotes: 0

user7664896
user7664896

Reputation: 11

Change you build.gradle file; set high version.

Example:

android {
    compileSdkVersion 21
    buildToolsVersion '25.0.2'

Upvotes: 1

xuguo
xuguo

Reputation: 1826

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.

Upvotes: 6

Julian Cerruti
Julian Cerruti

Reputation: 2028

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.

Upvotes: 4

Related Questions