Alp*_*iya 5 android android-gradle-plugin
更新 Android Studio 3.4 并使用后
classpath 'com.android.tools.build:gradle:3.4.0'
无法运行我的应用程序。当我尝试运行时,错误显示:进程意外退出。
降级到
classpath 'com.android.tools.build:gradle:3.2.1'
完美地工作。请帮助如何运行version 3.4.0
小智 5
我也发生了同样的事情,我不知道是什么原因造成的,可能是 Aapt2 3.4.0,所以我修复了它在项目中添加这个build.gradle(:app):
android {
...
...
configurations.matching { it.name == '_internal_aapt2_binary' }.all { config ->
config.resolutionStrategy.eachDependency { details ->
details.useVersion("3.3.2-5309881")
}
}
...
...
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
14149 次 |
| 最近记录: |