我们应用的部分build.gradle
就是:
tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask ->
pkgTask.jniFolders = new HashSet<File>()
pkgTask.jniFolders.add(new File(projectDir, 'libs'))
}
出于某种原因,在设置AppInvites时,构建开始失败并出现以下错误:
* What went wrong:
A problem occurred configuring project ':app'.
> Cannot set the value of read-only property 'jniFolders' on task ':app:packageProdDebug'.
答案 0 :(得分:4)
将gradle版本更改为1.3.1。
days_set = set()
for event, time_of_event in events.items():
days_set.add(time.strptime(time_of_event, "%I:%M%p %d/%m/%Y").tm_wday)
答案 1 :(得分:3)
当我尝试使用Instant Run时出现同样的错误。
通过添加此代码来修复:
android {
sourcesets {
main {
jniLibs.srcDir new File(buildDir, 'lib')
{
}
}
参考:https://groups.google.com/forum/#!topic/adt-dev/OqDyZ5VN-QM