Skip to content
New issue

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

更新Gradle7.4.1 编译报错 #524

Open
demo-Hexj opened this issue Jul 20, 2023 · 1 comment
Open

更新Gradle7.4.1 编译报错 #524

demo-Hexj opened this issue Jul 20, 2023 · 1 comment

Comments

@demo-Hexj
Copy link

已经添加这些配置:
distributionUrl=https://services.gradle.org/distributions/gradle-7.5-bin.zip
** classpath 'com.android.tools.build:gradle:7.4.1'**
classpath 'io.github.leon406:AndResGuard-gradle-plugin:1.2.23'
android.enableResourceOptimizations=false

还是报以下错误:

Task :app:resguardNormalRelease
convertToPatternString typeName mipmap format ic_launcher.*
convertToPatternString typeName xml format jpush.*
convertToPatternString typeName drawable format jpush.*
convertToPatternString typeName layout format jpush.*
convertToPatternString typeName layout format push.*
convertToPatternString typeName string format jg.*
convertToPatternString typeName style format MyDialogStyle
convertToPatternString typeName style format JPushTheme

-->AndResGuard starting! Current thread# id: 227, name: included builds
unziping apk to D:\hexj\project\mobile-dacs-android-jdk17\mobile-dacs-android\app\build\outputs\apk\normal\release\AndResGuard_DACS_APP_normal_2023H1(31749)_release_20230720120033\temp
decoding resources.arsc
parse to get the exist names in the resouces.arsc first
reading packagename com.datacloak.mobiledacs
resources mapping file D:\hexj\project\mobile-dacs-android-jdk17\mobile-dacs-android\app\build\outputs\apk\normal\release\AndResGuard_DACS_APP_normal_2023H1(31749)_release_20230720120033\resource_mapping_DACS_APP_normal_2023H1(31749)_release_20230720120033.txt done
resources filter mapping file D:\hexj\project\mobile-dacs-android-jdk17\mobile-dacs-android\app\build\outputs\apk\normal\release\AndResGuard_DACS_APP_normal_2023H1(31749)_release_20230720120033\merge_duplicated_res_mapping_DACS_APP_normal_2023H1(31749)_release_20230
720120033.txt done
writing new resources.arsc
resources.arsc Character Encoding: utf-8
String pool size: 10
[AndResGuard] buildApk signatureType: SchemaV2
General unsigned apk: DACS_APP_normal_2023H1(31749)_release_20230720120033_unsigned.apk

  • What went wrong:
    Execution failed for task ':app:resguardNormalRelease'.

java.lang.ExceptionInInitializerError (no error message)

@Leon406
Copy link

Leon406 commented Jul 21, 2023

反馈错地方了!!!

个人维护版本也已经归档了,也不能反馈, 目前支持到7.4.2 (jdk要求11及以下),
jdk17会有问题, 好像是签名的包兼容问题

改下gradle jdk版本到11就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants