Higher API levels couldn’t find drawable folder










0















I’m just playing with android studio. I’ve made a small app with some gifs (located at drawable folder) and a theme (with his windowBackground in drawable’s). In the preview it all works fine. And also if I install it on my phone (android 4.4) but once I install it on q higher level android all images and the theme cann’t be found. It gives me a not found exception. I’ve also take a look if I had multiple drawable folders. But I just have 1; drawable. How to fix this? Thanks



Res folder:



folder res



Styles.xml:



<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

<style name="SplashScreen" parent="android:Theme">
<item name="android:windowBackground">@drawable/loading</item>
</style>
</resources>


one part of GifView:



<pl.droidsonroids.gif.GifImageView
android:id="@+id/imageView11"
android:layout_width="37dp"
android:layout_height="51dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/button28"
app:layout_constraintStart_toEndOf="@+id/button27"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.65"
android:src="@drawable/lion" />


build.gradle:



apply plugin: 'com.android.application'

android
signingConfigs
config
keyAlias 'key0'
keyPassword 'Smaobm29'
storeFile file('C:/Users/ruben/Desktop/Programmeren/key0.jks')
storePassword 'Smaobm29'


compileSdkVersion 28
defaultConfig
applicationId "net.game_force.ruben.jelle_app"
minSdkVersion 18
targetSdkVersion 28
versionCode 5
versionName "1.3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config

debug
debuggable false
signingConfig signingConfigs.config


lintOptions
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false



dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.2'



and what's inside drawable folder:



drawable files










share|improve this question
























  • Please, publish an exception stack trace

    – Oleh Sokolov
    Nov 13 '18 at 19:42











  • It says resouces$notfoundexception:drawable/loading. And also all images/gifs from drawable folder aren’t showinh

    – Ruben
    Nov 13 '18 at 21:53











  • I’ve found out that it only happens if android 8+ is installed

    – Ruben
    Nov 15 '18 at 10:20















0















I’m just playing with android studio. I’ve made a small app with some gifs (located at drawable folder) and a theme (with his windowBackground in drawable’s). In the preview it all works fine. And also if I install it on my phone (android 4.4) but once I install it on q higher level android all images and the theme cann’t be found. It gives me a not found exception. I’ve also take a look if I had multiple drawable folders. But I just have 1; drawable. How to fix this? Thanks



Res folder:



folder res



Styles.xml:



<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

<style name="SplashScreen" parent="android:Theme">
<item name="android:windowBackground">@drawable/loading</item>
</style>
</resources>


one part of GifView:



<pl.droidsonroids.gif.GifImageView
android:id="@+id/imageView11"
android:layout_width="37dp"
android:layout_height="51dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/button28"
app:layout_constraintStart_toEndOf="@+id/button27"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.65"
android:src="@drawable/lion" />


build.gradle:



apply plugin: 'com.android.application'

android
signingConfigs
config
keyAlias 'key0'
keyPassword 'Smaobm29'
storeFile file('C:/Users/ruben/Desktop/Programmeren/key0.jks')
storePassword 'Smaobm29'


compileSdkVersion 28
defaultConfig
applicationId "net.game_force.ruben.jelle_app"
minSdkVersion 18
targetSdkVersion 28
versionCode 5
versionName "1.3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config

debug
debuggable false
signingConfig signingConfigs.config


lintOptions
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false



dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.2'



and what's inside drawable folder:



drawable files










share|improve this question
























  • Please, publish an exception stack trace

    – Oleh Sokolov
    Nov 13 '18 at 19:42











  • It says resouces$notfoundexception:drawable/loading. And also all images/gifs from drawable folder aren’t showinh

    – Ruben
    Nov 13 '18 at 21:53











  • I’ve found out that it only happens if android 8+ is installed

    – Ruben
    Nov 15 '18 at 10:20













0












0








0








I’m just playing with android studio. I’ve made a small app with some gifs (located at drawable folder) and a theme (with his windowBackground in drawable’s). In the preview it all works fine. And also if I install it on my phone (android 4.4) but once I install it on q higher level android all images and the theme cann’t be found. It gives me a not found exception. I’ve also take a look if I had multiple drawable folders. But I just have 1; drawable. How to fix this? Thanks



Res folder:



folder res



Styles.xml:



<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

<style name="SplashScreen" parent="android:Theme">
<item name="android:windowBackground">@drawable/loading</item>
</style>
</resources>


