dex

Plugins architecture for an Android app? [closed]

一世执手 提交于 2019-12-17 17:28:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . THIS QUESTION HAS MOVED TO https://softwarerecs.stackexchange.com/questions/27841/plugins-architecture-for-an-android-app I want to implement a plugin system for an Open Source app, because it has become really large, with many features that only a few users need. Releasing different apps is not a good solution,

After update of AS to 1.0, getting “method ID not in [0, 0xffff]: 65536” error in project

谁说胖子不能爱 提交于 2019-12-17 07:20:07
问题 I updated Android Studio to the latest version, and let it "fix the project" and the like - but now my project does not compile, gives me FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:dexDebug'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: D:\VGA\AndroidStudio\sdk\build-tools\21.1.1\dx.bat --dex --no-optimize --output D:\VGA\Projects\Sales-App\Android-Project\svn\android\app\build\intermediates\dex\debug -

After update of AS to 1.0, getting “method ID not in [0, 0xffff]: 65536” error in project

倾然丶 夕夏残阳落幕 提交于 2019-12-17 07:19:10
问题 I updated Android Studio to the latest version, and let it "fix the project" and the like - but now my project does not compile, gives me FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:dexDebug'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: D:\VGA\AndroidStudio\sdk\build-tools\21.1.1\dx.bat --dex --no-optimize --output D:\VGA\Projects\Sales-App\Android-Project\svn\android\app\build\intermediates\dex\debug -

Android support multidex library implementation

…衆ロ難τιáo~ 提交于 2019-12-17 06:46:50
问题 I have hit the magic dex limit because my application uses a lot of jars (drive API, greendao, text to pdf, support.. ). My current solution was that I literally created a second apk just for google drive which I called from the main apk. But now I found out that android finally supports this with this library. My problem is just that I don't know how to implement it(preferably without gradle). I can't find any good tutorials for it. Okey I am losing my mind trying to implement this... I have

Android support multidex library implementation

送分小仙女□ 提交于 2019-12-17 06:46:06
问题 I have hit the magic dex limit because my application uses a lot of jars (drive API, greendao, text to pdf, support.. ). My current solution was that I literally created a second apk just for google drive which I called from the main apk. But now I found out that android finally supports this with this library. My problem is just that I don't know how to implement it(preferably without gradle). I can't find any good tutorials for it. Okey I am losing my mind trying to implement this... I have

Is there a way to get count of number methods used in a jar file

流过昼夜 提交于 2019-12-17 05:38:16
问题 Can i have the count of all methods used in a jar file . My APK uses certain external JARS and there are a number of classes around hundred to be precise. I have used decompilers like dex2jar JAD and others to name a few ,but they all seem to show methods only in particular class file. Is there a way i can get a total count ? 回答1: You can convert the jar to a dex file, and then pull the number of method references out of the header. It is stored as an unsigned little endian integer, at offset

Android dex gives a BufferOverflowException when building

可紊 提交于 2019-12-17 02:19:50
问题 When compiling a specific Android project, and only on my Windows machine, I get a java.nio.BufferOverflowException during from dex. The problem occurs both when using Eclipse and when using Ant. The output when using Ant is: ... [dex] Pre-Dexing C:\MyProject\libs\android-support-v4.jar -> android-support-v4-5f5341d3c1b10a79d7d93f9c1e64421e.jar [dex] Converting compiled files and external libraries into C:\MyProject\bin\classes.dex... [dx] [dx] UNEXPECTED TOP-LEVEL EXCEPTION: [dx] java.nio

Dalvik虚拟机与java虚拟机的区别

家住魔仙堡 提交于 2019-12-14 16:32:06
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1.java虚拟机运行的是Java字节码,Dalvik虚拟机运行的是Dalvik字节码;传统的Java程序经过编译,生成Java字节码保存在class文件中,java虚拟机通过解码class文件中的内容来运行程序。而Dalvik虚拟机运行的是Dalvik字节码,所有的Dalvik字节码由Java字节码转换而来,并被打包到一个DEX(Dalvik Executable)可执行文件中Dalvik虚拟机通过解释Dex文件来执行这些字节码。 2.Dalvik可执行文件体积更小。SDK中有一个叫dx的工具负责将java字节码转换为Dalvik字节码。 3.java虚拟机与Dalvik虚拟机架构不同。java虚拟机基于栈架构。程序在运行时虚拟机需要频繁的从栈上读取或写入数据。这过程需要更多的指令分派与内存访问次数,会耗费不少CPU时间,对于像手机设备资源有限的设备来说,这是相当大的一笔开销。Dalvik虚拟机基于寄存器架构,数据的访问通过寄存器间直接传递,这样的访问方式比基于栈方式快的多. 来源: oschina 链接: https://my.oschina.net/u/920274/blog/2992534

Too many dex files

烈酒焚心 提交于 2019-12-14 03:09:09
问题 When I build big multi module project, result apk contains a lot of dex files. 35 on debug version and 15 on release. Most of files has far less methods and references then 65k. Is there any way to compact dex files? I also analysed several famous applications from google, instagram, and others. They all have 4-6 almost full dexes. Nothing like we have. So looks like compaction is possible We also suspect that such big amount of dex files can slowdown application startup. Is it the case? When

Dex error On Android Studio 3.0 Beta4

我与影子孤独终老i 提交于 2019-12-14 02:36:07
问题 Error:java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex Error:java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex Error:com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex Error:com.android.dex.DexException: Multiple dex files define Lcom/google/zxing/integration/android/IntentResult; 回答1: I have same problem with Android Studio 3.0 beta 4. I