android-studio-3.0

AAPT2 gradle issue in android studio 3.0 beta4

我只是一个虾纸丫 提交于 2020-01-15 08:12:07
问题 Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details We have already added android.enableAapt2=false in gradle.properties file 回答1: For me, there was no need to add android.enableAapt2=false to my gradle.properties . The solution for me was to make sure that in my gradle build file my compileSdkVersion is set to 26, buildToolsVersion is set to 26.0.2 and targetSdkVersion is set to 26

How create android emulator without android studio?

孤人 提交于 2020-01-14 03:55:13
问题 Android Studio 3.2. I create 2 emulators by Android Studio. Nice. But the question is: Is it possible to create android emulator WITHOUT Android Studio? Our QA need to use emulators for test our applications. But it not need Android Studio. How QA can create android emulator without Android Studio? 回答1: There are a lot of 3th party emulators out there, which are quite easy to use and fast to set up. Just have a quick look in your favorite search engine. But here is a short list of better

Refactoring inside the main source set doesn't propagate to inactive build variants

*爱你&永不变心* 提交于 2020-01-13 18:56:26
问题 I have src/main/java for the main source set. Also a src/heroes/java source set for a product flavor named heroes and a src/villains/java source set for a product flavor named villains . Those have only a single build type, debug . Meaning the build variants pane will contain heroesDebug and villainsDebug . Now, in Android Studio, if I select build variant heroesDebug , src/main and src/heroes become "active" while src/villains "deactivates". Meaning I can use ALT + Insert, code complete, and

Refactoring inside the main source set doesn't propagate to inactive build variants

主宰稳场 提交于 2020-01-13 18:56:25
问题 I have src/main/java for the main source set. Also a src/heroes/java source set for a product flavor named heroes and a src/villains/java source set for a product flavor named villains . Those have only a single build type, debug . Meaning the build variants pane will contain heroesDebug and villainsDebug . Now, in Android Studio, if I select build variant heroesDebug , src/main and src/heroes become "active" while src/villains "deactivates". Meaning I can use ALT + Insert, code complete, and

Android Studio 3.5 Cause: buildOutput.apkData must not be null Clean & Rebuild already tried

巧了我就是萌 提交于 2020-01-13 08:50:28
问题 After I've updated Android Studio 3.4 to 3.5 and wanted to build a Signed APK, however I get the error : Cause: buildOutput.apkData must not be null Error I've already tried to Clean & Make the Project and to Clean & Rebuild the Project, with no success. I am using Android Gradle 3.5.0 & Gradle Version 5.4.1 回答1: This issue happens after update my Android studio v3.4 to v3.5 Now, it is working fine I fixed this issue by deleting debug/output.json and release/output.json files otherwise change

Multipart request with Retrofit @PartMap Error in Kotlin (Android)

核能气质少年 提交于 2020-01-11 18:41:08
问题 If I am using this code in Java then its working fine. When I convert that code in kotlin then I got Error. Logcat 08-20 23:46:51.003 3782-3782/com.qkangaroo.app W/System.err: java.lang.IllegalArgumentException: Parameter type must not include a type variable or wildcard: java.util.Map (parameter #1) 08-20 23:46:51.003 3782-3782/com.qkangaroo.app W/System.err: for method ApiInterface.updateCustomerDetail 08-20 23:46:51.003 3782-3782/com.qkangaroo.app W/System.err: at retrofit2.ServiceMethod

Android studio 3.0 error, how can I get rid of it?

走远了吗. 提交于 2020-01-11 09:53:35
问题 I just update my android studio to 3.0 now, but when I try to build apk on my project, it's shows following error: Project depends on com.google.android.support:wearable:2.0.0, so it must also depend (as a provided dependency) on com.google.android.wearable:wearable:2.0.0 My build.gradle is like that: dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile project(':lpd') compile 'com.google.android.support:wearable:2.0.0-alpha2' compile 'com.google.android.gms:play-services

DexArchiveMergerException: Unable to merge dex

◇◆丶佛笑我妖孽 提交于 2020-01-11 03:53:06
问题 Just after updating Android studio 3.0 yesterday from 2.3.3 version, I am facing issue related to DexMergerException. Someone else also posted question-related to this. But in this question, I want to analyze the stack trace to find the related solution(since i am newbiew here..). I am unable to resolve it even after excluding group that might be using it. Since I am not aware of which component colliding with HttpCore so I'd use this code to exclude httpCore: implementation ('com.android

Error converting bytecode to dex: Multiple dex files, Android Studio 3.0

早过忘川 提交于 2020-01-06 06:55:53
问题 I recently upgraded to Android Studio 3.0, and while running the program I get the following error: Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Lcom/vuforia/TransformModel; Error:com.android.dex.DexException: Multiple dex files define Lcom/vuforia/TransformModel; Error: at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:661) Error: at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:616) Error: at com

IME in Android Studio emulator not responding to Shift-B on keyboard

一笑奈何 提交于 2020-01-05 07:41:09
问题 I noticed that Shift-B is not being recorded or received on EditTexts when I am using the emulator with my physical keyboard. Keyboard works fine elsewhere in all other programs - "B" - see! Lower-case ''b' works fine everywhere All other SHIFT alphabet characters work from the keyboard except "B" Clicking on shift-B on the IME (soft keyboard) works fine When pressing SHIFT-b, the onKeyListener.onKey() receives a keyCode of 0 I have used Android Studio and the Emulator extensively for a year