yausername / youtubedl-android

youtube-dl for android
GNU General Public License v3.0
947 stars 172 forks source link

java.lang.ExceptionInInitializerError #234

Closed AndroidJohnsonWang closed 1 year ago

AndroidJohnsonWang commented 1 year ago

When using gradle 8.0.0 or above, release will catch directly, debug will not have problems

java.lang.ExceptionInInitializerError at c7.e.b(SourceFile:1) at c7.h0.b(SourceFile:554) at c7.h0.<init>(SourceFile:164) at y4.o9.a(SourceFile:8) at com.yausername.youtubedl_android.YoutubeDL.initPython(SourceFile:46) at com.yausername.youtubedl_android.YoutubeDL.init(SourceFile:205) at w2.g.j(SourceFile:10) at f6.a.n(SourceFile:9) at t6.c0.run(SourceFile:111)

JunkFood02 commented 1 year ago

duplicate of #71

AndroidJohnsonWang commented 1 year ago

@JunkFood02 Written proguard rule is still catch

AndroidJohnsonWang commented 1 year ago

java.lang.ExceptionInInitializerError at a7.e.b(SourceFile:1) at a7.l0.b(SourceFile:399) at a7.l0.<init>(SourceFile:68) at com.yausername.youtubedl_common.utils.ZipUtils.unzip(SourceFile:1) at com.yausername.youtubedl_android.YoutubeDL.initPython(SourceFile:48) at com.yausername.youtubedl_android.YoutubeDL.init(SourceFile:205)

AndroidJohnsonWang commented 1 year ago

add -keepattributes SourceFile in proguard.fix bug.