Error:Execution failed for task ':hello_motion_tracking:transformNative_libsWithStripDebugSymbolForDebug'. >
Asked Answered
K

5

2

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

Kahle answered 29/9, 2016 at 5:13 Comment(0)
A
6

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.

Adeleadelheid answered 18/10, 2016 at 20:25 Comment(1)
I have tried many things, but this is the only thing that worked for me!Shackelford
A
4

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.

Anuska answered 14/10, 2016 at 19:51 Comment(2)
I would add that this is due to selecting to upgrade the gradle plugin when opening the project. I would recommend not to do it as a general rule for now on (or for other projects in the cexamples from Tango). I know I won't :) Thanks Julian.Clustered
+1 As you said @Julian Cerruti, I update to 2.2.2 and I got this error. Doing the downgrading everything worksIodine
N
1

Change you build.gradle file; set high version.

Example:

android {
    compileSdkVersion 21
    buildToolsVersion '25.0.2'
Naman answered 6/3, 2017 at 7:28 Comment(0)
G
0

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.

Grindlay answered 20/3, 2017 at 1:34 Comment(0)
L
0

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.

Linkoski answered 28/3, 2017 at 9:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.