java - resources not found - android -


i have had first errors come through via developer console on published app. errors are:

 java.lang.runtimeexception: unable start activity componentinfo{fetchfree.diss.ellis/fetchfree.diss.ellis.intro}:  android.content.res.resources$notfoundexception: resource id #0x7f030007     @ android.app.activitythread.performlaunchactivity(activitythread.java:2663)     @ android.app.activitythread.handlelaunchactivity(activitythread.java:2679)     @ android.app.activitythread.access$2300(activitythread.java:125)     @ android.app.activitythread$h.handlemessage(activitythread.java:2033)     @ android.os.handler.dispatchmessage(handler.java:99)     @ android.os.looper.loop(looper.java:123)     @ android.app.activitythread.main(activitythread.java:4627)     @ java.lang.reflect.method.invokenative(native method)     @ java.lang.reflect.method.invoke(method.java:521)     @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:871)     @ com.android.internal.os.zygoteinit.main(zygoteinit.java:629)     @ dalvik.system.nativestart.main(native method)     caused by: android.content.res.resources$notfoundexception: resource id #0x7f030007     @ android.content.res.resources.getvalue(resources.java:892)     @ android.content.res.resources.loadxmlresourceparser(resources.java:1869)     @ android.content.res.resources.getlayout(resources.java:731)     @ android.view.layoutinflater.inflate(layoutinflater.java:318)     @ android.view.layoutinflater.inflate(layoutinflater.java:276)     @ com.android.internal.policy.impl.phonewindow.setcontentview(phonewindow.java:210)     @ android.app.activity.setcontentview(activity.java:1647)     @ fetchfree.diss.ellis.intro.oncreate(intro.java:47)     @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1047)     @ android.app.activitythread.performlaunchactivity(activitythread.java:2627)     ... 11 more 

the app running fine on devices (s2,s3,s4 , galaxy ace) , emulator , have not been able replicate this. resources referring @ #0x7f030007 layout file setcontentview of intro activity.

resources:

layout-normal-hdpi layout-normal-mdpi layout-sw360dp 

my manifest states:

<supports-screens         android:largescreens="true"         android:normalscreens="true"         android:resizeable="false"         android:smallscreens="false" /> 

i've seen happen because version uploaded playstore not match release apk. best way clean project in eclipse, build, release , upload apk play store. if still happens can check few more things i've gathered while searching similar issue on so

1.) make sure imports correct. r.java must local r.java , not android.r . check in files

2.) make sure not passing integer values views. instance dont this

int = 5; mytextview.settext(i); 

but this

mytextview.settext(string.valueof(i)); 

i suspect problem , scan code type of errors.

the compiler not complain.

3.) use way of declaration

android:id="@id/android:list" 

rather than

android:id="@android:id/list" 

for id declarations

make these changes if any, clean, build , upload. should work.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -