android-studio-3.0

Android Studio 3.0 - Logcat window can not show filter input control

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 23:05:01
问题 I can not type a text filter in the logcat input text control on Android Studio 3.0.1, because it is too small. My screen is big enough. I did an event switch to fullscreen but this did not solve the problem. See the screenshot below. Has anyone seen this problem? How do you solve it? 回答1: Try clicking on the setting (cog-wheel icon) inside the logcat window and select the windowed or the floating modes, and then try to stretch the window size as long as you can 回答2: use CTRL+F in logcat to

commons-logging defines classes that conflict with classes now provided by Android after Android Studio Update

陌路散爱 提交于 2019-11-27 21:47:13
I have updated Android Studio to version 3 and now seems unable to compile my project previously compiled without errors. The error message is the follow Error:Error: commons-logging defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses] The dependencies are dependencies { compile fileTree(include: ['*.jar'], dir: 'libs')

android studio 3.1: build:gradle:3.1.0 - Absolute path are not supported when setting an output file name

你。 提交于 2019-11-27 21:18:11
问题 When I use Android Studio 3.0 and I use the next version of Android Gradle Plugin in project/build.gradle : classpath 'com.android.tools.build:gradle:3.0.1' And it's work fine. After I update to Android Studio 3.1 , as result I update Android Gradle Plugin : classpath 'com.android.tools.build:gradle:3.1.0' And now I get error in my app/build.gradle : def releaseFileName = "${rootProject.name}_${defaultConfig.versionName}.apk" outputFileName = new File(rootProject.projectDir.absolutePath + "

References to other resources are not supported by build-time PNG generation

痞子三分冷 提交于 2019-11-27 19:46:43
问题 AndroidStudio 3.0 / Android Gradle plugin 3.0 <vector> <path android:fillColor="@color/image_button_disabled"/> </vector> I get this error: references to other resources are not supported by build-time PNG generation Will it be possible to resolve it or is it a deprecated solution? 回答1: To support API SDK < 24 add the following line to your app build.gradle : defaultConfig{ vectorDrawables.useSupportLibrary = true } If your minSdkVersion is 24 or higher, then your issue will be resolved on

Android Studio 3.0 Layout Preview render issues

守給你的承諾、 提交于 2019-11-27 15:21:52
问题 I just updated my Android Studio to latest 3.0 and then the Layout Preview is not working anymore. I have tried open up different projects and they all have the same render issues. As I checked, I don't see any compile errors or gradle issues. So far, I tried Build Project Refresh Layout Clean Project Invalid Caches / Restart The following attached screenshot shows that some classes cannot be initiated but I dont get why and how to fix them. Thank you very much. Any hints could help. Updates:

How to use Data Binding and Kotlin in Android Studio 3.0.0

谁都会走 提交于 2019-11-27 11:24:16
I just started to use Android Studio 3.0.0, but every time I try to build my project I get this error: Error:Circular dependency between the following tasks: :app:compileDebugKotlin +--- :app:dataBindingExportBuildInfoDebug | \--- :app:compileDebugKotlin (*) \--- :app:kaptDebugKotlin \--- :app:dataBindingExportBuildInfoDebug (*) (*) - details omitted (listed previously) I am using kapt "com.android.databinding:compiler:2.2.0" Before I was using androidProcessor "com.android.databinding:compiler:2.2.0" And it was working just fine... What I am doing wrong?? Thanks! It seems that you need 3

RxJavaPlugins Error Didn't find class “com.google.devtools.build.android.desugar.runtime.ThrowableExtension”

此生再无相见时 提交于 2019-11-27 11:09:58
问题 After upgrading Android Studio 3.0 Beta 1 getting the following error. When I downgraded the error disappeared. Studio Build: Android Studio 3.0 Beta 1 Version of Gradle Plugin: 'com.android.tools.build:gradle:3.0.0-beta1' Version of Gradle:.0.0-beta1 Version of Java: 8 OS: MacOSX java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/devtools/build/android/desugar/runtime/ThrowableExtension; at io.reactivex.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:364) at io.reactivex

Unable to resolve dependency Android Studio 3.0

坚强是说给别人听的谎言 提交于 2019-11-27 11:06:20
问题 It's good to have a Updated Android Studio 3.0 . But I am facing a problem with Android Studio 3.0 , I just created a new project in Android Studio 3.0 . Then I got some error I solved these by changing dependencies to latest version and issues solved. But, when I added a dependency of facebook account-kit sdk com.facebook.android:account-kit-sdk:4.+ I am getting following errors-: Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.facebook.android

Digital Asset Link verified by Android Studio, but not pass in Google Play Console

吃可爱长大的小学妹 提交于 2019-11-27 08:16:35
问题 I try to publish my Android instant app to Google Play; I link the app, which is named helloinstantapp.instantapp.examples.chrisyttang.org to the domain https://csytang.github.io . It has been verified by Android Studio as you can see in the following image; However, when I try to publish my app into Google Play with Google Play Console, I get the error that "the site csytang.github.io has not been linked through the DAL protocol to your app." Why this happen? 回答1: Did you by any chance

Multiple dex files define Lcom/google/android/gms/internal/measurement/zzabn

孤街浪徒 提交于 2019-11-27 07:39:16
问题 Since this morning I cannot build my Android app because I get this error What went wrong: Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug'. com.android.build.api.transform.TransformException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/measurement/zzabn; I have tried bumping the Firebase versions accordingly to 15.0.2 but then I get an other error... Task :app:processDebugGoogleServices Found com.google.android.gms:play