Skip to content

class.dex文件生成失败 格式不对[100, 101, 120, 10, 48, 51, 55, 0] #1781

Description

@dongzhou121

Android studio版本
Android Studio Narwhal 3 Feature Drop | 2025.1.3
Build #AI-251.26094.121.2513.14007798, built on August 28, 2025
Runtime version: 21.0.7+-13880790-b1038.58 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
Kotlin plugin: K2 mode
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 8
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
Statistic (5.0)
GsonFormatPlus (1.6.1)
gradle版本是8.13
tinker版本是1.9.14.25
Java格式是17.0.12
在前面的命令
./gradlew clean

2. 生成基准APK (1.0.0)

./gradlew assembleRelease

3. 备份基准APK

./gradlew backupBaseApk

4. 修改代码和版本号

- 修改实际代码

- 修改版本号为1.0.1

5. 生成新APK(1.0.1)

./gradlew assembleRelease

查看当前版本(PowerShell命令)

.\gradlew -q properties | Select-String "versionName"

dir app\build\backupApk
都是成功的
在最后生成补丁文件时
报异常com.tencent.tinker.android.dex.DexException: com.tencent.tinker.android.dex.DexException: Unexpected magic: [100, 101, 120, 10, 48, 51, 55, 0]
总卡在这最后一步 有没有可以兼容java17的版本呢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions