I have a project with which I worked on a Mac (and everything was fine there), I opened the same project on Windows and get the errors like the following: "Error: No resource found that matches the given name (at 'drawable' with value'@drawable/abs__btn_cab_done_pressed_holo_dark')." What could be the problem? Not downloaded any themes in Android Studio ?

Just in case I post build.gradle:

 buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' repositories { maven { url 'https://maven.fabric.io/public' } } android { compileSdkVersion 21 buildToolsVersion "23.0.1" defaultConfig { applicationId "com.example" minSdkVersion 15 targetSdkVersion 19 multiDexEnabled true resValue "string", "tray__authority", "com.example" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/license.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/notice.txt' exclude 'META-INF/ASL2.0' exclude 'META-INF/maven' exclude 'META-INF/MANIFEST.MF' exclude 'NOTICE.txt' } } dependencies { compile project(':abslib') compile project(':googleplayservices_lib') compile files('libs/recyclerview-21.0.0.jar') compile files('libs/gcm.jar') compile files('libs/ksoap2.jar') compile 'org.apache.commons:commons-io:1.3.2' compile('net.grandcentrix.tray:tray:1.0.0-rc3') { exclude group: 'com.android.support', module: 'support-annotations' } compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') { transitive = true; } compile 'com.android.support:multidex:1.0.1' } configurations { all*.exclude group: 'com.android.support', module: 'support-v4' } 

Also posting: .gitignore :

 ### Android template /local.properties /.idea/workspace.xml /.idea/libraries .DS_Store /build .idea/workspace.xml # Built application files .idea *.apk *.ap_ # Files for the Dalvik VM *.dex # Java class files *.class # Generated files bin/ gen/ # Gradle files .gradle/ build/ # Local configuration file (sdk path, etc) local.properties # Proguard folder generated by Eclipse proguard/ # Log Files *.log # Android Studio Navigation editor temp files .navigation/ 
  • Make sure you have the correct version of the SDK installed in the SDK Manager - Kirill Stoianov
  • And lay out the files build.gradle - Kirill Stoianov
  • @KirillStoianov SDK the right version installed - Lucky_girl
  • At first I thought that this file from Android itself is really impossible? as already said in the answer below, maybe this file simply does not exist in the project. Have you checked? - Kirill Stoianov
  • @KirillStoianov Apparently, the files are really lost when working with git. - Lucky_girl

1 answer 1

You do not have the file abs__btn_cab_done_pressed_holo_dark in the drawable folder abs__btn_cab_done_pressed_holo_dark . If the project uses a version control system (Git or any other), then this file was simply not included in the index. If so, just add it to the index and update the project. This can happen if xml files are added to the .gitigone file. Well, as a temporary solution, you can simply copy this file from poppy to windows in the drawable folder.

  • I looked at .gitignore - I don’t see what xml files would get there - Lucky_girl
  • @Lucky_girl As an option, this is manually adding a file to a folder. Then you can forget to add it to the index, especially if you work with git through the studio. When I commit, it does not automatically add the files that were added manually. You have to search for it and add it yourself. If possible, open the project on the poppy and find it there. In theory, it should be highlighted in red. - temq
  • Apparently, you still have to copy the files - Lucky_girl