Android studio填坑:Execution failed for task ':app:compileDebugNdk'.异常的处理
来源:互联网 发布:解沉迷软件 编辑:程序博客网 时间:2024/05/23 10:01
首先贴上编译错误的log;
Error:注: Version 2.1.1 of Realm is now available: http://static.realm.io/downloads/java/latest注: Processing class LikeRecordRealm注: Processing class ReadRecordRealm注: Creating DefaultRealmModule注: 某些输入文件使用或覆盖了已过时的 API。注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。注: 某些输入文件使用了未经检查或不安全的操作。注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:compileDebugNdk'.> NDK not configured.Download the NDK from http://developer.android.com/tools/sdk/ndk/.Then add ndk.dir=path/to/ndk in local.properties.(On Windows, make sure you escape backslashes, e.g. C:\\ndk rather than C:\ndk)* Try:Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
汉字大家都看的懂,英文也是很容易看的明白的。但是问题来了,怎么解决呢?
大致意思就是说引用的一些ndk资源没有被配置或者说一些安全隐患什么的。需要怎么解决?那就在gradle里面配置呗。。。。。。
配置如下
就是在app/build.gradle中的android里面加上
sourceSets.main { jni.srcDirs = []}
就可以了还有个方法:
只需要在项目下的gradle.properties加上这一句就可以了“android.useDeprecatedNdk=true”
2 0
- Android studio填坑:Execution failed for task ':app:compileDebugNdk'.异常的处理
- Android下载时Execution failed for task ':app:compileDebugNdk'.异常的处理
- Android Studio:错误Execution failed for task ':app:compileDebugNdk'
- Execution failed for task ':app:compileDebugNdk'
- Execution failed for task ':app:compileDebugNdk'
- Error:Execution failed for task ':app:compileDebugNdk'.
- Error:Execution failed for task ':app:compileDebugNdk'.
- Android Studio 编译时出现“Execution failed for task ‘compileDebugNdk’.”
- [Android Studio][NDK]Execution failed for task ':app:compileDebugNdk'. Error Code:2
- [Android Studio][NDK]Execution failed for task ':app:compileDebugNdk'. Error Code:2
- Android Studio运行或Rebuild的时候报Error:Execution failed for task ':app:compileDebugNdk'.的解决办法
- Android Studio运行或Rebuild的时候报Error:Execution failed for task ':app:compileDebugNdk'.的解决办法
- Error:Execution failed for task ':app:compileDebugNdk' 解决方法
- Error:Execution failed for task ':app:compileDebugNdk'.> Error: NDK integrat
- Error:Execution failed for task ':app:compileDebugNdk'. > NDK not configured.
- [Android Studio1.5][NDK r13b]Execution failed for task ':app:compileDebugNdk'. Error Code:2
- 【填坑】Android Studio更改SDK路径后gradle出错,Error:Execution failed for task ':app:compileRetrolambdaDebug'. >
- 安卓开发异常处理之(65536)——Android Studio TransformException : Error:Execution failed for task ':app:trans...
- opencv中的CV_MAKETYPE及其他相关基本类型定义(2)
- linux内核奇遇记之md源代码解读之十raid5数据流之同步数据流程
- 【POJ 3255】Roadblocks 【次短路】
- 禅道
- linux内核奇遇记之md源代码解读之十一raid5d
- Android studio填坑:Execution failed for task ':app:compileDebugNdk'.异常的处理
- Chrono
- mysql 索引( mysql index )
- oracle日期判断
- Maven的安装和环境变量配置
- Android开发遇见错误
- linux内核奇遇记之md源代码解读之十二raid读写
- ADOconnection 事务处理例子
- linux内核奇遇记之md源代码解读之十三raid5重试读