Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime Exception when opening settings #246

Closed
ghost opened this issue Jan 15, 2013 · 2 comments
Closed

Runtime Exception when opening settings #246

ghost opened this issue Jan 15, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 15, 2013

Salam,
When i build the current project with maven i have a runtime exception when i open the settings in first i thought i was only my configuration, but i tried in an other machine and i have the problem, even on different version of android in the emulator. no one notice? i tried to fix it my self for a while, but i couldn't, can i have some help please.

This is the logcat:

01-15 18:05:20.314: I/ActivityManager(51): Starting activity: Intent { cmp=com.quran.labs.androidquran/.QuranPreferenceActivity }
01-15 18:05:20.463: D/AndroidRuntime(202): Shutting down VM
01-15 18:05:20.463: W/dalvikvm(202): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
01-15 18:05:20.463: E/AndroidRuntime(202): Uncaught handler: thread main exiting due to uncaught exception
01-15 18:05:20.483: E/AndroidRuntime(202): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.quran.labs.androidquran/com.quran.labs.androidquran.QuranPreferenceActivity}: android.view.InflateException: Binary XML file line #105: Error inflating class com.quran.labs.androidquran.widgets.SeekBarPreference
01-15 18:05:20.483: E/AndroidRuntime(202): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.os.Handler.dispatchMessage(Handler.java:99)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.os.Looper.loop(Looper.java:123)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.app.ActivityThread.main(ActivityThread.java:4363)
01-15 18:05:20.483: E/AndroidRuntime(202): at java.lang.reflect.Method.invokeNative(Native Method)
01-15 18:05:20.483: E/AndroidRuntime(202): at java.lang.reflect.Method.invoke(Method.java:521)
01-15 18:05:20.483: E/AndroidRuntime(202): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
01-15 18:05:20.483: E/AndroidRuntime(202): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
01-15 18:05:20.483: E/AndroidRuntime(202): at dalvik.system.NativeStart.main(Native Method)
01-15 18:05:20.483: E/AndroidRuntime(202): Caused by: android.view.InflateException: Binary XML file line #105: Error inflating class com.quran.labs.androidquran.widgets.SeekBarPreference
01-15 18:05:20.483: E/AndroidRuntime(202): at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:441)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.preference.GenericInflater.rInflate(GenericInflater.java:481)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.preference.GenericInflater.rInflate(GenericInflater.java:493)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.preference.GenericInflater.inflate(GenericInflater.java:326)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.preference.GenericInflater.inflate(GenericInflater.java:263)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:254)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.preference.PreferenceActivity.addPreferencesFromResource(PreferenceActivity.java:253)
01-15 18:05:20.483: E/AndroidRuntime(202): at com.quran.labs.androidquran.QuranPreferenceActivity.onCreate(QuranPreferenceActivity.java:26)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
01-15 18:05:20.483: E/AndroidRuntime(202): ... 11 more
01-15 18:05:20.483: E/AndroidRuntime(202): Caused by: java.lang.ClassNotFoundException: com.quran.labs.androidquran.widgets.SeekBarPreference in loader dalvik.system.PathClassLoader@43b87ff0
01-15 18:05:20.483: E/AndroidRuntime(202): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
01-15 18:05:20.483: E/AndroidRuntime(202): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
01-15 18:05:20.483: E/AndroidRuntime(202): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.preference.GenericInflater.createItem(GenericInflater.java:375)
01-15 18:05:20.483: E/AndroidRuntime(202): at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:430)
01-15 18:05:20.483: E/AndroidRuntime(202): ... 20 more
01-15 18:05:20.503: I/Process(51): Sending signal. PID: 202 SIG: 3
01-15 18:05:20.513: I/dalvikvm(202): threadid=7: reacting to signal 3
01-15 18:05:20.513: E/dalvikvm(202): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
01-15 18:05:30.357: W/ActivityManager(51): Launch timeout has expired, giving up wake lock!
01-15 18:05:30.429: W/ActivityManager(51): Activity idle timeout for HistoryRecord{43d12ff0 com.quran.labs.androidquran/.QuranPreferenceActivity}

@ghost
Copy link
Author

ghost commented Jan 15, 2013

is there a dev mailing-list or a chat or something ?

@ghost
Copy link
Author

ghost commented Jan 17, 2013

I solved it by adding this lines to the proguard.cfg
-keep class * extends android.preference.DialogPreference {
public (android.content.Context);
public (android.content.Context, android.util.AttributeSet);
public (android.content.Context, android.util.AttributeSet, int);
public void set*(...);
}

thanks to this question http://stackoverflow.com/questions/7904517/classnotfoundexception-in-release-build

@ghost ghost closed this as completed Jan 20, 2013
ahmedre added a commit that referenced this issue Jan 27, 2013
Fixing issue #246 and localization change
ahmedre pushed a commit that referenced this issue Aug 9, 2015
ahmedre added a commit that referenced this issue Aug 9, 2015
Fixing issue #246 and localization change
ahmedre pushed a commit that referenced this issue Aug 9, 2015
ahmedre added a commit that referenced this issue Aug 9, 2015
Fixing issue #246 and localization change
ahmedre pushed a commit that referenced this issue Oct 14, 2017
ahmedre added a commit that referenced this issue Oct 14, 2017
Fixing issue #246 and localization change
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants