Can not set the value of read-only property 'jniFolders' for task ': android: packageDebug
来源:互联网 发布:sql server2012向导 编辑:程序博客网 时间:2024/06/05 00:32
Error: Can not set the value of read-only property 'jniFolders' for task ': android: packageDebug' of type com.android.build.gradle.tasks.PackageApplication.
由于还不甚了解AS的工程配置,网上扒了很久才在这里找到答案:https://androidforums.com/threads/android-studio-problem-gradle-project-sync-failed.1114629/
我说一下,注意事项,要完全注释掉:
// tasks.withType(PackageApplication) {// pkgTask ->// //pkgTask.jniFolders = [new File(buildDir, 'native-libs')];// pkgTask.jniFolders = new HashSet<File>()// pkgTask.jniFolders.add(new File(buildDir, 'libs'))// }
再添加上:
sourceSets { main { jniLibs.srcDir 'libs' }}
阅读全文
0 0
- Can not set the value of read-only property 'jniFolders' for task ': android: packageDebug
- android studio3.0 编译 Cannot set the value of read-only property 'outputFile' for apkVariantOutputImp
- [Exception]Cannot set the value of read-only property 'outputFile'
- Cannot set the value of read-only property 'outputFile'
- annot set the value of read-only property 'outputFile'
- Cannot set the value of read-only property 'outputFile'
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated
- Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated
- android studio3.0(二)Cannot set the value of read-only property 'outputFile'
- set the property read only
- 解决 Android studio gradle 的 read-only property 'jniFolders' 编译错误
- Android Studio 发生 Error:Execution failed for task ':app:packageDebug'.
- Android Studio Error:Execution failed for task ':app:packageDebug'.
- android studio Error:Execution failed for task ':app:packageDebug'.解决方案
- 启动targetcli时遭遇ImportError: cannot import name ALUATargetPortGroup故障
- angular表格的查询添加和排序
- poj1258 Agri-Net
- 杨辉三角
- 在首席架构师眼里,架构的本质
- Can not set the value of read-only property 'jniFolders' for task ': android: packageDebug
- 关于OpenGL中深度截取(GL_DEPTH_CLAMP)的讲解
- deeplearning-Regularization
- Java基础------构造器
- poj1679 The Unique MST
- Spark之分区
- android通过反射来获取系统属性SystemProperties
- Android_EventBus
- 致——世界上最幸福的女孩——Chtholly