android-studio-3.1

Android Studio 3.1 not showing build error details

本秂侑毒 提交于 2019-11-30 02:55:48
I have updated to Android Studio 3.1 and it doesn't show the details of error during compile time. Suppose if I miss a semicolon somewhere or I haven't implemented a method of an interface, then it gives me this error all the time, but doesn't tell me what or where the error occurred! All error details were perfectly shown in Studio 3.0. How do I see them in 3.1? This is the message that I get every time an error occurs. Compilation error. See log for more details There is a toggle button just below the build button that will show the verbose build logs. Tap that and you should be able to see

Android Studio Image Asset Launcher Icon Transparent Background Color

≯℡__Kan透↙ 提交于 2019-11-30 01:52:16
You might be thinking this question is a duplicate of this one. But since then, Android Studio has been updated and the solution given there is not working anymore. I am trying to set my app logo using image asset in android studio. This is because if I put my app logo directly in drawable or mipmap, then it causes many problems like: If it's size is big then app crash occurs, if device running on oreo then logo will not showed and default ic_launcher is showing etc. While trying to set my app's logo using image asset, I am facing a problem: I can't keep app logo's background transparent. I

Android Studio 3.1 layout preview does not show preview for some layouts

…衆ロ難τιáo~ 提交于 2019-11-29 13:25:23
Since today morning I started encountering this weird issue. Android Studio layout preview panel and Design view was not displaying some of my layouts which were perfectly fine until I updated Android Studio from 3.0.1 to 3.1 . I tried following which didn't helped : Updated buildTools from 27.0.2 to 27.0.3 Updated support library from 27.0.2 to 27.1.1 Updated constraint layout library from 1.1.0-beta5 to 1.1.0-beta6 Synced Project with Gradle files multiple times Clean and Rebuilt project multiple times Invalidated and Restarted Android Studio Closed project from File menu and reopened it (I

Android Studio building errors using react native app

喜你入骨 提交于 2019-11-29 11:20:22
I have been trying to create an app using react native using expo tools xde and then detach it using exp detach, when I open in Android Studio I get quite many error when building like: Using incompatible plugins for the annotation processing Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android

IOException: Failed to find byte code when upgrade to Android Studio 3.1

蹲街弑〆低调 提交于 2019-11-29 10:38:47
问题 Yesterday, Google announced that Android Studio 3.1 is available in the stable release channel. So I give it a try. Before of that my project was build successfully but after I upgraded AS to 3.1 and Gradle build tool to com.android.tools.build:gradle:3.1.0 (it forced upgrade gradle wrapper to 4.4), it failed with this given exception: java.lang.RuntimeException: com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException:

Save Screenshot option is missing in Android Studio 3.1

爷,独闯天下 提交于 2019-11-29 01:53:40
问题 I have updated android studio from 3.0.1 to 3.1,now there is no option for directly view the XML file in Android studio 3.0.1 there is option for Save Screenshot Now in update android studio version to 3.1,it's missing is it moved to any other place? 回答1: There are many changes that have been done into Layout Inspector and Layout Editor in Android Studio Version 3.1.0 Layout Inspector The Layout Inspector gained new features, including some functionality previously provided by the deprecated

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

♀尐吖头ヾ 提交于 2019-11-29 01:02:48
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? If you're looking for a way to fix the buggy connection to a physically connected USB device without restarting Android Studio, this might help:

Execution failed for task ':app:compileDebugJavaWithJavac' Android Studio 3.1 Update

血红的双手。 提交于 2019-11-28 18:33:16
I am getting error after updating version of Android Studio 3.1 Canary 6 I don't why its happen, before that its running successfully. org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details. at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:50) at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:35) at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:98) at org.gradle.api.internal.tasks

Android Studio 3.1 Logcat prefix not always showing and breaking pretty logger

限于喜欢 提交于 2019-11-28 18:14:52
Since the new version of Android Studio (3.1) the Logcat window doesn't always show the prefix ( 03-28 12:43:01.091 nl.test.app D/log ). I made my own logger, which prints in a pretty way, but this gets broken since some lines are no longer with the same indentation. I'll show an example below. 03-28 12:43:01.091 nl.test.app D/log: ╔═══════════════════════════════════════════════════════════════════════════════════════ ║ [ (TestActivity.kt:33)#OnCreate ] ║ This is my test log 03-28 12:43:01.092 nl.test.app D/log: ║ This is my second test log ╚═══════════════════════════════════════════════════

The result of subscribe is not used

自古美人都是妖i 提交于 2019-11-28 15:37:07
I've upgraded to Android Studio 3.1 today, which seems to have added a few more lint checks. One of these lint checks is for one-shot RxJava2 subscribe() calls that are not stored in a variable. For example, getting a list of all players from my Room database: Single.just(db) .subscribeOn(Schedulers.io()) .subscribe(db -> db.playerDao().getAll()); Results in a big yellow block and this tooltip: The result of subscribe is not used What is the best practice for one-shot Rx calls like this? Should I keep hold of the Disposable and dispose() on complete? Or should I just @SuppressLint and move on?