android-studio-3.0

Android Studio slow incremental build

蹲街弑〆低调 提交于 2020-01-03 18:41:23
问题 I have gone through many steps to refine our build system (those and more). Later, I read this official blogpost that claims that build times are improved 5-10x with incremental builds in Gradle 3.4. Indeed, our incremental builds were not working, because we used annotationProcessors. Since Gradle 4.7 annotationProcessors can opt-in to be compatible with incremental builds. I have gone through many dependency updates to activate incremental builds with annotationProcessors that support it.

Android Studio create project generate colors.xml with junk characters

余生颓废 提交于 2020-01-03 02:47:06
问题 Suddenly my Android Studio always generates the colors.xml file with junk characters when creating a new project. I have scoured the internet and found no answer. Does anyone have any idea as to why this is happening? I'm using Android Studio 3.2.1 which I just updated recently. But, the problem already occurred in the previous version. At first, I thought that this is an encoding problem, but my settings already specify UTF-8 for all files. Also, opening the same file in other text editors

expected reference but got (raw string) @+android:style/Animation.Translucent

陌路散爱 提交于 2020-01-03 02:41:11
问题 when I update the as version from 2.3 to 3.0 and compile the same project,there are some errors.How to solve the problem?thks. AGPBI:{ "kind":"error", "text":"error: expected reference but got (raw string) @+android:style/Animation.Translucent.", "sources":[ { "file":"/home/.../android/.../app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml", "position":{ "startLine":533 } } ], "original":"", "tool":"AAPT" }AGPBI:{ "kind":"error", "text":"error: expected

Can't run app with Instant Run on Android Studio 3.0

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-01 04:17:34
问题 I've updated to Android Studio 3.0 and now I cannot run the app with Instant Run enabled . I get 'Execution failed for task' due to a java.io.FileNotFoundException because it can't find the apk under ../build/intermediates/instant-run-resources/resources-production/ Any idea how to overcome this so that I can run the project with Instant Run? I'm not sure where to find the missing apk file or how to change the path to look for it in. 回答1: Have your settings as below, Otherwise try to clean

Gradle build error in Android Studio 3.0

点点圈 提交于 2020-01-01 03:15:08
问题 Can you please help me to resolve the Gradle build issue in Android 3.0 ? I am new with Android Studio. Here are my configurations in the AS 3.0: gradle->wrapper->gradle-wrapper.properties: distributionUrl=https\://services.gradle.org/distributions/gradle-4.2.1-all.zip build.gradle dependencies (Android Plugin for Gradle): dependencies {classpath 'com.android.tools.build:gradle:3.0.0'} Stacktrace from Android Studio: D:\AppiumAutomation\MobileTest>gradlew assemble --stacktrace FAILURE: Build

Cause: com.android.dex.DexException: Multiple dex files define Lorg/apache/commons/io/IOCase in Studio 3.0

旧城冷巷雨未停 提交于 2019-12-31 23:20:09
问题 I am developing one project. This is working fine with Android studio 2.3.3, but what happen is when i updated my Android Studio 3.0 and open my project then it can't assembled and it send me below error Log. Error Log Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Lorg/apache/commons/io/IOCase; Error:com.android.dex.DexException: Multiple dex files define Lorg/apache/commons/io/IOCase; Error: at com.android.dx.merge.DexMerger

Gradle Stuck and taking long time after updating Android studio 3.0 stable update

柔情痞子 提交于 2019-12-31 02:00:31
问题 I have updated Android studio to 3.0 stable release version. My project and its corresponding dependencies are working fine upto 2.3.3 Android version. But since yesterday, Gradle build is taking so long and got stuck at processes while resolving dependencies. Please check below screenshot of build.gradle file: I have checked gradle setting too, trying using Gradle wrapper or Local Gradle Distribution method, but no luck. Please see below setting : And, my gradle-wrapper.properties file look

Android Studio 3 + Gradle 4.0 + shrinkResources + libraryProject = Unable to find a matching configuration in project

我怕爱的太早我们不能终老 提交于 2019-12-30 08:13:14
问题 I've problems to migrate my project to the newest Gradle 4.0 + Android Studio 3 version, which gives me all kind of errors. Little by little I managed to sort them all out except this one. Could not resolve all dependencies for configuration ':app:forGoogleCoverageRuntimeClasspath'. > Unable to find a matching configuration in project :mylibrary: - Configuration 'debugApiElements': - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'AndroidTypeAttr{name=Aar}' and found

Android Studio issue with HAXM

江枫思渺然 提交于 2019-12-30 07:59:11
问题 I am trying android studio 3.1 canary 5 release And when i created an avd of nexus 5 api 27 getting issue/warning reported in macintosh 10.13.2 After looking over to issue as mentioned to install HAXM of >=6.2.1 7:21 PM Emulator: WARNING: HAXM 6.1.2 is installed. Please install HAXM >= 6.2.1 to fix compatibility issues on Mac. Tried below intel site but couldn't find updated version above 6.2.1 https://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-intel-haxm

“Execution of compression failed” error when building project in Android Studio 3.1

送分小仙女□ 提交于 2019-12-30 03:57:05
问题 I'm trying to build https://github.com/neural-nuts/Cam2Caption in Android Studio 3.1 Preview, but either I use very old build.gradle, or it dies with Error:Execution failed for task ':Application:packageDebug'. Execution of compression failed. this happens after doing a project clean, or a rebuild. OSX, latest most-everything. I'm using what I think is a default latest-and-greatest build.gradle classpath 'com.android.tools.build:gradle:3.0.0' ... android { compileSdkVersion 26 defaultConfig {