android-studio-3.1

Error running 'app': Unknown error in Android studio 3.1

元气小坏坏 提交于 2019-12-20 11:03:44
问题 I have updated my android studio to new stable version 3.1 . After build project not able to run. Let me know if anyone have face same issue or find any solution. 回答1: Just go to " Run/edit configurations... /" and scroll down to bottom of the window and here you see an option " Before launch... " First, remove whatever already inside the little window and then click on ( + ) icon and select "Gradle-aware Make " and then type " assembleDebug " and select the first option or that you need.

AAPT2 working abnormally in android studio 3.1 both for True and False flag

牧云@^-^@ 提交于 2019-12-19 06:57:28
问题 I am using android.enableAapt2 = false in my gradle.properties file. After updating android studio to 3.1 my project showing a warning to update or remove AAPT2 flag like below: The option 'android.enableAapt2' is deprecated and should not be used anymore. Use 'android.enableAapt2=true' to remove this warning. It will be removed at the end of 2018. As they suggest, After changing the flag to true it's showing error: AAPT2 error: check logs for details org.gradle.api.tasks

Failed to generate apk from Android studio 3.1.1

依然范特西╮ 提交于 2019-12-18 13:01:09
问题 When I try to generate a signed APK, I found this issue : 10:58 Generate Signed APK: Errors while building APK. You can find the errors in the 'Messages' view. No cached version of com.android.tools.lint:lint-gradle:26.1.1 available for offline mode. this is my android studio details : Android Studio 3.1.1 Build #AI-173.4697961, built on April 4, 2018 JRE: 1.8.0_152-release-1024-b02 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0 this block for signing the apk :

Failed to generate apk from Android studio 3.1.1

余生颓废 提交于 2019-12-18 13:01:06
问题 When I try to generate a signed APK, I found this issue : 10:58 Generate Signed APK: Errors while building APK. You can find the errors in the 'Messages' view. No cached version of com.android.tools.lint:lint-gradle:26.1.1 available for offline mode. this is my android studio details : Android Studio 3.1.1 Build #AI-173.4697961, built on April 4, 2018 JRE: 1.8.0_152-release-1024-b02 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0 this block for signing the apk :

Android Studio 3.1 does not showing 'android' option under Tools menu

只愿长相守 提交于 2019-12-18 01:30:32
问题 I am using android studio 3.1 for some development. But Its does not showing android option under Tools menu. Whereas Android studio 3.0 doesn't have this problem. Here is the screenshot of android studio 3.1 Tools menu: See missing the android option. I think this is some configuration related problem as it doesn't exist in android studio 3.0. Basically I need Enable ADB Integration option. Is there any way to show the option in Tools menu? 回答1: If you're looking for a way to fix the buggy

3rd-party Gradle plug-ins may be the cause

孤人 提交于 2019-12-17 17:25:24
问题 After updating to Android Studio 3.1 I got this error message: The project works fine and this is mostly just a warning, so my question is what's the meaning of the warning and how can I get rid of it? The relevant parts from gradle files: This is my project's build.gradle buildscript { ext { kotlin_version = '1.2.31' anko_version = '0.10.4' room_version = '1.0.0' support_version = '27.1.0' firebase_version = '12.0.0' gms_version = '12.0.0' } repositories { google() jcenter() maven { url

No IDEA annotations attached to the JDK 1.8 (C:\…), some issues will not be found

爱⌒轻易说出口 提交于 2019-12-17 06:28:34
问题 In Android Studio 3.1.2 I am suddenly getting the following message in a yellow tape frame at the top of my editor: No IDEA annotations attached to the JDK 1.8 (C:\Program Files\Android\Android Studio\jre), some issues will not be found I also have a warning in Edit Configurations: Default Activity not found How can I solve these issues? 回答1: Solution Close Android Studio Go to C:\Users\UserName\.android and rename the build-cache folder to build-cache.bak Go to C:\Users\UserName\

After upgrading to the new Android Studio I have been having error

荒凉一梦 提交于 2019-12-13 04:09:21
问题 It gives this build error for any project: Please find the picture attached below Cause: aidl is missing from 'C:\Users\onyeb\AppData\Local\Android\Sdk\build-tools\27.0.3\aidl.exe' Full trace: rg.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':app:compileDebugAidl'. at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:139) at org.gradle.initialization.DefaultGradleLauncher

How to fix " Could not find any version that matches com.android.support:appcompat-v7:29.+

我们两清 提交于 2019-12-11 16:58:15
问题 how to fix "Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+. <a href="openFile:C:/Users/hhira/AndroidStudioProjects/MyApp/app/build.gradle">Open File</a><br><a href="Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+.">Show Details</a> " 回答1: Try installing Extras|Android Support Repository

Android Studio 3.1 - kotlin plugin does not work

妖精的绣舞 提交于 2019-12-11 09:23:25
问题 I updated my AS from 3.0 to 3.1. After fixing several issues that showed up with the update, I am stuck at making Kotlin work. Kotlin code compiles and runs, although I can't edit kotlin files. Kotlin keywords are not recognised by the editor, using kotlin code from java classes appear red and in general I can't really do anything with kotlin. I use: buildscript { ext.kotlin_version = '1.2.41' ... ... dependencies { classpath 'com.android.tools.build:gradle:3.1.1' classpath 'com.google.gms