gurujain / osmbonuspack

Automatically exported from code.google.com/p/osmbonuspack
0 stars 0 forks source link

Resources$NotFoundException btn_moreinfo.xml #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hey, I've followed howto in wiki, I also added all the necessary files listed 
here: http://code.google.com/p/osmbonuspack/wiki/HowToInclude. But I get this 
exception when trying to use bubbles. Is there anything else I should do?

04-06 17:31:37.222: E/AndroidRuntime(9007): Caused by: 
android.content.res.Resources$NotFoundException: File 
res/drawable/btn_moreinfo.xml from drawable resource ID #0x7f020002
04-06 17:31:37.222: E/AndroidRuntime(9007):     at 
android.content.res.Resources.loadDrawable(Resources.java:1953)
04-06 17:31:37.222: E/AndroidRuntime(9007):     at 
android.content.res.TypedArray.getDrawable(TypedArray.java:601)
04-06 17:31:37.222: E/AndroidRuntime(9007):     at 
android.view.View.<init>(View.java:3330)
04-06 17:31:37.222: E/AndroidRuntime(9007):     at 
android.widget.TextView.<init>(TextView.java:583)
04-06 17:31:37.222: E/AndroidRuntime(9007):     at 
android.widget.Button.<init>(Button.java:107)
04-06 17:31:37.222: E/AndroidRuntime(9007):     at 
android.widget.Button.<init>(Button.java:103)
04-06 17:31:37.222: E/AndroidRuntime(9007):     ... 37 more
04-06 17:31:37.222: E/AndroidRuntime(9007): Caused by: 
java.lang.NullPointerException
04-06 17:31:37.222: E/AndroidRuntime(9007):     at 
android.graphics.drawable.DrawableContainer$DrawableContainerState.addChild(Draw
ableContainer.java:525)
04-06 17:31:37.222: E/AndroidRuntime(9007):     at 
android.graphics.drawable.StateListDrawable$StateListState.addStateSet(StateList
Drawable.java:288)
04-06 17:31:37.222: E/AndroidRuntime(9007):     at 
android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:186)
04-06 17:31:37.222: E/AndroidRuntime(9007):     at 
android.graphics.drawable.Drawable.createFromXmlInner(Drawable

Original issue reported on code.google.com by mcz...@gmail.com on 6 Apr 2013 at 5:48

GoogleCodeExporter commented 8 years ago
No obvious cause. 
btn_moreinfo.xml must be in /res/drawable
Are you fresh on Android, or are you already comfortable with Android 
resources? 

Other possible cause of the issue: clean-up your project (Project/Clean...). It 
often helps!

Original comment by mathieu....@gmail.com on 9 Apr 2013 at 10:25

GoogleCodeExporter commented 8 years ago

Original comment by mathieu....@gmail.com on 11 Apr 2014 at 9:19