简体   繁体   中英

Android third party library not found after using android app bundle

Important notes:

  1. App size before adding zoom-sdk: ±70mb.
  2. App size after adding zoom-sdk: ±140mb
  3. App size after using android app bundle: ±60mb

Edit: (zoom-sdk) is a native library (.aar file)

I am using zoom-sdk in my app, I was making the normal apk build to be uploaded on playstore but the size of apk increased over 100MB ( after using zoom sdk).

Then I make use of android app bundle, uploaded the app for internal testing (in playstore), during testing I found out that the module(zoom-sdk) is not found when app is build using android app bundle.

Has anyone faced something similar issue, where we need to use a third party library and build the app using android app bundle.

Exception I was getting:

E/ZMBuildConfig: parse build target failed. value=TARGET_ZOOM
java.lang.NoSuchFieldException: TARGET_ZOOM
    at java.lang.Class.getField(Class.java:1601)
    at us.zoom.b.b.<clinit>(SourceFile:29)
    at com.zipow.cmmlib.AppContext.<clinit>(SourceFile:37)
    at com.zipow.cmmlib.AppContext.a(SourceFile:65)
    at us.zoom.sdk.q.a(SourceFile:441)

Adding these lines in proguard file did the trick for me.

-keep class us.zoom.** { *; }
-keep class us.zipow.** { *; }
-keep class com.zipow.** { *; }
-keep class org.webrtc.** { *; }
-dontwarn us.zoom.**
-dontwarn com.zipow.**

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM