Java Runtime Exception When Using Navigation Drawer
I am trying to run my project but it crashes upon load. I have my proguard here as it has been the source of all issues so far and my error below that. I have tried: reinstalling
Solution 1:
Please add the following to your proguard file.
# keep classes with the `View(Context, Attributes)` constructor
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
# keep classes with the `View(Context, Attributes, int)` constructor
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
# keep methods that accept a view as their argument.
# This would be the case if you set an onclick from an xml file
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
# keep all of the design library
-keep class android.support.design.** { *; }
# keep all android classes
-keep class android.** { *; }
# keep all class members, don't rename methods
-keepclassmembers class android.** { *; }
-dontobfuscate
Post a Comment for "Java Runtime Exception When Using Navigation Drawer"