We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
11:02:31 Caused by: com.baidu.titan.dexlib.dex.DexException: Unexpected magic: [100, 101, 120, 10, 48, 51, 57, 0] 11:02:31 at com.baidu.titan.dexlib.dex.TableOfContents.readHeader(TableOfContents.java:80) 11:02:31 at com.baidu.titan.dexlib.dex.TableOfContents.readFrom(TableOfContents.java:71) 11:02:31 at com.baidu.titan.dexlib.dex.Dex.(Dex.java:79) 11:02:31 at com.baidu.titan.dexlib.dex.Dex.(Dex.java:73) 11:02:31 at com.baidu.titan.dex.reader.DexFileReader.(DexFileReader.java:73) 11:02:31 at com.baidu.titan.dex.reader.MultiDexFileReader.accept(MultiDexFileReader.java:57)
根据代码: public static int magicToApi(byte[] magic) { if (magic.length != 8) { return -1; }
if ((magic[0] != 'd') || (magic[1] != 'e') || (magic[2] != 'x') || (magic[3] != '\n') || (magic[7] != '\0')) { return -1; } String version = "" + ((char) magic[4]) + ((char) magic[5]) +((char) magic[6]); if (version.equals(VERSION_CURRENT)) { return API_CURRENT; } else if (version.equals(VERSION_FOR_API_13)) { return API_NO_EXTENDED_OPCODES; } return -1; }
version算出来是"039",返回-1报错了。查了下官方文档,com.android.dex.DexFormat#VERSION_FOR_API_28="039",看起来是没有适配minsdk=28以上的dex格式
The text was updated successfully, but these errors were encountered:
No branches or pull requests
11:02:31 Caused by: com.baidu.titan.dexlib.dex.DexException: Unexpected magic: [100, 101, 120, 10, 48, 51, 57, 0]
11:02:31 at com.baidu.titan.dexlib.dex.TableOfContents.readHeader(TableOfContents.java:80)
11:02:31 at com.baidu.titan.dexlib.dex.TableOfContents.readFrom(TableOfContents.java:71)
11:02:31 at com.baidu.titan.dexlib.dex.Dex.(Dex.java:79)
11:02:31 at com.baidu.titan.dexlib.dex.Dex.(Dex.java:73)
11:02:31 at com.baidu.titan.dex.reader.DexFileReader.(DexFileReader.java:73)
11:02:31 at com.baidu.titan.dex.reader.MultiDexFileReader.accept(MultiDexFileReader.java:57)
根据代码:
public static int magicToApi(byte[] magic) {
if (magic.length != 8) {
return -1;
}
version算出来是"039",返回-1报错了。查了下官方文档,com.android.dex.DexFormat#VERSION_FOR_API_28="039",看起来是没有适配minsdk=28以上的dex格式
The text was updated successfully, but these errors were encountered: