79得票10回答
升级到Android Studio 3.4后与resources_ap相关的错误

今天我升级了Android Studio 3.4。我现在无法运行应用程序。我已经清理了项目,多次重启了Android Studio。我也尝试了无效缓存。在安装应用程序时,我收到以下错误:FAILURE: Build failed with an exception. * What went ...

50得票17回答
升级Android Studio到3.4后无法连接adb

无法连接adb。检查事件日志以查找可能的问题,验证localhost条目是否指向ipv4或ipv6的127.0.0.1或::1。 尝试了adb kill-server、重启、无效化重启,但都没有用。同样的问题在这里报告https://issuetracker.google.com/iss...

31得票2回答
启用 Android Studio 中的 R8 缩小器时出现 GC 超限错误

我正在使用 Android Studio 3.4 (Canary 9),当我构建我的应用时,它失败并显示以下错误: Task :app:transformClassesAndResourcesWithR8ForDebug R8 是一个实验性功能。如果您遇到任何问题,请使用 ...

28得票8回答
升级到Android Studio 3.4后出现了Aapt2InternalException:AAPT2:Daemon启动失败的错误。

我在将Android Studio升级到3.4版本后,在新的项目构建时出现错误 由于:org.gradle.api.tasks.TaskExecutionException:执行任务':app:mergeDebugResources'失败。 由于:com.android.ide.common....

25得票6回答
错误:内部错误:(java.lang.ClassNotFoundException)com.google.wireless.android.sdk.stats.IntellijIndexingStats $ Index

Android Studio 3.4。 项目SDK(Android API 19平台)。 不使用FindBugs或SpotBugs。 每次尝试构建时,我都会遇到这个错误:Information:9/05/2019 4:02 PM - Compilation completed with ...

9得票1回答
新版Android代码收缩器R8中的"-keepattributes SourceFile,LineNumberTable"是什么意思?

自动生成的proguard-rules.pro文件包含以下内容: # Uncomment this to preserve the line number information for # debugging stack traces. #-keepattributes SourceFil...

7得票6回答
Gradle同步失败:无法创建锁文件的父目录

我在Android Studio中检出了一个Git仓库,但是我遇到了Gradle同步失败错误。 当项目尝试构建时,Android Studio会引发以下错误: Gradle sync failed: Could not create parent directory for lock f...

7得票1回答
使用buildtools 3.4.0时出现Databinding NoSuchMethodError错误

使用最新的数据绑定技术时 classpath 'com.android.tools.build:gradle:3.4.0-alpha10' NoSuchMethodError会在Activity加载时导致应用程序崩溃。解决方法: classpath 'com.android.tools...