Android Question Crashes and ANRS Bug

Scantech

Well-Known Member
Licensed User
Longtime User
I have an error with OS 4.4 and OS 4.2 by users

B4X:
java.lang.RuntimeException: Unable to start activity ComponentInfo{scantech.elmchecker/scantech.elmchecker.main}: android.content.res.Resources$NotFoundException: File res/drawable/abc_vector_test.xml from drawable resource ID #0x7f02004f
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2383)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2435)
    at android.app.ActivityThread.access$800(ActivityThread.java:151)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1342)
    at android.os.Handler.dispatchMessage(Handler.java:110)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:5339)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:828)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:644)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/abc_vector_test.xml from drawable resource ID #0x7f02004f
    at android.content.res.Resources.loadDrawable(Resources.java:2152)
    at android.content.res.Resources.getDrawable(Resources.java:710)
    at android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:346)
    at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:194)
    at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:182)
    at android.support.v7.widget.AppCompatDrawableManager.checkVectorDrawableSetup(AppCompatDrawableManager.java:717)
    at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:187)
    at android.support.v7.widget.TintTypedArray.getDrawableIfKnown(TintTypedArray.java:77)
    at android.support.v7.app.AppCompatDelegateImplBase.<init>(AppCompatDelegateImplBase.java:127)
    at android.support.v7.app.AppCompatDelegateImplV9.<init>(AppCompatDelegateImplV9.java:147)
    at android.support.v7.app.AppCompatDelegateImplV11.<init>(AppCompatDelegateImplV11.java:27)
    at android.support.v7.app.AppCompatDelegateImplV14.<init>(AppCompatDelegateImplV14.java:50)
    at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:201)
    at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:181)
    at android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:521)
    at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:71)
    at scantech.elmchecker.main.onCreate(main.java:33)
    at android.app.Activity.performCreate(Activity.java:5350)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2337)
    ... 11 more
Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #17: invalid drawable tag vector
    at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:933)
    at android.graphics.drawable.Drawable.createFromXml(Drawable.java:877)
    at android.content.res.Resources.loadDrawable(Resources.java:2148)
 

Scantech

Well-Known Member
Licensed User
Longtime User
This is related to Appcombat. The instructions said

Deinstall all other versions so 23.0.3 is the only one installed! If you leave older versions of build tools installed your compiled app may work on Android 5.0 and above but it will fail on older Android versions like KitKat.
 
Upvote 0
Top