Caused by: android.content.res.resources$notfoundexc

Skip to first unread message

Akinyemi john

unread,
Dec 30, 2016, 2:50:57 PM12/30/16
to GDG Lagos
Hi i everyone have been struggling with this for a while now whenever i tested my app in the device it crashes showing the below result

Process: com.logicverse.akinyemi.bchmcqfirstyearmbbs, PID: 29285
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.logicverse.akinyemi.bchmcqfirstyearmbbs/com.logicverse.akinyemi.bchmcqfirstyearmbbs.SplashActivity}: android.content.res.Resources$NotFoundException: File res/drawable/abc_vector_test.xml from drawable resource ID #0x7f020052
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2338)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5299)
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:825)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)
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 #0x7f020052
at android.content.res.Resources.loadDrawable(Resources.java:2152)

this is my build.gradle code below
apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"

defaultConfig {
applicationId "com.logicverse.akinyemi.bchmcqfirstyearmbbs"
minSdkVersion 10
targetSdkVersion 23
multiDexEnabled true
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

dexOptions {
incremental true
javaMaxHeapSize "3g"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

dependencies {
compile files('libs/aspose-cells-8.3.1.jar')
compile files('libs/bcprov-jdk15-146.jar')
compile files('libs/nineoldandroids-library-2.4.0.jar')
compile files('libs/renderscript-v8.jar')
compile files('libs/Parse-1.10.0.jar')
compile 'com.android.support:support-v4:24.2.1'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:23.2.0'
compile 'com.google.android.gms:play-services:9.6.1'
compile 'com.android.support:multidex:1.0.0'
compile 'com.parse.bolts:bolts-android:1.+'
}

Kindly help

Valentine Ofili

unread,
Dec 30, 2016, 3:00:43 PM12/30/16
to lagos...@googlegroups.com
Hi John,

Seems you're missing an xml resource file representing a  drawable. To be sure abc_vector_test.xml needs to be in the drawable res/drawable directory.  you could show the code of your SplashActivity.java  file as that would be helpful. you grade build file looks fine although I'd suggest you turn off proguard during development and debugging as you'd need your stack traces to catch bugs


--
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
 
[ Quicklinks ]
Join on G+: http://goo.gl/wKOuQ
Mailing List:http://bit.ly/lagosgtuggroup
Unsubscribe: http://goo.gl/0y8TB
Blog: http://gdglagos.com
Twitter Handle: http://twitter.com/@gtuglagos
 
---_---_---_---_---_---_---_---_---_---_---_---_---_---_---
---
You received this message because you are subscribed to the Google Groups "GDG Lagos" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lagos-gtug+unsubscribe@googlegroups.com.
To post to this group, send email to lagos...@googlegroups.com.
Visit this group at https://groups.google.com/group/lagos-gtug.
For more options, visit https://groups.google.com/d/optout.

ekpe samuel

unread,
Dec 30, 2016, 10:22:38 PM12/30/16
to lagos...@googlegroups.com
Its not your build that is the problem, your drawable red folder is missing a file (abc_vector_test.xml ),  if you are sure this file exist, please rebuild, otherwise add it.

--

Debo Ajagbe

unread,
Dec 30, 2016, 10:22:38 PM12/30/16
to lagos...@googlegroups.com
Check the splashActivity (Activity)where you set the abc_vector_test, then check to make sure you have abc_vector_test.xml in your resources/drawable folder.

Sent from Mobile By

Debo Ajagbe

Entrepreneur,

I.T Enthusiast,

Software Engineer,

Search Engine Expert,

Google Developer Group,

Mobile Application Developer.

On Dec 30, 2016 8:50 PM, "Akinyemi john" <webli...@gmail.com> wrote:
--
Reply all
Reply to author
Forward
0 new messages