dex

Verifcation of.. drives me crazy

白昼怎懂夜的黑 提交于 2019-12-10 15:00:01
问题 Everytime I run my app (device or emulator is the same), even when not doing any change in code, I get for every method from my largest Activity this: W/art: Verification of void com.xyz.abx.setCredit(boolean) took 343.200ms As the app is quite big, this process takes a few minutes everytime and literally drivers me mad. The strange thing is that it doesn't do that for all the other smaller Activities. I have android:vmSafeMode="true" in the Manifest as suggested in an SO thread, but to no

Unable to execute dex: Multiple dex files define Landroid/support/v7/util/ThreadUtil$MainThreadCallback;

 ̄綄美尐妖づ 提交于 2019-12-10 13:49:02
问题 I am getting unable to execute dex : multiple dex file error. Console Error: [2015-12-22 16:39:38 - Dex Loader] Unable to execute dex: Multiple dex files define Landroid/support/v7/util/ThreadUtil$MainThreadCallback; [2015-12-22 16:39:38 - Talkr] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/v7/util/ThreadUtil$MainThreadCallback; below I have posted the screenshot for order and export.I cant check the android private libraries.if i

Error: Invoke-customs are only supported starting with Android O (--min-api 26)

拜拜、爱过 提交于 2019-12-10 13:05:49
问题 I have recently started learning how to program Android devices via Android Studio. My first app was running fine until I upgraded to Android Studio 3.4 this morning. I'm getting the following compilation errors: Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Users\Technical.gradle\caches\transforms-2\files-2.1\4f3f8638c6a9f961dae488a0387efb6b\jars\classes.jar Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing. Caused

UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException

核能气质少年 提交于 2019-12-10 12:58:52
问题 I am trying to integrate barcodefraglibv2 into my android app in AndroidStudio. I tried to copy libs core.jar and barcodelib.jar into libs directory. However when I try to run application, I get following error Error:Execution failed for task ':Blok:dexDebug'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: /home/backman/android/sdk/build-tools/android-4.4.2/dx --dex --output /home/backman/AndroidStudioProjects/Blok/Blok/build/dex/debug /home/backman

com.android.dx.util.DexException: Multiple dex files define

半城伤御伤魂 提交于 2019-12-10 12:34:42
问题 I use ant release and got this error: [dx] UNEXPECTED TOP-LEVEL EXCEPTION: [dx] com.android.dx.util.DexException: Multiple dex files define Lcom/android/vending/billing/IMarketBillingService; [dx] at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:580) [dx] at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:538) [dx] at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:519) [dx] at com.android.dx.merge.DexMerger.mergeDexBuffers(DexMerger.java:168) [dx]

Unable to merge dex Android - Studio 3.0 build error

倾然丶 夕夏残阳落幕 提交于 2019-12-10 11:35:59
问题 What I want to know I have got the error to build my project after updating my Android Studio 3.0. This error said the Lorg/objectweb/asm/AnnotationWriter is duplicated. So I assume that I have to exclude the dependencies for the grade but I don't know how to find the library that uses this AnnotationWriter. compile('com.googlecode.json-simple:json-simple:1.1.1') { exclude group: 'org.hamcrest', module: 'hamcrest-core' } I understand that there are several same posts on the StackOverflow but

multiDexEnabled do not work

岁酱吖の 提交于 2019-12-10 11:24:34
问题 I have a rather large android project. The project still compiles, but when I try to compile tests I get an error: Execution failed for task ':app:dexDebugTest'. trouble writing output: Too many method references: 70561; max is 65536. You may try using --multi-dex option. Ok, I found the multiDexEnabled property and added multiDexEnabled true in the defaultConfig Also I made my application extend MultiDexApplication But it did not change anything, I still get Execution failed for task ':logic

Android性能优化—不建议使用枚举Enum

匆匆过客 提交于 2019-12-10 09:15:34
最近优化App,由于项目中使用了Lib,而Lib代码中包含了大量的枚举类型,导致App占用内存过多。好吧,知道问题点,那就干掉,抛弃之~ 问题是解决了,为啥会这样呢? 先来看看Android官网的说明吧: 看见了吧,Android官网不建议咱们使用enums,说的也很清楚了,占用内存多(Enums often require more than twice as much memory as static constants.)。 Android中当你的App启动后系统会给App单独分配一块内存。App的DEX code、Heap以及运行时的内存分配都会在这块内存中。 举个栗子: 1.使用Int表示状态 public static final int VALUE1 =1; public static final int VALUE1 =2; public static final int VALUE1 =3; 2.使用Enums表示状态 public static enum Value{ VALUE1, VALUE2, VALUE3 } 情形2中的DEX size增加是情形1中的13倍之多。这还只是DEX code的增加,同样,运行时的内存分配,一个enum值的声明会消耗至少20 bytes,这还不算其中的对象数组需要保持对enum值的引用。Why

Error When building a large Codename One Application During the Dex Phase

丶灬走出姿态 提交于 2019-12-10 02:15:53
问题 I got an error in the build server when sending an Android build during the dex phase. Googling a bit I learned that there is a hard limit of 64K functions (including all libs, the heaviest is google play services), or you can use the multiple dex mechanism. How do I activate this for Codename One? I understand Codename One uses Ant and as far as I understand this only works for gradle. FYI this is the workaround, that splits google play services into sub libraries with native android: http:/

等保2.0发布,几维安全等保专版产品助力企业合规建设

情到浓时终转凉″ 提交于 2019-12-09 22:37:58
5月13日,《信息安全技术 网络安全等级保护基本要求》正式发布,在标准名称、保护对象、章节结构、控制措施等部分进行了修改和更新,标志着我国网络安全等级保护工作正式进入“2.0时代”。 为了适用于新型网络系统的安全保护要求,《信息安全技术 信息系统安全等级保护基本要求》改名为《信息安全技术 网络安全等级保护基本要求》,同时将基础信息网络(广电网、电信网等)、信息系统(采用传统技术的系统)、云计算平台、大数据平台、移动互联、物联网和工业控制系统等作为等级保护对象(网络和信息系统),在原有通用安全要求的基础上新增了安全扩展要求。安全扩展要求主要针对云计算、移动互联、物联网和工业控制系统提出了特殊安全要求,进一步完善了信息安全保护工作的标准。 作为专注于移动安全与物联网安全的科技创新型企业,几维安全以等保2.0相关标准和要求为指导,凭借雄厚的技术积累和丰富的安服经验,推出了 等保2.0移动互联安全 过审服务和安全加固专版产品,全力协助各行业客户快速提升安全规范管理水平,顺利通过等保2.0合规审核。 安全咨询服务 1.等保安全规划 针对政府、企业、重要行业系统做安全规划咨询,协助客户完成未来系统的安全设计方案,制定未来工作目标,包括实施框架、实施理念、实现方式等。 2.等保咨询 【定级备案】几维安全依据《定级指南》相关文件要求,结合行业特点提供定级参考建议,并协助客户完成定级备案工作。