Unable to start activity android.view.InflateException -


i have created android project , within have created 2 package

  --net.website.custom_listview        --main_activity_customview.java        --other files .....   --net.website.dashboard        --main_activity_dashboard.java        --other files ..... 

in androidmanifest.xml file

<activity                 android:name="net.website.dashboard.main_activity_dashboard"     android:label="@string/app_name" >     <intent-filter>         <action android:name="android.intent.action.main" />         <category android:name="android.intent.category.launcher" />     </intent-filter> </activity> 

so when run android app getting following errors..

here logcat:

03-08 22:02:03.941: e/androidruntime(691): fatal exception: main 03-08 22:02:03.941: e/androidruntime(691): java.lang.runtimeexception: unable start activity componentinfo{net.website/net.website.dashboard.main_activity_dashboard}: android.view.inflateexception: binary xml file line #1: error inflating class net.website.dashboard 03-08 22:02:03.941: e/androidruntime(691):  @ android.app.activitythread.performlaunchactivity(activitythread.java:1647) 03-08 22:02:03.941: e/androidruntime(691):  @ android.app.activitythread.handlelaunchactivity(activitythread.java:1663) 03-08 22:02:03.941: e/androidruntime(691):  @ android.app.activitythread.access$1500(activitythread.java:117) 03-08 22:02:03.941: e/androidruntime(691):  @ android.app.activitythread$h.handlemessage(activitythread.java:931) 03-08 22:02:03.941: e/androidruntime(691):  @ android.os.handler.dispatchmessage(handler.java:99) 03-08 22:02:03.941: e/androidruntime(691):  @ android.os.looper.loop(looper.java:123) 03-08 22:02:03.941: e/androidruntime(691):  @ android.app.activitythread.main(activitythread.java:3683) 03-08 22:02:03.941: e/androidruntime(691):  @ java.lang.reflect.method.invokenative(native method) 03-08 22:02:03.941: e/androidruntime(691):  @ java.lang.reflect.method.invoke(method.java:507) 03-08 22:02:03.941: e/androidruntime(691):  @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:839) 03-08 22:02:03.941: e/androidruntime(691):  @ com.android.internal.os.zygoteinit.main(zygoteinit.java:597) 03-08 22:02:03.941: e/androidruntime(691):  @ dalvik.system.nativestart.main(native method) 03-08 22:02:03.941: e/androidruntime(691): caused by: android.view.inflateexception: binary xml file line #1: error inflating class net.website.dashboard 03-08 22:02:03.941: e/androidruntime(691):  @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:581) 03-08 22:02:03.941: e/androidruntime(691):  @ android.view.layoutinflater.parseinclude(layoutinflater.java:684) 03-08 22:02:03.941: e/androidruntime(691):  @ android.view.layoutinflater.rinflate(layoutinflater.java:619) 03-08 22:02:03.941: e/androidruntime(691):  @ android.view.layoutinflater.inflate(layoutinflater.java:408) 03-08 22:02:03.941: e/androidruntime(691):  @ android.view.layoutinflater.inflate(layoutinflater.java:320) 03-08 22:02:03.941: e/androidruntime(691):  @ android.view.layoutinflater.inflate(layoutinflater.java:276) 03-08 22:02:03.941: e/androidruntime(691):  @ com.android.internal.policy.impl.phonewindow.setcontentview(phonewindow.java:207) 03-08 22:02:03.941: e/androidruntime(691):  @ android.app.activity.setcontentview(activity.java:1657) 03-08 22:02:03.941: e/androidruntime(691):  @ net.website.dashboard.main_activity_dashboard.oncreate(main_activity_dashboard.java:16) 03-08 22:02:03.941: e/androidruntime(691):  @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1047) 03-08 22:02:03.941: e/androidruntime(691):  @ android.app.activitythread.performlaunchactivity(activitythread.java:1611) 03-08 22:02:03.941: e/androidruntime(691):  ... 11 more 03-08 22:02:03.941: e/androidruntime(691): caused by: java.lang.classnotfoundexception: net.website.dashboard in loader dalvik.system.pathclassloader[/data/app/net.website-2.apk] 03-08 22:02:03.941: e/androidruntime(691):  @ dalvik.system.pathclassloader.findclass(pathclassloader.java:240) 03-08 22:02:03.941: e/androidruntime(691):  @ java.lang.classloader.loadclass(classloader.java:551) 03-08 22:02:03.941: e/androidruntime(691):  @ java.lang.classloader.loadclass(classloader.java:511) 03-08 22:02:03.941: e/androidruntime(691):  @ android.view.layoutinflater.createview(layoutinflater.java:471) 03-08 22:02:03.941: e/androidruntime(691):  @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:570) 

the problem in layout xml file. you're referencing class "net.website.dashboard" doesn't exist.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -