dex

android DexArchiveMergerException: Unable to merge dex

假如想象 提交于 2019-12-20 04:54:25
问题 I have recently updated my android sdk version from 25 to 26. After updating the app , i'm receiving this error: Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex This is my gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 26 defaultConfig { applicationId "com.hago.ntr" minSdkVersion 15 targetSdkVersion 26 versionCode 1 versionName "1.0"

android-datepicker: UNEXPECTED TOP-LEVEL EXCEPTION: classes.jar not found

只愿长相守 提交于 2019-12-20 03:19:47
问题 I'm trying to include Simon's DatePicker lib project (https://github.com/SimonVT/android-datepicker) in my own project. The README file says it depends on both his NumberPicker and CalendarView lib projects. So I placed all three projects in my project dir, ran android update lib-project on them (I'm using ant), added the NumberPicker and CalendarView libs as dependencies of the DatePicker lib and the DatePicker lib as a dependency of my own project. Up until now all is well. It also compiles

What does 'String count' mean in Dex file Android?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-19 10:07:46
问题 From adt-21-preview DOC Building There's a new flag to force "jumbo mode" for dex which allows a larger number of strings in the dex files; set dex.force.jumbo=true in project.properties I red this what-are-the-dex-method-and-string-limits-in-an-android-app too, where @SamWise answers: With jumbo dex on, the string reference limit is somewhere between 110K and 120K. Question: What is String or String reference in Dex? Do they mean variable length? For example if I'll write: private String foo

How do I make isolated dalvik

依然范特西╮ 提交于 2019-12-19 08:11:40
问题 I am tracing the Dalvik machine source code. According that, I want to make Dalvik runnable. I have seem the dvk project. But there has many problem result in fault. Are there have any way to make dalvik only without all android. Because make android will take too much time (about many hour) dvk project: http://code.google.com/p/dvk/ 回答1: if you build the lunch "sim-eng", you get a dalvikvm built for just the host (i.e. the Linux box you're building on). this already runs with glibc rather

“trouble writing output: Too many field references: 70185; max is 65536. You may try using --multi-dex option.” when building Android project

我们两清 提交于 2019-12-19 02:28:13
问题 I hit this error and found no hits for the error message, so I thought I'd share the solution I came up with to save anyone else facing the problem repeating my work. When writing a new Android library (apklib) for use in a (large) application, I'm getting the following error during dexing when I add my new project as a dependency: trouble writing output: Too many field references: 70185; max is 65536. You may try using --multi-dex option. References by package: <...long list of packages with

Adding Google Guava to Android project - significantly slows down the build

筅森魡賤 提交于 2019-12-18 18:53:08
问题 After adding Google Guava r09 to our Android project the build time increased significantly, especially the DEX generation phase. I understand that DEX generation takes all our classes + all jars we depend on and translates them to DEX format. Guava is a pretty big jar around 1.1MB Can it be the cause for the build slowdown? Are there anything can be done to speed this up? P.S. Usually I build from Intellij, but I also tried building with Maven - same results. Thanks Alex 回答1: For what it's

Dex Loader Unable to execute Multiple dex files define

孤街浪徒 提交于 2019-12-18 10:32:46
问题 Okay, now i'm really stuck here. I don't know what to do, where to go or ANYTHING! I have been trying to uninstall, reinstall, both SDK and Eclipse-versions, trying to Google this out, but nu-uh... Nothing!!! I CAN run my app in emulator, but i cant EXPORT it... [2011-10-07 16:35:30 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/dreamhawk/kalori/DataBaseHelper; this is dataBaseHelper package com.dreamhawk.kalori; import java.io.FileOutputStream; import java.io.IOException

Using SimpleXML with Android and Gradle

人走茶凉 提交于 2019-12-18 10:16:07
问题 I'm having troubles trying to compile an Android application with Gradle 0.5.+ and Android Studio, using SimpleXML. This is the error: Gradle: Execution failed for task ':MyApplication:dexDebug'. > Failed to run command: /Applications/Android Studio.app/sdk/build-tools/android-4.2.2/dx --dex --output <REALLY_LONG_STRING.....> Error Code: 1 Output: trouble processing "javax/xml/stream/events/StartElement.class": Ill-advised or mistaken usage of a core class (java.* or javax.*) when not

Unable to Merge Dex after upgrading to Android Studio 3.0

佐手、 提交于 2019-12-18 09:41:46
问题 I upgraded Android Studio to version 3.0. Right afterwards whenever I'm trying to debugor run my app or whenever I try to rebuild project - I'm getting this error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex * Try: Run with --info or --debug option to get more

ExceptionWithContext gets thrown when trying to build an Android app with Ant

删除回忆录丶 提交于 2019-12-18 01:59:09
问题 I've tried searching around both on Google and on stackoverflow for an answer to this, but I've been unable to find anyone with the exact issue I'm having. I'm attempting to set up a continuous integration server (Bamboo, specifically) to update, build, and export an APK every time someone makes a change in source control. I'm running into the same error both on my local machine when I do every step by hand and on the server when I use the job I've set up. The error happens when I reach the