wlanjie / trinity

android video record editor muxer sdk
Apache License 2.0
893 stars 273 forks source link

Release build error #86

Open vaibhav-droid opened 4 years ago

vaibhav-droid commented 4 years ago

I am getting following error while try to sign the app. Its working in debug mode but in release mode in application class I am getting following error. I have checked #22 but not able to resolve it. I am using target SDK 30

JNI DETECTED ERROR IN APPLICATION: JNI RegisterNatives called with pending exception java.lang.ClassNotFoundException: Didn't find class "com.trinity.record.TrinityRecord" on path: DexPathList[[zip file "/data/app/packagename-zrA4TygNqudIuL_hAw-pwA==/base.apk"],nativeLibraryDirectories=[/data/app/packagename-zrA4TygNqudIuL_hAw-pwA==/lib/arm64, /data/app/packagename-zrA4TygNqudIuL_hAw-pwA==/base.apk!/lib/arm64-v8a, /system/lib64, /system/product/lib64]]

vaibhav-droid commented 4 years ago

set minify enabled to false in app level gradle file

linuxhackr commented 4 years ago
minifyEnabled false
shrinkResources false