Ich hatte ein erfolgreiches Projekt zu bauen, als ich an meinem PC arbeitete und ich es an meine Git Repo geschoben und vor der Migration zu OSX.Gradle Build fehlgeschlagen auf Android Studio alte und neue Versionen auf OSX
Jetzt habe ich Android Studio neueste Version auf OSX installiert und versucht, das gleiche Projekt zu erstellen, und es gibt Fehler beim Erstellen von Ressourcen. Während Ressourcen in Manifest Gebäude, gibt es mehrere Fehler, die
Keine Ressource sagen festgestellt, dass die angegebenen Namen
für Drawables und Strings übereinstimmt.
Beim Durchsehen des Internets dachte ich, dass die neuere Version von Gradle einige Probleme hat. Also habe ich meine AS-Installation auf AS 1.0 heruntergestuft und die alte Version 2.2 verwendet. Leider gibt diese Version von Gradle auch den gleichen Fehler.
Mein build.gradle
sieht aus wie folgt:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "xxx"
minSdkVersion 16
targetSdkVersion 21
versionCode 4
versionName "1.3"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
res.srcDirs = [
"/src/main/res"
]
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/thermodosdk-1.0.18.jar')
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.google.android.gms:play-services:6.5.87'
compile 'com.android.support:support-v4:21.0.3'
Die build.gradle
auf höchster Ebene hat die folgende Classpath:
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
}
Stacktrace:
Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugTestSources]
:app:preBuild
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportAppcompatV72103Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42103Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServices6587Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources
/Users/vidhigoel/AndroidStudioProjects/OMGAndroid/app/build/intermediates/manifests/full/debug/AndroidManifest.xml
Error:(24, 23) No resource found that matches the given name (at 'icon' with value '@drawable/omg_app_icon').
Error:(25, 24) No resource found that matches the given name (at 'label' with value '@string/app_name').
Error:(27, 24) No resource found that matches the given name (at 'theme' with value '@style/AppTheme').
Error:(30, 28) No resource found that matches the given name (at 'label' with value '@string/app_name').
Error:(86, 28) No resource found that matches the given name (at 'label' with value '@string/app_name').
Error:(105, 28) No resource found that matches the given name (at 'label' with value '@string/app_name').
Error:(123, 28) No resource found that matches the given name (at 'label' with value '@string/app_name').
Error:(137, 28) No resource found that matches the given name (at 'label' with value '@string/title_activity_register_user').
...
Information:BUILD FAILED
Information:Total time: 4.462 secs
Information:17 errors
Information:0 warnings
Information:See complete output in console
Bitte helfen Sie mir dieses Problem zu beheben.
können Sie Ihre tatsächlichen Fehler bitte, Stacktraces wenn möglich post. – RaGe
poste bitte das Fehlerprotokoll für einfacheres Verfolgen –