Android : java.lang.RuntimeException: Unable to instantiate activity -
i have verry strange behavior today app.
my app works fine when launch eclipse.
but when install app on device google play, following error :
java.lang.runtimeexception: unable instantiate activity componentinfo{com.rss.cupofnews/com.rss.main.mainactivity}: java.lang.classnotfoundexception: com.rss.main.mainactivity
i don't understand why error when install app google play , why don't error when install app directly on device eclipse.
maybe problem packages ?
here piece of code of androidmanifest.xml :
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.rss.cupofnews" android:versioncode="7" android:versionname="1.6"> <uses-sdk android:minsdkversion="14" android:targetsdkversion="18" /> <uses-permission android:name="android.permission.internet" /> <application android:label="@string/app_name" android:icon="@drawable/ic_launcher" android:theme="@android:style/theme.holo.light" android:allowbackup="true"> <activity android:name="com.rss.utils.webbrowserviewactivity"></activity> <activity android:name="com.rss.utils.licencesview"></activity> <activity android:name="com.rss.preferences.bibliothequeactivity"></activity> <activity android:name="com.rss.main.mainactivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity>
and here screenshot of explorer file in eclipse :
what problem ?
please me.
thanks
check proguard settings, might renaming main class when build submitting play store.
try adding -keep public class com.rss.main.mainactivity
Comments
Post a Comment