Linphone Android 的 Proguard 规则在 build.gradle 中启用了 proguard
Proguard rules for Linphone Android that enabled proguard in build.gradle
在build.gradle中启用proguard的Linphone android是否有一个好的设置,我在proguard-rules.pro中尝试此代码:
-keep public class * extends *
-keep public class * implements LinphoneCoreListener
-keep interface * { *; }
但显示 JNI 错误:
JNI DETECTED ERROR IN APPLICATION: JNI GetMethodID called with pending
exception 'java.lang.NoSuchMethodError' thrown in long
org.linphone.core.LinphoneCoreImpl.newLinphoneCore(org.linphone.core.LinphoneCoreListener,
java.lang.String, java.lang.String, java.lang.Object):-2
有人对 linphone proguard 有很好的设置吗?
请将以下代码添加到您的混淆器-android.txt 文件
#linphone
-keep class org.linphone.** { *; }
-keepattributes Signature
希望对你有所帮助!
在build.gradle中启用proguard的Linphone android是否有一个好的设置,我在proguard-rules.pro中尝试此代码:
-keep public class * extends *
-keep public class * implements LinphoneCoreListener
-keep interface * { *; }
但显示 JNI 错误:
JNI DETECTED ERROR IN APPLICATION: JNI GetMethodID called with pending exception 'java.lang.NoSuchMethodError' thrown in long org.linphone.core.LinphoneCoreImpl.newLinphoneCore(org.linphone.core.LinphoneCoreListener, java.lang.String, java.lang.String, java.lang.Object):-2
有人对 linphone proguard 有很好的设置吗?
请将以下代码添加到您的混淆器-android.txt 文件
#linphone
-keep class org.linphone.** { *; }
-keepattributes Signature
希望对你有所帮助!