我正在使用以前版本的Android Studio构建项目,我决定更新它。因此,一旦我更新它,我在应用程序运行时不断得到相同的错误(不清楚,而不是同步grandle)。错误如下:
错误:任务':app:mergeDebugAssets'执行失败。 >无法创建新的本机线程
我试图再次清理和构建。我试图改变studio.vmoptions,但没有一个能为我工作。
这是完整的build.gradle文件:
// Top-level build file where you can add configuration options common to all
sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
答案 0 :(得分:0)
请在gradle文件夹中的gradle-wrapper.properties文件中更新distributionUrl = https://services.gradle.org/distributions/gradle-4.1-all.zip,然后重建项目。