递归火山软件开发平台

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 火山 源码 类库
查看: 120|回复: 1
打印 上一主题 下一主题

[安卓] 用了高德地图和华为扫码就编译报错

[复制链接]

5

主题

68

帖子

593

积分

核心用户

Rank: 9Rank: 9Rank: 9

积分
593
跳转到指定楼层
楼主
发表于 前天 13:33 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
错误:
    步骤"生成DEX文件"执行失败
    Error in D:\��ɽ��׿\С��\_int\С��\debug\linker\temp\_main_dex_lst_.txt:
    Unsupported usage of main-dex list. The usage of main-dex-list content for the compilation of non-DEX inputs is deprecated. See issue https://issuetracker.google.com/181858113 for context.
    Warning in libs\luaj-jse-3.0.2.jarrg/luaj/vm2/script/LuajContext.class:
    Type `javax.script.SimpleScriptContext` was not found, it is required for default or static interface methods desugaring of `org.luaj.vm2.script.LuajContext`
    Warning in libs\aar_mylibrary-release_classes.jar:com/example/mylibrary/MyWebSocketClient.class:
    Type `org.java_websocket.client.WebSocketClient` was not found, it is required for default or static interface methods desugaring of `com.example.mylibrary.MyWebSocketClient`
    Warning in libs\luaj-jse-3.0.2.jarrg/luaj/vm2/script/LuaScriptEngine$LuajCompiledScript.class:
    Type `javax.script.CompiledScript` was not found, it is required for default or static interface methods desugaring of `org.luaj.vm2.script.LuaScriptEngine$LuajCompiledScript`
    Warning in libs\aar_scanplus-2_classes.jar:com/huawei/hms/ml/scan/HmsScanAnalyzer.class:
    Type `com.huawei.hms.mlsdk.common.MLAnalyzer` was not found, it is required for default or static interface methods desugaring of `com.huawei.hms.ml.scan.HmsScanAnalyzer`
    Warning in libs\AMap3DMap_7.9.1_AMapNavi_7.9.1_AMapSearch_7.9.0_20210414.jar:com/amap/api/col/3ns/qa$a.class:
    Type `android.telephony.TelephonyManager$CellInfoCallback` was not found, it is required for default or static interface methods desugaring of `com.amap.api.col.3ns.qa$a`
    Warning in libs\luaj-jse-3.0.2.jarrg/luaj/vm2/script/LuajContext.class:
    Type `javax.script.ScriptContext` was not found, it is required for default or static interface methods desugaring of `org.luaj.vm2.script.LuajContext`
    Warning in libs\luaj-jse-3.0.2.jarrg/luaj/vm2/script/LuaScriptEngineFactory.class:
    Type `javax.script.ScriptEngineFactory` was not found, it is required for default or static interface methods desugaring of `org.luaj.vm2.script.LuaScriptEngineFactory`
    Warning in libs\luaj-jse-3.0.2.jarrg/luaj/vm2/script/LuaScriptEngine.class:
    Type `javax.script.AbstractScriptEngine` was not found, it is required for default or static interface methods desugaring of `org.luaj.vm2.script.LuaScriptEngine`
    Warning in libs\luaj-jse-3.0.2.jarrg/luaj/vm2/script/LuaScriptEngine.class:
    Type `javax.script.ScriptEngine` was not found, it is required for default or static interface methods desugaring of `org.luaj.vm2.script.LuaScriptEngine`
    Warning in libs\luaj-jse-3.0.2.jarrg/luaj/vm2/script/LuaScriptEngine.class:
    Type `javax.script.Compilable` was not found, it is required for default or static interface methods desugaring of `org.luaj.vm2.script.LuaScriptEngine`
    Compilation failed
    Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: D:\��ɽ��׿\С��\_int\С��\debug\linker\temp\_main_dex_lst_.txt
     at com.android.tools.r8.internal.so.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:131)
     at com.android.tools.r8.D8.main(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:5)
    Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: D:\��ɽ��׿\С��\_int\С��\debug\linker\temp\_main_dex_lst_.txt
     at Version.fakeStackEntry(Version_8.6.2-dev.java:0)
     at com.android.tools.r8.T.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:5)
     at com.android.tools.r8.internal.so.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:82)
     at com.android.tools.r8.internal.so.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:32)
     at com.android.tools.r8.internal.so.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:31)
     at com.android.tools.r8.internal.so.b(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:2)
     at com.android.tools.r8.D8.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:41)
     at com.android.tools.r8.D8.b(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:13)
     at com.android.tools.r8.D8.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:39)
     at com.android.tools.r8.internal.so.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:118)
     ... 1 more
    Caused by: com.android.tools.r8.internal.g: Unsupported usage of main-dex list. The usage of main-dex-list content for the compilation of non-DEX inputs is deprecated. See issue https://issuetracker.google.com/181858113 for context.
     at com.android.tools.r8.internal.w50.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:21)
     at com.android.tools.r8.internal.w50.error(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:1)
     at com.android.tools.r8.dex.c.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:128)
     at com.android.tools.r8.D8.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:157)
     at com.android.tools.r8.internal.Dh0.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:63)
     at com.android.tools.r8.D8.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:51)
     at com.android.tools.r8.D8.d(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:17)
     at com.android.tools.r8.D8.c(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:72)
     at com.android.tools.r8.internal.so.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:28)
     ... 6 more
     Suppressed: java.lang.RuntimeException: com.android.tools.r8.internal.g: Unsupported usage of main-dex list. The usage of main-dex-list content for the compilation of non-DEX inputs is deprecated. See issue https://issuetracker.google.com/181858113 for context.
      at com.android.tools.r8.internal.w50.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:29)
      at com.android.tools.r8.dex.k.a(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:281)
      at com.android.tools.r8.D8.d(R8_8.6.2-dev_7fc7c6f786a921c1190fae64678f9d13ea8a32a8034f1ca657e7734636ef3f68:154)
      ... 8 more
     Caused by: [CIRCULAR REFERENCE: com.android.tools.r8.internal.g: Unsupported usage of main-dex list. The usage of main-dex-list content for the compilation of non-DEX inputs is deprecated. See issue https://issuetracker.google.com/181858113 for context.]


已经开了启用APK分包机制,怎么解决

回复

使用道具 举报

460

主题

1万

帖子

4万

积分

超级版主

Rank: 8Rank: 8

积分
45789
沙发
发表于 前天 21:18 | 只看该作者
启用  gradle编译
或者启用D8编译(项目属性里面有)

当然推荐用gradle编译,一些奇奇怪怪的问题都可以解决。
安卓无障碍实战课:点击查看
交流群:641526939
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|递归火山软件开发平台 ( 鄂ICP备18029190号 )

GMT+8, 2025-10-8 20:37 , Processed in 0.070648 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表