android-studio-2.0

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

。_饼干妹妹 提交于 2019-11-27 17:30:46
问题 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

Some file crunching failed, see logs for details

泪湿孤枕 提交于 2019-11-27 13:39:10
Today I got update for android studio 2.0 in stable version. I update it and it restarted. Then when It opens my existing project, it ask me to update my gradle plugin to 2.0 to get advantages of "instant run" and other features to my current project of android studio 2.0 So I update it and it sets to classpath 'com.android.tools.build:gradle:2.0.0' but when I clean the project it gives me below error AAPT err(Facade for 1961798984): libpng error: Read Error. Error:Execution failed for task ':app:mergeDebugResources'. Some file crunching failed, see logs for details I tried to fixed it many

Android Studio: /dev/kvm device permission denied

回眸只為那壹抹淺笑 提交于 2019-11-27 08:55:20
问题 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? 回答1: 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

Getting “EnclosingMethod” errors on building in Android Studio 2

北城余情 提交于 2019-11-27 06:34:10
问题 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

DuplicateFileException error while building Android APK

夙愿已清 提交于 2019-11-27 06:04:18
问题 I am using Android Studio 2.0 on Windows 7. When building my Android project, I get the following error: :app:transformResourcesWithMergeJavaResForDebug FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK com/google/appengine/repackaged/org/apache/commons/codec

Gradle is failing on syncing my project in the new Android Studio 2.0

╄→гoц情女王★ 提交于 2019-11-27 05:27:59
I have just upgraded (i.e., installed a full new version) my Android Studio from 1.5 to 2.0. The upgrade seemed to go smoothly, but I am having trouble with my project when I open it, when Gradle is syncing my project. After Gradle sync runs for a couple of minutes I get this error: Failed to sync Gradle project MyProject Unknown host 'jcenter.bintray.com'. You may need to adjust the proxy settings in Gradle. Error: Enable Gradle "offline mode' and sync project Learn about configuring HTTP proxies in Gradle So, I click on the link that says: Enable Gradle "offline mode' and sync project Then

Split lib_main was defined multiple times

佐手、 提交于 2019-11-27 05:11:44
问题 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. 回答1: 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

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

余生颓废 提交于 2019-11-26 22:03:29
问题 This question already has answers here : The signing fingerprint you specified is already used by another Android OAuth2 client (7 answers) Closed 2 years ago . 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

Some file crunching failed, see logs for details

六眼飞鱼酱① 提交于 2019-11-26 16:26:13
问题 Today I got update for android studio 2.0 in stable version. I update it and it restarted. Then when It opens my existing project, it ask me to update my gradle plugin to 2.0 to get advantages of "instant run" and other features to my current project of android studio 2.0 So I update it and it sets to classpath 'com.android.tools.build:gradle:2.0.0' but when I clean the project it gives me below error AAPT err(Facade for 1961798984): libpng error: Read Error. Error:Execution failed for task '

Gradle is failing on syncing my project in the new Android Studio 2.0

人走茶凉 提交于 2019-11-26 12:47:32
问题 I have just upgraded (i.e., installed a full new version) my Android Studio from 1.5 to 2.0. The upgrade seemed to go smoothly, but I am having trouble with my project when I open it, when Gradle is syncing my project. After Gradle sync runs for a couple of minutes I get this error: Failed to sync Gradle project MyProject Unknown host \'jcenter.bintray.com\'. You may need to adjust the proxy settings in Gradle. Error: Enable Gradle \"offline mode\' and sync project Learn about configuring