android-studio-2.0

How to stop debug without closing app in Android Studio 2

为君一笑 提交于 2019-11-29 07:11:09
问题 when I debugging my application and if I click on th Stop button - debugging stopped work - and! - my application closing. (I think android studio just kills proccess). How can I stop debugging without stopping process? 回答1: Press the Close button: then press Disconnect in the dialog, paying attention to leave unchecked Terminate the process after disconnect : 来源: https://stackoverflow.com/questions/36647707/how-to-stop-debug-without-closing-app-in-android-studio-2

Android project build successfully but ran failed with error: java.util.zip.ZipException: duplicate entry

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 07:06:43
I have update my android studio and SDK and some package dependencies on grade of the project and since then I have faced with a lot of problem that I think the reason is incompatibility between dependencies. As I researched I found that many people have same problems and it is not rare. I have solved some of the error but problems just appears one after another and I am just confused. hope you can help me find out the problem and its solution. Code works well on new android versions ! (a little strange) and I can compile and run the app on android 21+. but when I try to run it on below 21

Gradle version 2.10 is required. Current version is 2.8 Error

扶醉桌前 提交于 2019-11-29 06:02:41
Following things are using in the project- The android studio version - 2.0 Preview 4. ANDROID_BUILD_MIN_SDK_VERSION=9 ANDROID_BUILD_TARGET_SDK_VERSION=22 ANDROID_BUILD_TOOLS_VERSION=22.0.1 ANDROID_BUILD_SDK_VERSION=22 classpath 'com.android.tools.build:gradle:2.0.0-alpha9' As per the error I changed the distribution url https\://services.gradle.org/distributions/gradle-2.8-all.zip to https\://services.gradle.org/distributions/gradle-2.10-all.zip but still getting the following error Error:(1, 1) A problem occurred evaluating project ':app'. Failed to apply plugin [id 'com.android.application'

Is it possible to run Android Device Emulator (via Android Studio 2) on VMWare?

为君一笑 提交于 2019-11-29 05:48:11
I have been running Android Studio 1.5.1 doing development on a WMWare copy of Windows 2012 R2 and everything works fine. I've been able to run the device emulator with no problems and start various versions of Android running in AVD. Android Studio 2.x Change I recently installed Android Studio 2.0 (see image below for exact version). Now when I attempt to run the emulator nothing happens. Well, actually I do see a message in the status bar of Studio when I attempt to start the device, but then that message disappears and nothing happens after that. There is a warning that I need to turn off

Android Studio: /dev/kvm device permission denied

 ̄綄美尐妖づ 提交于 2019-11-28 14:55:26
When I try to run my Android app on an emulator I get this error: /dev/kvm permission denied. I checked the permissions and added the user I am currently logged in with to the kvm group. What is wrong? serv-inc As mentioned in the comments, starting with Ubuntu 18.04 and Linux Mint Tara you need to first sudo apt install qemu-kvm . To check the ownership of /dev/kvm use ls -al /dev/kvm The user was root , the group kvm . To check which users are in the kvm group, use grep kvm /etc/group This returned kvm:x:some_number: on my system: as there is nothing rightwards of the final : , there are no

Getting “EnclosingMethod” errors on building in Android Studio 2

假装没事ソ 提交于 2019-11-28 11:52:48
I am getting below build errors when I am running the app in Android Studio 2. These errors were not there when I was using earlier version of Android Studio. Error:warning: Ignoring InnerClasses attribute for an anonymous inner class Error:(com.squareup.haha.guava.base.Joiner$1) that doesn't come with an Error:associated EnclosingMethod attribute. This class was probably produced by a Error:compiler that did not target the modern .class file format. The recommended Error:solution is to recompile the class from source, using an up-to-date compiler Error:and without specifying any "-target"

Not able to debug app on android device - Android Studio 2.0

本小妞迷上赌 提交于 2019-11-28 08:54:22
I am not able to debug an app on my device (Asus Zenphone 2) after I updated android studio to 2.0. I keep seeing below message in debug tab right after I click on debug icon in Android studio. Message in debug tab in Android Studio UI --------------------------------------------------------------- Waiting for application to come online: packagename Waiting for application to come online: packagename Waiting for application to come online: packagename Waiting for application to come online: packagename I keep seeing Alert Dialog with the title "Waiting for Debugger" and Force close button all

Split lib_main was defined multiple times

纵然是瞬间 提交于 2019-11-28 03:52:40
Split lib_main was defined multiple times In "com.android.tools.build:gradle:2.0.0-alpha3" build success, But the errors that occur in the "com.android.tools.build:gradle:2.0.0-alpha5". finally instant run work!! com.android.tools.build:gradle:2.0.0-alpha8 and gradle.properties "org.gradle.jvmargs = -Xmx8g" was resolved to change. For those who wonder what InstantRun is (first setting in the picture): And yes disabling that setting fixes the issue. Edit 01/19/16 'com.android.tools.build:gradle:2.0.0-alpha6' was released three days ago. Using that new version, the "Split lib_main was defined

An OAuth2 client already exists for this package name and SHA-1 in another project [duplicate]

最后都变了- 提交于 2019-11-28 02:00:35
This question already has an answer here: The signing fingerprint you specified is already used by another Android OAuth2 client 7 answers I was practicing firebase CodeLab (Friendly Chat) for learning firebase with android . In that tutorials ,I made a project on firebase console named as " Friendly Chat " and then I add my android app package name and SHA-1 so that invites and Google Auth could be work. After that tutorial get compeleted, I got firebase Auth demo project from github.I add auth demo project's package name and SHA-1 in same console project " Friendly Chat ",its mean now

Android project build successfully but ran failed with error: java.util.zip.ZipException: duplicate entry

十年热恋 提交于 2019-11-28 00:32:27
问题 I have update my android studio and SDK and some package dependencies on grade of the project and since then I have faced with a lot of problem that I think the reason is incompatibility between dependencies. As I researched I found that many people have same problems and it is not rare. I have solved some of the error but problems just appears one after another and I am just confused. hope you can help me find out the problem and its solution. Code works well on new android versions ! (a