StringFog icon indicating copy to clipboard operation
StringFog copied to clipboard

Can't process class [module-info.class] (null)

Open summer-zhoujie opened this issue 3 years ago • 3 comments

Config

//root.gradle

classpath 'com.github.megatronking.stringfog:gradle-plugin:2.2.1'
        classpath 'com.github.megatronking.stringfog:xor:1.1.0'

//app.gradle

apply plugin: 'stringfog'
static def getDate() {
    def date = new Date()
    def formattedDate = date.format('yyyyMMdd')
    return formattedDate
}
stringfog {
        // 这是加解密key,可以自由定义。
        key 'luckyfog' + getDate()
        enable true
        // 指定加解密的具体实现类,可以用默认实现的xor库或者aes-cbc库,也可以自己定制实现,记得配置dependencies
        implementation 'com.github.megatronking.stringfog.xor.StringFogImpl'
        // 指定需加密的代码包路径,可配置多个,未指定将默认全部加密。
        fogPackages = ['com.luckstep.main']
    }

错误信息

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:minifyReleaseWithProguard'.
> java.io.IOException: Can't read [/Users/apple/Documents/AndroidProjects/luckystep/app/build/intermediates/transforms/stringFog/release/30.jar(;;;;;;;**.class)] (Can't process class [module-info.class] (null))

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 4m 58s

summer-zhoujie avatar Nov 26 '21 08:11 summer-zhoujie

楼主解决了吗?

yanpengCoding avatar Dec 14 '21 07:12 yanpengCoding

需要详细的信息,例如是哪个依赖库导致的。

MegatronKing avatar Feb 14 '22 10:02 MegatronKing

@MegatronKing hello我更新了下, 不知道我提供的截图是否是你想要的信息

// root.gradle

classpath 'com.github.megatronking.stringfog:gradle-plugin:3.0.0'
        // 选用加解密算法库,默认实现了xor算法,也可以使用自己的加解密库。
        classpath 'com.github.megatronking.stringfog:xor:3.0.0'

// app.gradle

// 这里要和上面选用的加解密算法库一致,用于运行时解密。
    api 'com.github.megatronking.stringfog:xor:3.0.0'
apply plugin: 'stringfog'

stringfog {
    // 必要:加解密库的实现类路径,需和上面配置的加解密算法库一致。
    implementation 'com.github.megatronking.stringfog.xor.StringFogImpl'
    // 可选:加密开关,默认开启。
    enable true
    // 可选:指定需加密的代码包路径,可配置多个,未指定将默认全部加密。
    fogPackages = ['com.luckstep.main']
    // 可选:指定密钥生成器,默认使用长度2的随机密钥(每个字符串均有随机密钥),
    //      也可以指定一个固定的密钥:HardCodeKeyGenerator("This is a key")
//    kg new RandomKeyGenerator()
    // 可选:调试信息打印开关,默认关闭。
//    debug true
}

// log

> Task :baselib:copyWalktoernReleaseJniLibsProjectOnly
> Task :step:mergeReleaseJniLibFolders
> Task :app:collectReleaseDependencies
> Task :app:configureReleaseDependencies
> Task :app:parseReleaseIntegrityConfig UP-TO-DATE
> Task :app:validateSigningRelease
> Task :step:mergeReleaseNativeLibs
> Task :step:stripReleaseDebugSymbols NO-SOURCE
> Task :step:copyReleaseJniLibsProjectOnly
> Task :eventio-oaid:mergeReleaseNativeLibs
> Task :eventio-oaid:stripReleaseDebugSymbols NO-SOURCE
> Task :eventio-oaid:copyReleaseJniLibsProjectOnly
> Task :eventio-openudid:mergeReleaseNativeLibs
> Task :eventio-openudid:stripReleaseDebugSymbols NO-SOURCE
> Task :eventio-openudid:copyReleaseJniLibsProjectOnly
> Task :eventio-core:mergeReleaseNativeLibs
> Task :eventio-core:stripReleaseDebugSymbols NO-SOURCE
> Task :eventio-core:copyReleaseJniLibsProjectOnly
> Task :app:mergeReleaseNativeLibs

> Task :app:stripReleaseDebugSymbols
WARNING: Compatible side by side NDK version was not found. Default is 21.0.6113669.
Compatible side by side NDK version was not found. Default is 21.0.6113669.
Unable to strip the following libraries, packaging them as they are: lib39285EFA.so, libEncryptorP.so, libPglmetasec_ov.so, libantitrace.so, libapminsighta.so, libapminsightb.so, libbossy_daemon.so, libpl_droidsonroids_gif.so, libprotect.so, libtongdun.so.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:minifyReleaseWithProguard'.
> java.io.IOException: Can't read [/Users/apple/Documents/AndroidProjects/luckystep/app/build/intermediates/transforms/stringFog/release/6.jar(;;;;;;;**.class)] (Can't process class [META-INF/versions/9/module-info.class] (null))

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 3s
210 actionable tasks: 196 executed, 14 up-to-date

6.jar.zip 截屏2022-06-22 下午5 01 51

summer-zhoujie avatar Jun 22 '22 09:06 summer-zhoujie

4.0.1,目前也碰到了,随机一个jar报IO异常

CGreen11 avatar Feb 10 '23 01:02 CGreen11

Yapılandırma

//root.gradle

classpath 'com.github.megatronking.stringfog:gradle-plugin:2.2.1'
        classpath 'com.github.megatronking.stringfog:xor:1.1.0'

//app.gradle

apply plugin: 'stringfog'
static def getDate() {
    def date = new Date()
    def formattedDate = date.format('yyyyMMdd')
    return formattedDate
}
stringfog {
        // 这是加解密key,可以自由定义。
        key 'luckyfog' + getDate()
        enable true
        // 指定加解密的具体实现类,可以用默认实现的xor库或者aes-cbc库,也可以自己定制实现,记得配置dependencies
        implementation 'com.github.megatronking.stringfog.xor.StringFogImpl'
        // 指定需加密的代码包路径,可配置多个,未指定将默认全部加密。
        fogPackages = ['com.luckstep.main']
    }

错误信息

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:minifyReleaseWithProguard'.
> java.io.IOException: Can't read [/Users/apple/Documents/AndroidProjects/luckystep/app/build/intermediates/transforms/stringFog/release/30.jar(;;;;;;;**.class)] (Can't process class [module-info.class] (null))

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 4m 58s

Haha

Hilmican66 avatar Dec 17 '23 21:12 Hilmican66