android-studio-3.0

Failed to resolve variable '${animal.sniffer.version}' when migrate to AndroidX

不想你离开。 提交于 2019-12-20 08:40:02
问题 I'm using Android Studio 3.2 Beta5 to migrate my project to AndroidX . When I rebuild my app I got these errors: ERROR: [TAG] Failed to resolve variable '${animal.sniffer.version}' ERROR: [TAG] Failed to resolve variable '${junit.version}' Full clean & rebuild did not work! Anyone know how to fix this? gradle.properties android.enableJetifier=true android.useAndroidX=true build.gradle buildscript { repositories { google() jcenter() mavenCentral() maven { url 'https://maven.fabric.io/public' }

How to properly deal with class dependencies to utilize incremental compilation in Java/Android with Gradle?

痞子三分冷 提交于 2019-12-20 06:31:01
问题 I improved our build system and activated incremental builds and compilation as described in this question. To my disappointment, incremental compilation didn't improve build times as much as I expected from reading Gradles blog post. After some investigation, I realized that the issue is that even though I only add a comment to a small class somewhere deep in the app apparently almost the whole codebase is rebuilt. In fact, it doesn't really matter which class I touch, Gradles --debug output

Error: Project 'app' not found in root project 'projectName'

妖精的绣舞 提交于 2019-12-20 04:48:07
问题 I have an old app developed in Eclipse and now trying to migrate it to Android Studio. I updated the libraries and followed the basic steps. Now, I am getting this error: Error: Project 'app' not found in root project 'projectName'. I am using classpath 'com.android.tools.build:gradle:3.0.1' and latest gradle 4.1. Can anyone help on this? 回答1: I think your project is too old. Here is a classpath use it. Then your project will ask for update and Project will automatically update to latest

Error: Project 'app' not found in root project 'projectName'

强颜欢笑 提交于 2019-12-20 04:47:17
问题 I have an old app developed in Eclipse and now trying to migrate it to Android Studio. I updated the libraries and followed the basic steps. Now, I am getting this error: Error: Project 'app' not found in root project 'projectName'. I am using classpath 'com.android.tools.build:gradle:3.0.1' and latest gradle 4.1. Can anyone help on this? 回答1: I think your project is too old. Here is a classpath use it. Then your project will ask for update and Project will automatically update to latest

Error:java.lang.ClassNotFoundException: Class org.openjdk.jdi.ReferenceType not found when update android studio 3.0.0

为君一笑 提交于 2019-12-20 03:22:14
问题 I have migrated my project from 2.2.3 to stable android studio 3.0.0 and set jdk 1.8, Now we run the app. i am getting below exception : Error:java.lang.ClassNotFoundException: Class org.openjdk.jdi.ReferenceType not found Error:Execution failed for task ':app:transformClassesWithDesugarForDebug'. > com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with

Style attribute attr/@attr/minTextSize not found

非 Y 不嫁゛ 提交于 2019-12-20 03:02:42
问题 I have trying since long to identify the issue but unfortunately not able to If I do android.enableAapt2=true The code works fine, but removing the same(Which should compulsorily be) there is a error thrown saying \incremental\mergeDevDebugResources\merged.dir\values\values.xml:5887: error: style attribute 'attr/@attr/minTextSize' not found. Here are the details of the versions I am using classpath 'com.android.tools.build:gradle:3.2.0' classpath 'com.jakewharton:butterknife-gradle-plugin:8.4

Cannot access activity binding android

纵饮孤独 提交于 2019-12-19 23:22:56
问题 I have a layout file called activity_suggestions . I am using databinding in it. Hence the file ActivitySuggestionsBinding got generated. The project compiles successfully. But when I try to run the project, I get this error e: error: cannot access ActivitySuggestionsBinding I am using android studio 3.1.2 with kotlin version 1.4.1 . Any help will be appreciated Edit Pasting my module level build.gradle and app level build.gradle Module Build.gradle apply plugin: 'kotlin-android' apply plugin

Merging Android unit test and connected test code coverage data is broken

断了今生、忘了曾经 提交于 2019-12-19 10:29:41
问题 Version 2.3.3 of the Android Gradle Plugin was able to provide merged unit test and connected test code coverage data. In version 3.0.0, this capability is broken because each of the test types use a different and incompatible version of JaCoCo. Rafael Toledo provided a Medium blog post showing how to make this work with 2.3.3. I have provided a Github repo that illustrates the working code and the broken code in a few branches. The repo documentation provides a Readers Digest description of

Execution failed for task mockableAndroidJar, mockable-android- . jar already exists

社会主义新天地 提交于 2019-12-19 06:56:33
问题 I am facing issue with Android Studio 3, gradle android plugin 3 with build target 27 and support lib 27.0.0 Error:Execution failed for task ':module:mockableAndroidJar'. > Output file [[...]/build/generated/mockable-android-27.v3.jar] already exists. I have to clean or manually delete all mockable-android jars from the generated folder time to time. So this means instead of getting better build times, I have to clean the project most of the times. 回答1: Simply cleanup the existing jar before

Execution failed for task mockableAndroidJar, mockable-android- . jar already exists

社会主义新天地 提交于 2019-12-19 06:55:46
问题 I am facing issue with Android Studio 3, gradle android plugin 3 with build target 27 and support lib 27.0.0 Error:Execution failed for task ':module:mockableAndroidJar'. > Output file [[...]/build/generated/mockable-android-27.v3.jar] already exists. I have to clean or manually delete all mockable-android jars from the generated folder time to time. So this means instead of getting better build times, I have to clean the project most of the times. 回答1: Simply cleanup the existing jar before