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

非 Y 不嫁゛ 提交于 2019-12-21 21:51:55

问题


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:


回答1:


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.




回答2:


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.




回答3:


Change you build.gradle file; set high version.

Example:

android {
    compileSdkVersion 21
    buildToolsVersion '25.0.2'



回答4:


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.




回答5:


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.



来源:https://stackoverflow.com/questions/39761895/errorexecution-failed-for-task-hello-motion-trackingtransformnative-libswith

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!