JNI报错:transformNativeLibsWithStripDebugSymbolForDebug

Android Studio 3.0.1
配置OpenCV 3.3.0 JNI lib到项目里面。在家里的电脑上运行正常,拷贝项目到公司电脑上就到处报错。
配置好后,还是报错:

Error:Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug'.
> A problem occurred starting process 'command 'D:\android\SDK\sdk\ndk-bundle\toolchains\mips64el-linux-android-4.9\prebuilt\windows-x86_64\bin\mips64el-linux-android-strip''
Error:FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug'.>
A problem occurred starting process 'command ' mips64el-linux-android-strip
D:\android\SDK\sdk\
ndk-bundle\toolchains\mips64el-linux-android-4.9\
prebuilt\windows-x86_64\bin\mips64el-linux-android-strip''
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 9s

百度谷歌都查了,没有一个有用的,最后我抱着试一试的态度,从网上重新下载了单独的NDK包,

android-ndk-r15c-windows-x86_64

修改local.properties里面的NDK路径,奇迹般的解决了,呵呵哒。
原来是NDK内容太旧了。因为电脑新配置的环境,新下的SDK等。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容