android-studio-2.1

com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml

ε祈祈猫儿з 提交于 2019-11-27 05:34:41
I am creating one app that uses a RestAPI to fetch data, and for that operation I am using retrofit 2, okhttp3 and jackson for parsing json to object, my app also use Firebase Cloud Messaging when I compile my code it gives me following error & I can't able to run it Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml File1: /Users/silent/work/silentinfotech

Android Studio: Gradle sync failed: Connection timed out: connect

风流意气都作罢 提交于 2019-11-27 03:13:00
问题 My Android Studio was working fine till morning, but since tonight I get error saying "Gradle sync failed: Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.". I am not using any proxy server. Even the option for HTTP proxy is set to "no proxy". I have no idea how to get this working. I tried giving public access to Android Studio in firewall but it didn't work. Any help/solution is welcome. P.S. My Android Studio

Why doesn't Android Studio accept new Java JDK location

感情迁移 提交于 2019-11-27 02:16:25
I am trying to change the JDK location from "C:\Program Files\Java\jdk1.7.0_09" to "C:\Program Files\Java\jdk1.8.0_25", but Android Studio seems to ignore the change completely. The location remains "C:\Program Files\Java\jdk1.7.0_09". Could anyone offer a tip on how to remedy this? I have tried many times and restarted AS a few times. I must be missing something fundamental. Try this, may be work. Android studio don't accept a SDK path that contains a whitespace. In your SDK path, there is a white space between 'Program Files'. Therefore Android Studio showing the error. Solution- Try placing

Rendering Problems Exception raised during rendering: com/android/util/PropertiesMap [duplicate]

六月ゝ 毕业季﹏ 提交于 2019-11-26 22:34:53
问题 This question already has answers here : Rendering Problems Exception raised during rendering: com.android.ide.common.rendering.api.LayoutlibCallback (5 answers) Closed 3 years ago . I have recently updated my Android Studio to 2.1.1 and I noticed my layout previews weren't working anymore, so when I checked it showed a message saying: Rendering Problems Exception raised during rendering: com/android/util/PropertiesMap (Details) When I clicked on details a message window popped up dislaying

Android Studio JDK location changes back to 1.7 every time it is updated to 1.8 path

混江龙づ霸主 提交于 2019-11-26 21:46:34
问题 I recently installed jdk 1.8 u92 after Android Studio said it is needed for api24 builds. However, I've run into this issue now. I looked at some other solutions and uninstalled jdk 1.7, added environment variables for JDK_HOME, JAVA_HOME, and JAVA8_HOME. The problem still persists. Every time I try to build the app, gradle sync fails and Android studio asks me to Choose a valid JDK directory . I then go to Project Structure => JDK Location and update it to the 1.8 folder. Trying to build

I am getting this error “your cpu doesn't support vt-x or svm, android studio 2.1.1 in AMD 6300 processor”

时光怂恿深爱的人放手 提交于 2019-11-26 16:35:23
问题 I have enabled the virtualization in bios setup but when i try to launch the emulator i am getting the error "your cpu doesn't support vt-x or svm" I have installed Intel haxm too. 回答1: The VT-x technology as well as the HAXM are unique to Intel processors. In the case of AMD processors, AMD-V is the counterpart in the virtualization tech front. Installation of HAXM in an AMD processor will not have any impact and hence the error "your cpu doesn't support vt-x or svm". Reference link: http:/

How to enable Jack (Java Android Compiler Kit) in android studio

安稳与你 提交于 2019-11-26 15:25:38
问题 I am updated my androidstudio 2.1 stable.As per Android Studio 2.1 supports Android N Developer Preview Android studio 2.1 support Jack (Java Android Compiler Kit) compiler . How to add or use Jack in android studio? NOTE: The Jack toolchain is deprecated, as per Java 8 Language Feature Support on Android. However, you may continue to use it to enable Java 8 language features until the replacement is available. https://source.android.com/source/jack 回答1: The details on what is required to use

Session 'app' error while installing APK

拟墨画扇 提交于 2019-11-26 12:21:34
问题 I am having difficulty importing a project written on Android Studio 1.1 into Android Studio 2.1.2. I keep getting this error whenever the gradle is building before testing the app on a tablet. Below is a screen shot of the error. Does anyone know what the problem could be? I have tried adb kill-server followed by adb start-server as well as some other gradle versions compatible with the project. Other than this, I have not been able to find many more suggested solutions to the problem (\

com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml

。_饼干妹妹 提交于 2019-11-26 11:37:43
问题 I am creating one app that uses a RestAPI to fetch data, and for that operation I am using retrofit 2, okhttp3 and jackson for parsing json to object, my app also use Firebase Cloud Messaging when I compile my code it gives me following error & I can\'t able to run it Error:Execution failed for task \':app:transformResourcesWithMergeJavaResForDebug\'. com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META

no changes to deploy android studio 2.1

我只是一个虾纸丫 提交于 2019-11-26 10:47:22
Android Studio 2.1 instant run is not updating the app on the device I observed an issue with AndroidStudio 2.1. When I run the app with small java code changes, it doesn't update app on the device sometimes. Instead it shows a message No changes to deploy // (Don't show again) Am I missing any thing here? As a work around I do clean build every time in order to reflect the changes in app. Amit Vaghela Upgrade Android studio version to 3 or more. this bug is resolved. This was a bug on version 2.0 instant run and issues were reported check these links https://code.google.com/p/android/issues