android-studio-3.1

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

谁说我不能喝 提交于 2019-11-28 07:20:41
问题 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

Android Studio building errors using react native app

北慕城南 提交于 2019-11-28 04:23:10
问题 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

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

被刻印的时光 ゝ 提交于 2019-11-28 03:10:16
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 'https://dl.bintray.com/kotlin/kotlin-dev' } maven { url 'https://maven.fabric.io/public' } } dependencies

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

拜拜、爱过 提交于 2019-11-27 11:27:37
问题 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

Android 3.1.1 - Failed resolution of: Lcom/google/android/gms/common/internal/zzbq;

余生长醉 提交于 2019-11-27 09:26:11
since I've updated to Android Studio 3.1, my project is not running anymore. I have searched for a solution all over the internet with no positive results. Here's the error I get in the Logcat: --------- beginning of crash 04-13 13:33:55.466 12720-12720/? E/AndroidRuntime: FATAL EXCEPTION: main Process: woopy.domain.com.woopy, PID: 12720 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbq; at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source:2) at android.app.ActivityThread.installProvider(ActivityThread.java:6239) at

The result of subscribe is not used

元气小坏坏 提交于 2019-11-27 09:17:54
问题 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?

Android Studio 3.1 EditText StackOverflowError

时光毁灭记忆、已成空白 提交于 2019-11-27 06:52:17
After updating to Android Studio 3.1 I'm facing exception when EditText in focus E/AndroidRuntime: FATAL EXCEPTION: main Process: <package>, PID: 18938 java.lang.StackOverflowError: stack size 8MB at android.view.inputmethod.InputConnectionWrapper.getTextBeforeCursor(InputConnectionWrapper.java:46) at android.view.inputmethod.InputConnectionWrapper.getTextBeforeCursor(InputConnectionWrapper.java:46) at android.view.inputmethod.InputConnectionWrapper.getTextBeforeCursor(InputConnectionWrapper.java:46) at android.view.inputmethod.InputConnectionWrapper.getTextBeforeCursor(InputConnectionWrapper

Android studio 3.1 XML preview not showing for some XML layouts

眉间皱痕 提交于 2019-11-27 04:21:16
问题 Some layouts are shown, some just have blank, gray frame. I can't seem to find a correlation between XML layouts that work and those that do not, there is a mixture of use of binding, constraint layout, varied in complexity and length, error-free. The app is compiling and running well. Any suggestions? Clearing cache/restarting, cleaning, rebuilding had no effect on this Solution: Noticed a red error icon next to layout in preview mode. It had something to do with id resources resolver @1 . I

Android Studio 3.1 Cannot Resolve Symbol (Themes, Widget, attr, etc.)

僤鯓⒐⒋嵵緔 提交于 2019-11-27 00:34:11
I upgraded Android Studio today to 3.1, and now Android Studio says it cannot resolve symbols for most of the resources (for example ThemeOverlay in styles.xml or ?attr/actionBarSize ). This doesn't seem to prevent me from building or running in an emulator so far, but these errors are making me nervous. Has anyone else experienced this issue? How can I go about resolving it? I have tried syncing gradle and cleaning my project but it doesn't seem to help at all. Any ideas? I'm using Android Studio 3.1 with Gradle version 4.4 and Gradle Plugin 3.1.0 EDIT: This issue affects updating to Android

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

ぐ巨炮叔叔 提交于 2019-11-27 00:30:37
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? Levi Rizki Saputra 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\.AndroidStudio3.2\system and rename these folders caches to caches.bak compile-server to compile