Android resource linking failed (not found any solution)












0















I have an "Android resource linking failed" problem on my Android project. I have tried every solution that I found on the internet but nothing happened. This problem occurred after I changed the image file on the drawable directory. How can I fix this problem?



My errors :




C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:35: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:48: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:91: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:143: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:157: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutnav_header_drawer.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpactivity_splash.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:35: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:48: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:91: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:144: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:158: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpnav_header_drawer.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpiactivity_splash.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:35: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:48: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:91: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:143: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:157: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpinav_header_drawer.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
Command: C:Usersemre.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jarfe3f8ef29de101fc5b6c9b7eb921f52aaapt2-3.2.1-4818971-windowsaapt2.exe link -I
C:UsersemreAppDataLocalAndroidSdkplatformsandroid-28android.jar
--manifest
C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatesmerged_manıfestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
C:UsersemreAndroidStudioProjectsLocFlyappbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
com.tsg.loc.locfly
-0
apk
--output-text-symbols




C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0



build.gradle():



apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.tsg.loc.locfly"
minSdkVersion 18
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

}
}



}


dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
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 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'android.arch.persistence.room:runtime:1.1.1'
annotationProcessor "android.arch.persistence.room:compiler:1.1.1"

//circle image view
implementation 'de.hdodenhof:circleimageview:2.2.0'
}


buil.gradle(project):



// Top-level build file where you can add configuration options common to all sub-projects/modules.



buildscript {

repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'


// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


and my drawables:
my drawables










share|improve this question

























  • In android studio go to File-> invalidate Caches/Restart

    – Aanal Shah
    Nov 22 '18 at 6:31











  • Adding to it do a File->Sync project with Gradle Files

    – ASN
    Nov 22 '18 at 6:42











  • If you have errors in one of your drawables. I see them all xml drawables then building fails. Make sure you have no syntax errors in your drawables.

    – Nasz Njoka Sr.
    Nov 22 '18 at 6:47











  • @AanalShah i did but same error.

    – emre_ugur
    Nov 22 '18 at 6:47













  • @NaszNjokaSr. i havent changed the drawable files but ilklogo.png. There wasnt a problem . i dont know why but problem occured sudddenly.

    – emre_ugur
    Nov 22 '18 at 6:49
















0















I have an "Android resource linking failed" problem on my Android project. I have tried every solution that I found on the internet but nothing happened. This problem occurred after I changed the image file on the drawable directory. How can I fix this problem?



My errors :




C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:35: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:48: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:91: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:143: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:157: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutnav_header_drawer.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpactivity_splash.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:35: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:48: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:91: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:144: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:158: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpnav_header_drawer.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpiactivity_splash.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:35: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:48: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:91: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:143: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:157: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpinav_header_drawer.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
Command: C:Usersemre.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jarfe3f8ef29de101fc5b6c9b7eb921f52aaapt2-3.2.1-4818971-windowsaapt2.exe link -I
C:UsersemreAppDataLocalAndroidSdkplatformsandroid-28android.jar
--manifest
C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatesmerged_manıfestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
C:UsersemreAndroidStudioProjectsLocFlyappbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
com.tsg.loc.locfly
-0
apk
--output-text-symbols




C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0



build.gradle():



apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.tsg.loc.locfly"
minSdkVersion 18
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

}
}



}


dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
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 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'android.arch.persistence.room:runtime:1.1.1'
annotationProcessor "android.arch.persistence.room:compiler:1.1.1"

//circle image view
implementation 'de.hdodenhof:circleimageview:2.2.0'
}


buil.gradle(project):



// Top-level build file where you can add configuration options common to all sub-projects/modules.



