Fehler bei der Kompilierung

  • 2 Antworten
  • Letztes Antwortdatum
S

Salvo84

Neues Mitglied
0
Hallo ich wollte meine App Testen jedoch haut er mir Fehler raus! ich bin recht neu um Gebiet Android und hab auch schon Dr. Google gefragt aber leider komme ich nicht an die Lösung! kann mir hier jemand Hilfestellung geben.

Gradle


apply plugin: 'com.android.application'
apply plugin: 'android-apt'

android {
compileSdkVersion 26
buildToolsVersion '26.0.1'

defaultConfig {
vectorDrawables.useSupportLibrary = true
applicationId APPLICATION_ID
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
versionCode VERSION_CODE as int
versionName VERSION_NAME

multiDexEnabled true
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

lintOptions {
xmlReport false
warningsAsErrors true
quiet false
showAll true
disable 'OldTargetApi', 'UnusedAttribute', 'LongLogTag'
}

packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}

dexOptions {
javaMaxHeapSize "4g"
}
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
allprojects {
repositories {
jcenter()
maven {
url 'Google's Maven Repository'
name 'Google'
}
}
}
repositories {
flatDir {
dirs 'libs'
}
maven { url "JitPack | Publish JVM and Android libraries" }
maven { url 'Index of /repositories/releases' }
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
compile 'com.android.support:appcompat-v7:26+'
compile 'com.android.support:recyclerview-v7:26+'
compile(name: 'InspiusCore-release', ext: 'aar')
compile 'com.jakewharton:butterknife:8.8.1'
apt 'com.jakewharton:butterknife-compiler:8.4.0'
compile 'com.marshalchen.ultimaterecyclerview:library:0.7.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
compile 'com.wang.avi:library:2.1.3'
compile 'com.loopj.android:android-async-http:1.4.9'
compile 'com.fasterxml.jackson.core:jackson-databind:2.8.4'
compile 'com.ogaclejapan.smarttablayout:library:1.6.1@aar'
compile 'com.ogaclejapan.smarttablayout:utils-v4:1.6.1@aar'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'org.greenrobot:greendao:3.2.0'
compile 'joda-time:joda-time:2.9.7'
compile 'com.github.paolorotolo:appintro:4.1.0'
compile 'com.google.firebase:firebase-core:11.6.2'
compile 'com.google.firebase:firebase-ads:11.6.2'
compile 'com.google.firebase:firebase-crash:11.6.2'
compile 'com.google.firebase:firebase-messaging:11.6.2'
compile 'com.facebook.android:facebook-android-sdk:4.29.0'
compile project(':TagViewLib')
compile 'com.google.android.exoplayer:exoplayer:r2.2.0'
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile 'com.github.iammert:MusicPlayerView:e3b937c729'
compile 'com.longtailvideo.jwplayer:jwplayer-core:+'
compile 'com.longtailvideo.jwplayer:jwplayer-common:+'
compile 'com.thoughtbot:expandablerecyclerview:1.3'
}
apply plugin: 'com.google.gms.google-services'



Fehler:

\app\build\intermediates\res\merged\debug\values\values.xml
Error:(224) Attribute "tint" already defined with incompatible format.
Error:(151) Original attribute defined here.
Error:(224) Attribute "tint" already defined with incompatible format.
Error:(151) Original attribute defined here.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

values.xml:

Betroffene Zeilen:
224: <declare-styleable name="InspiusTintableImageView"><attr format="reference|color" name="tint"/></declare-styleable>
151: <declare-styleable name="AppCompatImageView"><attr name="android:src"/><attr format="reference" name="srcCompat"/><attr format="color" name="tint"/><attr name="tintMode">


Kann mir vielleicht jemand behilflich sein bitte
 
Dafür dass du recht neu im Android Gebiet bist hast du eine umfangreiche build.gradle. Definierst du selbst die genannten Attributes?
Vom Namen her würde ich behaupten die compile(name: 'InspiusCore-release', ext: 'aar') Dependency deklariert die tint Attribute. Das sollte sie nicht tun, weil tint in den aktuellen Versionen schon vom System deklariert wird. (oder von einer der support Libraries)
 
Deek danke für deine Antwort.
Habe die ein wenig angepasst ja aber die App selber habe ich erworben, doch leider bekomme ich den Ersteller nicht erreicht, da mir eigentlich Support zu steht daher stehe ich nun alleine da.. Anpassungen bekomme ich hin soweit aber komplett neue Applikationen zu schreiben bin ich noch ein wenig entfernt von. Aber versuche es so schnell wie es geht zu erlernen.

InspiusCore werde ich mir mal anschauen, danke für deine hilferstellung
 
Zurück
Oben Unten