android-studio-3.1

Gradle error after update: com.android.tools:sdk-common

a 夏天 提交于 2019-12-09 14:21:49
问题 I updated Android Studio to the last version (3.1 Canary 8) and mandatorily the com.android.tools.build:gradle to version 3.1.0-alpha08, but syncing the project I get this error: Could not find sdk-common.jar (com.android.tools:sdk-common:26.1.0-alpha08). Searched in the following locations: https://maven.google.com/com/android/tools/sdk-common/26.1.0-alpha08/sdk-common-26.1.0-alpha08.jar I searched around but not solution found, can someone help me solve this issue? buildscript {

Caused by: java.lang.IllegalArgumentException: couldn't make a guess for com.example.example.databinding.ContentClassApplicationMyClass1Binding

让人想犯罪 __ 提交于 2019-12-09 03:06:24
问题 I'm getting this error in android after updating the android studio from 3.0 to 3.1 and Gradle from 3.1 to 4.4. How can I fix it? It's working properly with Gradle 3.1 and android studio 3.0. How can I get it to work? Gradle app: buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' repositories { mavenCentral() google() maven { url 'https://maven

Android Studio 3.1: Could not find gradle-core.jar (gradle-core-3.1.0.jar)

时间秒杀一切 提交于 2019-12-08 18:30:28
问题 I've just installed Android Studio 3.1 over previous version of android. When I try to create new project, during project build it stops and prompts below error. I've used many solution but it did not help. Here is the error message: Error:Could not find gradle-core.jar (com.android.tools.build:gradle-core:3.1.0). Searched in the following locations: https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle-core/3.1.0/gradle-core-3.1.0.jar When I check the log it shows, altough

After Updating Android Studio 3.1 Get Error while Release Signed APK

陌路散爱 提交于 2019-12-08 15:48:15
问题 After migrating my existing project to Android Studio 3.1, it is not compiling. Below are the log details: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:mergeReleaseResources'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70) at org.gradle.api.internal.tasks.execution

Execution failed for task ':app:transformClassesWithAndroidGradleClassShrinkerForDebug' in Android Studio 3.1

大城市里の小女人 提交于 2019-12-08 02:37:40
问题 I've just upgraded from Android Studio 3.1 to Android Studio 3.1.1 (but still using Gradle build tool 3.0.0 ). When I run my app it causes this error: :app:transformClassesWithAndroidGradleClassShrinkerForDebug com/android/tools/profiler/agent/okhttp/OkHttp3Interceptor references unknown class: okhttp3/Interceptor com/android/tools/profiler/agent/okhttp/OkHttp2Interceptor references unknown class: com/squareup/okhttp/Interceptor com/android/tools/profiler/agent/okhttp/OkHttp3Interceptor

After Android Studio 3.1.1 update, the 'locate' link does not open generated APK folder

我只是一个虾纸丫 提交于 2019-12-06 17:50:01
问题 UPDATE: The problem came after Android 3.1.1 update. After APK generation process is completed, Android Studio (Windows OS) propose a popup to locate or analyze the APK. Unfortunately if I click on locate , nothing is happening. UPDATE In the APK Generetion Dialog I specify the destination path, a folder on my pc: And in some projects I use a bounche of gradle lines to rename the APK: android.applicationVariants.all { variant -> if (variant.buildType.name == BuilderConstants.RELEASE) {

Where is a “Sync project with gradle files” button in Android Studio 3?

a 夏天 提交于 2019-12-06 17:16:02
问题 This button disappeared from a new 3.1 version of AS Toolbar. Before it showed as: Now it's missing: 回答1: It hasn't disappeared. They have just moved it between the Save and Sync files button on the far left end of the toolbar. Edit: They like to keep playing with the toolbar. Since Android Studio 3.3, the icon has been updated and moved back across to the right: 回答2: In Android Studio 3.3 it is here: 回答3: Is is available from menu. Tools > Android disappeared, so find it in File > Sync

Where is the Messages Window in Android Studio 3.1

ε祈祈猫儿з 提交于 2019-12-06 16:33:08
问题 After upgrading Android Studio from 3.0 to 3.1, the Messages window seems to have disappeared, even though some build outputs (e.g. proguard) continue to refer to it. Where is it? 回答1: After some poking around, I found this button on the left side of the Build window: Clicking this button toggles the view between the new "Build" view and a text output version which resembles the old Messages view - although it isn't exactly the same. I hope this helps! UPDATE: In Android Studio 3.3 the button

Execution failed for task ':app:transformClassesWithAndroidGradleClassShrinkerForDebug' in Android Studio 3.1

假如想象 提交于 2019-12-06 14:31:22
I've just upgraded from Android Studio 3.1 to Android Studio 3.1.1 (but still using Gradle build tool 3.0.0 ). When I run my app it causes this error: :app:transformClassesWithAndroidGradleClassShrinkerForDebug com/android/tools/profiler/agent/okhttp/OkHttp3Interceptor references unknown class: okhttp3/Interceptor com/android/tools/profiler/agent/okhttp/OkHttp2Interceptor references unknown class: com/squareup/okhttp/Interceptor com/android/tools/profiler/agent/okhttp/OkHttp3Interceptor references unknown class: okhttp3/Request com/android/tools/profiler/agent/okhttp/OkHttp2Interceptor

BuildException: Failed to execute aapt in Android Studio 3.1 Canary 6

爷,独闯天下 提交于 2019-12-06 03:34:22
问题 I am facing this issue during gradle build: org.gradle.tooling.BuildException: Failed to execute aapt at com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.invokeAaptForSplit(LinkApplicationAndroidResourcesTask.java:547) at com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.doFullTaskAction(LinkApplicationAndroidResourcesTask.java:280) at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:106) at sun.reflect