buildscript {

repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'


// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


and my drawables:
my drawables










share|improve this question

























  • In android studio go to File-> invalidate Caches/Restart

    – Aanal Shah
    Nov 22 '18 at 6:31











  • Adding to it do a File->Sync project with Gradle Files

    – ASN
    Nov 22 '18 at 6:42











  • If you have errors in one of your drawables. I see them all xml drawables then building fails. Make sure you have no syntax errors in your drawables.

    – Nasz Njoka Sr.
    Nov 22 '18 at 6:47











  • @AanalShah i did but same error.

    – emre_ugur
    Nov 22 '18 at 6:47













  • @NaszNjokaSr. i havent changed the drawable files but ilklogo.png. There wasnt a problem . i dont know why but problem occured sudddenly.

    – emre_ugur
    Nov 22 '18 at 6:49














0












0








0








I have an "Android resource linking failed" problem on my Android project. I have tried every solution that I found on the internet but nothing happened. This problem occurred after I changed the image file on the drawable directory. How can I fix this problem?



My errors :




C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:35: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:48: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:91: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:143: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:157: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutnav_header_drawer.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpactivity_splash.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:35: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:48: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:91: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:144: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:158: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpnav_header_drawer.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpiactivity_splash.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:35: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:48: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:91: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:143: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:157: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpinav_header_drawer.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
Command: C:Usersemre.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jarfe3f8ef29de101fc5b6c9b7eb921f52aaapt2-3.2.1-4818971-windowsaapt2.exe link -I
C:UsersemreAppDataLocalAndroidSdkplatformsandroid-28android.jar
--manifest
C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatesmerged_manıfestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
C:UsersemreAndroidStudioProjectsLocFlyappbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
com.tsg.loc.locfly
-0
apk
--output-text-symbols




C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0



build.gradle():



apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.tsg.loc.locfly"
minSdkVersion 18
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

}
}



}


dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
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 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'android.arch.persistence.room:runtime:1.1.1'
annotationProcessor "android.arch.persistence.room:compiler:1.1.1"

//circle image view
implementation 'de.hdodenhof:circleimageview:2.2.0'
}


buil.gradle(project):



// Top-level build file where you can add configuration options common to all sub-projects/modules.



buildscript {

repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'


// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


and my drawables:
my drawables










share|improve this question
















I have an "Android resource linking failed" problem on my Android project. I have tried every solution that I found on the internet but nothing happened. This problem occurred after I changed the image file on the drawable directory. How can I fix this problem?



My errors :




C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:35: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:48: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:91: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:143: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutfragment_gonder_konum.xml:157: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayoutnav_header_drawer.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpactivity_splash.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:35: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:48: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:91: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:144: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpfragment_gonder_konum.xml:158: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-sw600dpnav_header_drawer.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpiactivity_splash.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:35: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:48: error: resource drawable/loc_buton_selector (aka com.tsg.loc.locfly:drawable/loc_buton_selector) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:91: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:143: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpifragment_gonder_konum.xml:157: error: resource drawable/rounded_layout (aka com.tsg.loc.locfly:drawable/rounded_layout) not found.
C:UsersemreAndroidStudioProjectsLocFlyappsrcmainreslayout-mdpinav_header_drawer.xml:2: error: resource drawable/side_nav_bar (aka com.tsg.loc.locfly:drawable/side_nav_bar) not found.
Command: C:Usersemre.gradlecachestransforms-1files-1.1aapt2-3.2.1-4818971-windows.jarfe3f8ef29de101fc5b6c9b7eb921f52aaapt2-3.2.1-4818971-windowsaapt2.exe link -I
C:UsersemreAppDataLocalAndroidSdkplatformsandroid-28android.jar
--manifest
C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatesmerged_manıfestsdebugprocessDebugManifestmergedAndroidManifest.xml
-o
C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatesprocessed_resdebugprocessDebugResourcesoutresources-debug.ap_
-R
@C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatesincrementalprocessDebugResourcesresources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
C:UsersemreAndroidStudioProjectsLocFlyappbuildgeneratednot_namespaced_r_class_sourcesdebugprocessDebugResourcesr
--custom-package
com.tsg.loc.locfly
-0
apk
--output-text-symbols




C:UsersemreAndroidStudioProjectsLocFlyappbuildintermediatessymbolsdebugR.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0



build.gradle():



apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.tsg.loc.locfly"
minSdkVersion 18
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

}
}



}


dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
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 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'android.arch.persistence.room:runtime:1.1.1'
annotationProcessor "android.arch.persistence.room:compiler:1.1.1"

//circle image view
implementation 'de.hdodenhof:circleimageview:2.2.0'
}


buil.gradle(project):



// Top-level build file where you can add configuration options common to all sub-projects/modules.



buildscript {

repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'


// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}


and my drawables:
my drawables







android android-drawable aapt2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 '18 at 6:42









Jaymin

1,77021028




1,77021028










asked Nov 22 '18 at 6:21









emre_uguremre_ugur

217




217













  • In android studio go to File-> invalidate Caches/Restart

    – Aanal Shah
    Nov 22 '18 at 6:31











  • Adding to it do a File->Sync project with Gradle Files

    – ASN
    Nov 22 '18 at 6:42











  • If you have errors in one of your drawables. I see them all xml drawables then building fails. Make sure you have no syntax errors in your drawables.

    – Nasz Njoka Sr.
    Nov 22 '18 at 6:47











  • @AanalShah i did but same error.

    – emre_ugur
    Nov 22 '18 at 6:47













  • @NaszNjokaSr. i havent changed the drawable files but ilklogo.png. There wasnt a problem . i dont know why but problem occured sudddenly.

    – emre_ugur
    Nov 22 '18 at 6:49



















  • In android studio go to File-> invalidate Caches/Restart

    – Aanal Shah
    Nov 22 '18 at 6:31











  • Adding to it do a File->Sync project with Gradle Files

    – ASN
    Nov 22 '18 at 6:42











  • If you have errors in one of your drawables. I see them all xml drawables then building fails. Make sure you have no syntax errors in your drawables.

    – Nasz Njoka Sr.
    Nov 22 '18 at 6:47











  • @AanalShah i did but same error.

    – emre_ugur
    Nov 22 '18 at 6:47













  • @NaszNjokaSr. i havent changed the drawable files but ilklogo.png. There wasnt a problem . i dont know why but problem occured sudddenly.

    – emre_ugur
    Nov 22 '18 at 6:49

















In android studio go to File-> invalidate Caches/Restart

– Aanal Shah
Nov 22 '18 at 6:31





In android studio go to File-> invalidate Caches/Restart

– Aanal Shah
Nov 22 '18 at 6:31













Adding to it do a File->Sync project with Gradle Files

– ASN
Nov 22 '18 at 6:42





Adding to it do a File->Sync project with Gradle Files

– ASN
Nov 22 '18 at 6:42













If you have errors in one of your drawables. I see them all xml drawables then building fails. Make sure you have no syntax errors in your drawables.

– Nasz Njoka Sr.
Nov 22 '18 at 6:47





If you have errors in one of your drawables. I see them all xml drawables then building fails. Make sure you have no syntax errors in your drawables.

– Nasz Njoka Sr.
Nov 22 '18 at 6:47













@AanalShah i did but same error.

– emre_ugur
Nov 22 '18 at 6:47







@AanalShah i did but same error.

– emre_ugur
Nov 22 '18 at 6:47















@NaszNjokaSr. i havent changed the drawable files but ilklogo.png. There wasnt a problem . i dont know why but problem occured sudddenly.

– emre_ugur
Nov 22 '18 at 6:49





@NaszNjokaSr. i havent changed the drawable files but ilklogo.png. There wasnt a problem . i dont know why but problem occured sudddenly.

– emre_ugur
Nov 22 '18 at 6:49












1 Answer
1






active

oldest

votes


















0














Can you locate the resource file 'R' in one of the java subfolders of your project at all?
Seems like the location of the resourc file cannot be determined- I had the exact same problem just recently. If you cant locate 'R', it might be deleted off and that could be why there is a linking error.



If you cant locate it, try:
Build -> Clean Project (that cleans the gradle file)



Alternatively:
File->Invalidate Caches (and then sync the project with gradle files)



Give these a go and see if it changes anything. It may restore the resource file. If not, I suggest creating a new project and copying and pasting the code from the 'old' project into the new version, so you can make sure the resource file is restored and it should eliminate the linking error, too. You would need to re create all xml files and java classes, but depending on the size of your project it might be faster than trying to restore the resource file.






share|improve this answer
























    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%2f53424951%2fandroid-resource-linking-failed-not-found-any-solution%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Can you locate the resource file 'R' in one of the java subfolders of your project at all?
    Seems like the location of the resourc file cannot be determined- I had the exact same problem just recently. If you cant locate 'R', it might be deleted off and that could be why there is a linking error.



    If you cant locate it, try:
    Build -> Clean Project (that cleans the gradle file)



    Alternatively:
    File->Invalidate Caches (and then sync the project with gradle files)



    Give these a go and see if it changes anything. It may restore the resource file. If not, I suggest creating a new project and copying and pasting the code from the 'old' project into the new version, so you can make sure the resource file is restored and it should eliminate the linking error, too. You would need to re create all xml files and java classes, but depending on the size of your project it might be faster than trying to restore the resource file.






    share|improve this answer




























      0














      Can you locate the resource file 'R' in one of the java subfolders of your project at all?
      Seems like the location of the resourc file cannot be determined- I had the exact same problem just recently. If you cant locate 'R', it might be deleted off and that could be why there is a linking error.



      If you cant locate it, try:
      Build -> Clean Project (that cleans the gradle file)



      Alternatively:
      File->Invalidate Caches (and then sync the project with gradle files)



      Give these a go and see if it changes anything. It may restore the resource file. If not, I suggest creating a new project and copying and pasting the code from the 'old' project into the new version, so you can make sure the resource file is restored and it should eliminate the linking error, too. You would need to re create all xml files and java classes, but depending on the size of your project it might be faster than trying to restore the resource file.






      share|improve this answer


























        0












        0








        0







        Can you locate the resource file 'R' in one of the java subfolders of your project at all?
        Seems like the location of the resourc file cannot be determined- I had the exact same problem just recently. If you cant locate 'R', it might be deleted off and that could be why there is a linking error.



        If you cant locate it, try:
        Build -> Clean Project (that cleans the gradle file)



        Alternatively:
        File->Invalidate Caches (and then sync the project with gradle files)



        Give these a go and see if it changes anything. It may restore the resource file. If not, I suggest creating a new project and copying and pasting the code from the 'old' project into the new version, so you can make sure the resource file is restored and it should eliminate the linking error, too. You would need to re create all xml files and java classes, but depending on the size of your project it might be faster than trying to restore the resource file.






        share|improve this answer













        Can you locate the resource file 'R' in one of the java subfolders of your project at all?
        Seems like the location of the resourc file cannot be determined- I had the exact same problem just recently. If you cant locate 'R', it might be deleted off and that could be why there is a linking error.



        If you cant locate it, try:
        Build -> Clean Project (that cleans the gradle file)



        Alternatively:
        File->Invalidate Caches (and then sync the project with gradle files)



        Give these a go and see if it changes anything. It may restore the resource file. If not, I suggest creating a new project and copying and pasting the code from the 'old' project into the new version, so you can make sure the resource file is restored and it should eliminate the linking error, too. You would need to re create all xml files and java classes, but depending on the size of your project it might be faster than trying to restore the resource file.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 7 at 15:55









        JuliaJulia

        519




        519
































            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%2f53424951%2fandroid-resource-linking-failed-not-found-any-solution%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

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?