I am using retrofit library and while generating the APK the apk contains java source files under javax.annotations in the APK.
I tried using proguard and minifyEnabled , Still the java source files persist in the extracted APK.
Is there any way to disable generating the java source files?
There is an issue with react-native dependency.
If we want to avoid those files getting in to APK, then we can exclude those files. In my case I did
packagingOptions {
exclude 'javax/annotation/*'
exclude 'javax/annotation/meta/*'
exclude 'javax/annotation/concurrent/*'
}
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.