Closed balasaheb143 closed 5 years ago
It seems that you are using non-standard proguard rules and obfuscating native methods.
Proguard rules have to contain something like this:
native <methods>;
It is included in defaults provided by Android SDK.
#################################################################################################### #################################################################################################### #################################################################################################### ######################################### PROGUARD ################################################# #################################################################################################### #################################################################################################### ####################################################################################################
-dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -verbose
-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/,!class/merging/ -optimizationpasses 5 -allowaccessmodification #
-keep public class extends android.app.Activity
-keep public class extends android.app.Application
-keep public class extends android.app.Service
-keep public class extends android.content.BroadcastReceiver
-keep public class extends android.content.ContentProvider
-keep public class extends android.app.backup.BackupAgent
-keep public class extends android.preference.Preference
-keep public class extends android.support.v4.app.Fragment
-keep public class extends android.support.v4.app.DialogFragment
-keep public class extends android.app.Fragment
-keep public class com.android.vending.licensing.ILicensingService
-keep public class pl.droidsonroids.gif.GifIOException{
-keepattributes Annotation
-dontwarn sun.misc.**
-keep class com.homeservices.models.* { public protected private ; }
-keep class implements com.google.gson.TypeAdapterFactory -keep class implements com.google.gson.JsonSerializer -keep class * implements com.google.gson.JsonDeserializer
-keepclassmembers class *.R$ {
public static
-keep public class implements com.bumptech.glide.module.GlideModule -keep public class extends com.bumptech.glide.module.AppGlideModule -keep public enum com.bumptech.glide.load.ImageHeaderParser$ { [] $VALUES; public *; }
-keepclasseswithmembers class * {
public
-keepclassmembers class extends android.app.Activity { public void (android.view.View); }
-keepclassmembers enum * { public static [] values(); public static valueOf(java.lang.String); }
-keep class implements android.os.Parcelable { public static final android.os.Parcelable$Creator ; }
-keepclassmembers class .R$* {
public static
-dontwarn android.support. -dontwarn com.google.ads. -dontwarn org.springframework. -dontwarn okhttp3. -dontwarn okio. -dontwarn retrofit2.Platform$Java8 -dontwarn net.sqlcipher.
I used standard proguard rules i attach my proguard file
Native method keeping is missing. You need to add native <methods>;
or equivalent.
Crashed: main at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2762) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2823) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1545) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6349) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:893) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)
--
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{pt.fidelidade.b2c.Faustudo/com.homeservices.ui.splash.SplashActivity}: android.view.InflateException: Binary XML file line #5: Binary XML file line #5: Error inflating class pl.droidsonroids.gif.GifImageView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2762) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2823) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1545) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6349) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:893) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)
Caused by android.view.InflateException: Binary XML file line #5: Binary XML file line #5: Error inflating class pl.droidsonroids.gif.GifImageView
Caused by android.view.InflateException: Binary XML file line #5: Error inflating class pl.droidsonroids.gif.GifImageView
Caused by java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance0(Constructor.java) at java.lang.reflect.Constructor.newInstance(Constructor.java:430) at android.view.LayoutInflater.createView(LayoutInflater.java:645) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:787) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727) at android.view.LayoutInflater.inflate(LayoutInflater.java:495) at android.view.LayoutInflater.inflate(LayoutInflater.java:426) at android.view.LayoutInflater.inflate(LayoutInflater.java:377) at android.support.v7.app.AppCompatDelegateImpl.getMenuInflater(Unknown Source) at android.support.v7.app.AppCompatActivity.setContentView(Unknown Source) at android.databinding.DataBindingUtil.inflate$5676ca12(Unknown Source) at com.homeservices.ui.splash.SplashActivity.onCreate(Unknown Source) at android.app.Activity.performCreate(Activity.java:6772) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2715) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2823) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1545) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6349) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:893) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)
Caused by java.lang.UnsatisfiedLinkError: No implementation found for int pl.droidsonroids.gif.GifInfoHandle.b(java.io.FileDescriptor) (tried Java_pl_droidsonroids_gif_GifInfoHandle_b and Java_pl_droidsonroids_gif_GifInfoHandle_b__Ljava_io_FileDescriptor_2) at pl.droidsonroids.gif.GifInfoHandle.extractNativeFileDescriptor(Unknown Source) at pl.droidsonroids.gif.GifInfoHandle.openFd(Unknown Source) at pl.droidsonroids.gif.GifInfoHandle.(Unknown Source) at pl.droidsonroids.gif.GifDrawable.(Unknown Source) at pl.droidsonroids.gif.GifDrawable.(Unknown Source) at pl.droidsonroids.gif.GifViewUtils.initImageView(Unknown Source) at pl.droidsonroids.gif.GifViewUtils$GifImageViewAttributes.getResourceId(Unknown Source) at pl.droidsonroids.gif.GifViewUtils$GifImageViewAttributes.(Unknown Source) at pl.droidsonroids.gif.GifViewUtils.initImageView(Unknown Source) at pl.droidsonroids.gif.GifImageView.(Unknown Source) at java.lang.reflect.Constructor.newInstance0(Constructor.java) at java.lang.reflect.Constructor.newInstance(Constructor.java:430) at android.view.LayoutInflater.createView(LayoutInflater.java:645) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:787) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727) at android.view.LayoutInflater.inflate(LayoutInflater.java:495) at android.view.LayoutInflater.inflate(LayoutInflater.java:426) at android.view.LayoutInflater.inflate(LayoutInflater.java:377) at android.support.v7.app.AppCompatDelegateImpl.getMenuInflater(Unknown Source) at android.support.v7.app.AppCompatActivity.setContentView(Unknown Source) at android.databinding.DataBindingUtil.inflate$5676ca12(Unknown Source) at com.homeservices.ui.splash.SplashActivity.onCreate(Unknown Source) at android.app.Activity.performCreate(Activity.java:6772) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2715) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2823) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1545) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6349) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:893) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)
0. Crashed: main
1. Queue
2. Queue
3. Answers Events Handler1
4. firebase-iid-executor
5. Queue
6. AsyncTask #2
7. Queue
8. MessengerIpcClient
9. pool-2-thread-1
10. pool-5-thread-1
11. pool-4-thread-1
12. Queue
13. FinalizerWatchdogDaemon
14. Queue
15. Queue
16. AsyncTask #1
17. ReferenceQueueDaemon
18. AsyncTask #4
19. FirebaseInstanceId
20. Queue
21. AsyncTask #3
22. FinalizerDaemon
23. firebase-iid-executor
24. Queue
25. HeapTaskDaemon
26. Crashlytics Exception Handler1
27. pool-3-thread-1
28. Measurement Worker