Keeping java methods called from Android JNI

巧了我就是萌 提交于 2019-12-04 05:09:47

Your analysis is correct and your configuration looks correct too. You should double-check the fully-qualified name of your class (com.emrahgunduz.AppBase.Services.PlayService.players.pDecoders.PDecoderNative). Note that you have to use '$' instead of '.' to separate inner classes, if applicable.

If you have specified the correct names, you'll see them in the file proguard/seeds.txt that ProGuard writes out in the Android build process.

Once this works, you can replace -keep by -keepclassmembers. ProGuard will then still keep the method names but obfuscate the class name, which is fine in this case.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!