one part of GifView:



<pl.droidsonroids.gif.GifImageView
android:id="@+id/imageView11"
android:layout_width="37dp"
android:layout_height="51dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/button28"
app:layout_constraintStart_toEndOf="@+id/button27"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.65"
android:src="@drawable/lion" />


build.gradle:



apply plugin: 'com.android.application'

android
signingConfigs
config
keyAlias 'key0'
keyPassword 'Smaobm29'
storeFile file('C:/Users/ruben/Desktop/Programmeren/key0.jks')
storePassword 'Smaobm29'


compileSdkVersion 28
defaultConfig
applicationId "net.game_force.ruben.jelle_app"
minSdkVersion 18
targetSdkVersion 28
versionCode 5
versionName "1.3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config

debug
debuggable false
signingConfig signingConfigs.config


lintOptions
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false



dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.2'



and what's inside drawable folder:



drawable files










share|improve this question
















I’m just playing with android studio. I’ve made a small app with some gifs (located at drawable folder) and a theme (with his windowBackground in drawable’s). In the preview it all works fine. And also if I install it on my phone (android 4.4) but once I install it on q higher level android all images and the theme cann’t be found. It gives me a not found exception. I’ve also take a look if I had multiple drawable folders. But I just have 1; drawable. How to fix this? Thanks



Res folder:



folder res



Styles.xml:



<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

<style name="SplashScreen" parent="android:Theme">
<item name="android:windowBackground">@drawable/loading</item>
</style>
</resources>


one part of GifView:



<pl.droidsonroids.gif.GifImageView
android:id="@+id/imageView11"
android:layout_width="37dp"
android:layout_height="51dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/button28"
app:layout_constraintStart_toEndOf="@+id/button27"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.65"
android:src="@drawable/lion" />


build.gradle:



apply plugin: 'com.android.application'

android
signingConfigs
config
keyAlias 'key0'
keyPassword 'Smaobm29'
storeFile file('C:/Users/ruben/Desktop/Programmeren/key0.jks')
storePassword 'Smaobm29'


compileSdkVersion 28
defaultConfig
applicationId "net.game_force.ruben.jelle_app"
minSdkVersion 18
targetSdkVersion 28
versionCode 5
versionName "1.3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config

debug
debuggable false
signingConfig signingConfigs.config


lintOptions
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false



dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.2'



and what's inside drawable folder:



drawable files







java android xml drawable






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 13 '18 at 11:06









Fantômas

32.6k156389




32.6k156389










asked Nov 13 '18 at 11:03









RubenRuben

399




399












  • Please, publish an exception stack trace

    – Oleh Sokolov
    Nov 13 '18 at 19:42











  • It says resouces$notfoundexception:drawable/loading. And also all images/gifs from drawable folder aren’t showinh

    – Ruben
    Nov 13 '18 at 21:53











  • I’ve found out that it only happens if android 8+ is installed

    – Ruben
    Nov 15 '18 at 10:20

















  • Please, publish an exception stack trace

    – Oleh Sokolov
    Nov 13 '18 at 19:42











  • It says resouces$notfoundexception:drawable/loading. And also all images/gifs from drawable folder aren’t showinh

    – Ruben
    Nov 13 '18 at 21:53











  • I’ve found out that it only happens if android 8+ is installed

    – Ruben
    Nov 15 '18 at 10:20
















Please, publish an exception stack trace

– Oleh Sokolov
Nov 13 '18 at 19:42





Please, publish an exception stack trace

– Oleh Sokolov
Nov 13 '18 at 19:42













It says resouces$notfoundexception:drawable/loading. And also all images/gifs from drawable folder aren’t showinh

– Ruben
Nov 13 '18 at 21:53





It says resouces$notfoundexception:drawable/loading. And also all images/gifs from drawable folder aren’t showinh

– Ruben
Nov 13 '18 at 21:53













I’ve found out that it only happens if android 8+ is installed

– Ruben
Nov 15 '18 at 10:20





I’ve found out that it only happens if android 8+ is installed

– Ruben
Nov 15 '18 at 10:20












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53279603%2fhigher-api-levels-couldn-t-find-drawable-folder%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53279603%2fhigher-api-levels-couldn-t-find-drawable-folder%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kleinkühnau

Makov (Slowakei)

Deutsches Schauspielhaus