Je reçois quelques erreurs lorsque j'essaie de synchroniser Gradle. Je suis extrêmement nouveau en codage Android.
Gradle Console
Executing tasks: [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar]
Configuration on demand is an incubating feature.
:clean
:app:clean
:app:preBuild UP-TO-DATE
:app:preDebugBuild
:app:compileDebugAidl
:app:compileDebugRenderscript UP-TO-DATE
:app:checkDebugManifest
:app:generateDebugBuildConfig
:app:prepareLintJar UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
:app:createDebugCompatibleScreenManifests
:app:processDebugManifest
:app:splitsDiscoveryTaskDebug
:app:processDebugResources
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/roundSelector (aka com.example.adend.timetable:attr/roundSelector)\u0027 not found.","sources":[{"file":"C:\\Users\\adend\\AndroidStudioProjects\\Timetable\\app\\src\\main\\res\\values\\styles_parent.xml","position":{"startLine":32,"startColumn":4,"startOffset":1268,"endLine":59,"endColumn":12,"endOffset":2471}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/rectSelector (aka com.example.adend.timetable:attr/rectSelector)\u0027 not found.","sources":[{"file":"C:\\Users\\adend\\AndroidStudioProjects\\Timetable\\app\\src\\main\\res\\values\\styles_parent.xml","position":{"startLine":32,"startColumn":4,"startOffset":1268,"endLine":59,"endColumn":12,"endOffset":2471}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/rectSelectorStrong (aka com.example.adend.timetable:attr/rectSelectorStrong)\u0027 not found.","sources":[{"file":"C:\\Users\\adend\\AndroidStudioProjects\\Timetable\\app\\src\\main\\res\\values\\styles_parent.xml","position":{"startLine":32,"startColumn":4,"startOffset":1268,"endLine":59,"endColumn":12,"endOffset":2471}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/defaultFooterColor (aka com.example.adend.timetable:attr/defaultFooterColor)\u0027 not found.","sources":[{"file":"C:\\Users\\adend\\AndroidStudioProjects\\Timetable\\app\\src\\main\\res\\values\\styles_parent.xml","position":{"startLine":32,"startColumn":4,"startOffset":1268,"endLine":59,"endColumn":12,"endOffset":2471}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/dividerColor (aka com.example.adend.timetable:attr/dividerColor)\u0027 not found.","sources":[{"file":"C:\\Users\\adend\\AndroidStudioProjects\\Timetable\\app\\src\\main\\res\\values\\styles_parent.xml","position":{"startLine":32,"startColumn":4,"startOffset":1268,"endLine":59,"endColumn":12,"endOffset":2471}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/iconColor (aka com.example.adend.timetable:attr/iconColor)\u0027 not found.","sources":[{"file":"C:\\Users\\adend\\AndroidStudioProjects\\Timetable\\app\\src\\main\\res\\values\\styles_parent.xml","position":{"startLine":32,"startColumn":4,"startOffset":1268,"endLine":59,"endColumn":12,"endOffset":2471}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/toolbarPopupTheme (aka com.example.adend.timetable:attr/toolbarPopupTheme)\u0027 not found.","sources":[{"file":"C:\\Users\\adend\\AndroidStudioProjects\\Timetable\\app\\src\\main\\res\\values\\styles_parent.xml","position":{"startLine":32,"startColumn":4,"startOffset":1268,"endLine":59,"endColumn":12,"endOffset":2471}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/roundSelector (aka com.example.adend.timetable:attr/roundSelector)\u0027 not found.","sources":[{"file":"C:\\Users\\adend\\AndroidStudioProjects\\Timetable\\app\\src\\main\\res\\values\\styles.xml","position":{"startLine":4,"startColumn":4,"startOffset":81,"endColumn":56,"endOffset":133}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/rectSelector (aka com.example.adend.timetable:attr/rectSelector)\u0027 not found.","sources":[{"file":"C:\\Users\\adend\\AndroidStudioProjects\\Timetable\\app\\src\\main\\res\\values\\styles.xml","position":{"startLine":4,"startColumn":4,"startOffset":81,"endColumn":56,"endOffset":133}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/rectSelectorStrong (aka com.example.adend.timetable:attr/rectSelectorStrong)\u0027 not found.","sources":[{"file":"C:\\Users\\adend\\AndroidStudioProjects\\Timetable\\app\\src\\main\\res\\values\\styles.xml","position":{"startLine":4,"startColumn":4,"startOffset":81,"endColumn":56,"endOffset":133}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/defaultFooterColor (aka com.example.adend.timetable:attr/defaultFooterColor)\u0027 not found.","sources":[{"file":"C:\\Users\\adend\\AndroidStudioProjects\\Timetable\\app\\src\\main\\res\\values\\styles.xml","position":{"startLine":4,"startColumn":4,"startOffset":81,"endColumn":56,"endOffset":133}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/dividerColor (aka com.example.adend.timetable:attr/dividerColor)\u0027 not found.","sources":[{"file":"C:\\Users\\adend\\AndroidStudioProjects\\Timetable\\app\\src\\main\\res\\values\\styles.xml","position":{"startLine":4,"startColumn":4,"startOffset":81,"endColumn":56,"endOffset":133}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/iconColor (aka com.example.adend.timetable:attr/iconColor)\u0027 not found.","sources":[{"file":"C:\\Users\\adend\\AndroidStudioProjects\\Timetable\\app\\src\\main\\res\\values\\styles.xml","position":{"startLine":4,"startColumn":4,"startOffset":81,"endColumn":56,"endOffset":133}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/toolbarPopupTheme (aka com.example.adend.timetable:attr/toolbarPopupTheme)\u0027 not found.","sources":[{"file":"C:\\Users\\adend\\AndroidStudioProjects\\Timetable\\app\\src\\main\\res\\values\\styles.xml","position":{"startLine":4,"startColumn":4,"startOffset":81,"endColumn":56,"endOffset":133}}],"original":"","tool":"AAPT"}
C:\Users\adend\AndroidStudioProjects\Timetable\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2895: error: style attribute 'attr/roundSelector (aka com.example.adend.timetable:attr/roundSelector)' not found.
C:\Users\adend\AndroidStudioProjects\Timetable\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2896: error: style attribute 'attr/rectSelector (aka com.example.adend.timetable:attr/rectSelector)' not found.
C:\Users\adend\AndroidStudioProjects\Timetable\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2897: error: style attribute 'attr/rectSelectorStrong (aka com.example.adend.timetable:attr/rectSelectorStrong)' not found.
C:\Users\adend\AndroidStudioProjects\Timetable\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2901: error: style attribute 'attr/defaultFooterColor (aka com.example.adend.timetable:attr/defaultFooterColor)' not found.
C:\Users\adend\AndroidStudioProjects\Timetable\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2903: error: style attribute 'attr/dividerColor (aka com.example.adend.timetable:attr/dividerColor)' not found.
C:\Users\adend\AndroidStudioProjects\Timetable\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2904: error: style attribute 'attr/iconColor (aka com.example.adend.timetable:attr/iconColor)' not found.
C:\Users\adend\AndroidStudioProjects\Timetable\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2906: error: style attribute 'attr/toolbarPopupTheme (aka com.example.adend.timetable:attr/toolbarPopupTheme)' not found.
C:\Users\adend\AndroidStudioProjects\Timetable\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2923: error: style attribute 'attr/roundSelector (aka com.example.adend.timetable:attr/roundSelector)' not found.
C:\Users\adend\AndroidStudioProjects\Timetable\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2924: error: style attribute 'attr/rectSelector (aka com.example.adend.timetable:attr/rectSelector)' not found.
C:\Users\adend\AndroidStudioProjects\Timetable\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2925: error: style attribute 'attr/rectSelectorStrong (aka com.example.adend.timetable:attr/rectSelectorStrong)' not found.
C:\Users\adend\AndroidStudioProjects\Timetable\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2929: error: style attribute 'attr/defaultFooterColor (aka com.example.adend.timetable:attr/defaultFooterColor)' not found.
C:\Users\adend\AndroidStudioProjects\Timetable\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2931: error: style attribute 'attr/dividerColor (aka com.example.adend.timetable:attr/dividerColor)' not found.
C:\Users\adend\AndroidStudioProjects\Timetable\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2932: error: style attribute 'attr/iconColor (aka com.example.adend.timetable:attr/iconColor)' not found.
C:\Users\adend\AndroidStudioProjects\Timetable\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2934: error: style attribute 'attr/toolbarPopupTheme (aka com.example.adend.timetable:attr/toolbarPopupTheme)' not found.
error: failed linking references.
Failed to execute aapt
com.Android.ide.common.process.ProcessException: Failed to execute aapt
at com.Android.builder.core.AndroidBuilder.processResources(AndroidBuilder.Java:796)
at com.Android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.Java:551)
at com.Android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.Java:285)
at com.Android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.Java:109)
at Sun.reflect.GeneratedMethodAccessor397.invoke(Unknown Source)
at Sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.Java:43)
at Java.lang.reflect.Method.invoke(Method.Java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.Java:73)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.Java:173)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.Java:134)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.Java:121)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.Java:122)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.Java:197)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.Java:107)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.Java:111)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.Java:92)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.Java:70)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.Java:63)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.Java:54)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.Java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.Java:88)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.Java:52)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.Java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.Java:54)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.Java:43)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.Java:34)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.Java:248)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.Java:197)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.Java:107)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.Java:241)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.Java:230)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.Java:124)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.Java:80)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.Java:105)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.Java:99)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.Java:625)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.Java:580)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.Java:99)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.Java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.Java:46)
at Java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.Java:1142)
at Java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.Java:617)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.Java:55)
at Java.lang.Thread.run(Thread.Java:745)
Caused by: Java.util.concurrent.ExecutionException: Java.util.concurrent.ExecutionException: com.Android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.Java:503)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.Java:482)
at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.Java:79)
at com.Android.builder.core.AndroidBuilder.processResources(AndroidBuilder.Java:794)
... 47 more
Caused by: Java.util.concurrent.ExecutionException: com.Android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.Java:503)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.Java:462)
at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.Java:79)
at com.Android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.Java:179)
at Java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.Java:1142)
at Java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.Java:617)
... 1 more
Caused by: com.Android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
at com.Android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.Java:454)
at com.Android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.Java:411)
at com.Android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.Java:332)
at com.Android.utils.GrabProcessOutput$1.run(GrabProcessOutput.Java:104)
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
14 actionable tasks: 11 executed, 3 up-to-date
Build.gradle
apply plugin: 'com.Android.application'
Android {
compileSdkVersion 27
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.example.adend.timetable"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "Android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-Android.txt'), 'proguard-rules.pro'
}
}
}
ext {
supportLibVersion = '27.0.2'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "com.Android.support:appcompat-v7:$supportLibVersion"
implementation "com.Android.support.constraint:constraint-layout:1.0.2"
implementation "com.Android.support:support-compat:$supportLibVersion"
implementation "com.Android.support:support-core-utils:$supportLibVersion"
implementation "com.Android.support:support-core-ui:$supportLibVersion"
implementation "com.Android.support:support-media-compat:$supportLibVersion"
implementation "com.Android.support:support-fragment:$supportLibVersion"
implementation "com.Android.support:support-v13:$supportLibVersion"
implementation "com.Android.support:appcompat-v7:$supportLibVersion"
implementation "com.Android.support:recyclerview-v7:$supportLibVersion"
implementation "com.Android.support:gridlayout-v7:$supportLibVersion"
implementation "com.Android.support:cardview-v7:$supportLibVersion"
implementation "com.Android.support:palette-v7:$supportLibVersion"
implementation "com.Android.support:design:$supportLibVersion"
implementation "com.Android.support:support-annotations:$supportLibVersion"
implementation "com.Android.support:percent:$supportLibVersion"
implementation "com.Android.support:preference-v7:$supportLibVersion"
implementation "com.Android.support:preference-v14:$supportLibVersion"
implementation 'com.github.kabouzeid:app-theme-helper:1.3.7'
implementation 'com.afollestad.material-dialogs:core:0.9.6.0'
implementation 'com.afollestad.material-dialogs:commons:0.9.6.0'
implementation 'com.afollestad:material-cab:0.1.12'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.Android.support.test:runner:1.0.1'
androidTestImplementation 'com.Android.support.test.espresso:espresso-core:3.0.1'
}
styles.xml
<resources>
<style name="Theme.Light" parent="Theme.Base.Light" />
<style name="Theme.Dark" parent="Theme.Base.Dark" />
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
</resources>
v21/styles.xml
<style name="Theme.Dark" parent="Theme.Base.Dark">
<item name="Android:statusBarColor">@Android:color/transparent</item>
<item name="Android:windowSharedElementsUseOverlay">false</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="Android:windowDrawsSystemBarBackgrounds">true</item>
</style>
<style name="Theme.Light" parent="Theme.Base.Light">
<item name="Android:statusBarColor">@Android:color/transparent</item>
<item name="Android:windowSharedElementsUseOverlay">false</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="Android:windowDrawsSystemBarBackgrounds">true</item>
</style>
styles_parent.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Base.Dark" parent="Theme.AppCompat.NoActionBar">
<item name="Android:windowActionBarOverlay">true</item>
<item name="windowActionBarOverlay">true</item>
<item name="md_dark_theme">true</item>
<item name="roundSelector">@drawable/round_selector_dark</item>
<item name="rectSelector">@drawable/rect_selector_dark</item>
<item name="rectSelectorStrong">@drawable/rect_selector_strong_dark</item>
<item name="cardBackgroundColor">@color/md_grey_800</item>
<item name="defaultFooterColor">@color/md_grey_900</item>
<item name="dividerColor">@color/md_divider_white</item>
<item name="iconColor">@color/ate_secondary_text_dark</item>
<item name="toolbarPopupTheme">@style/ThemeOverlay.AppCompat</item>
<!-- just in case-->
<item name="colorAccent">@Android:color/white</item>
<!-- necessary to find the overflow button later in the layout-->
<item name="Android:actionOverflowButtonStyle">@style/Widget.ActionButton.Overflow</item>
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
</style>
<style name="Theme.Base.Light" parent="Theme.AppCompat.Light.NoActionBar">
<item name="Android:windowActionBarOverlay">true</item>
<item name="windowActionBarOverlay">true</item>
<item name="md_dark_theme">false</item>
<item name="roundSelector">@drawable/round_selector</item>
<item name="rectSelector">@drawable/rect_selector</item>
<item name="rectSelectorStrong">@drawable/rect_selector_strong</item>
<item name="cardBackgroundColor">@color/md_white_1000</item>
<item name="defaultFooterColor">@color/md_grey_300</item>
<item name="dividerColor">@color/md_divider_black</item>
<item name="iconColor">@color/ate_secondary_text_light</item>
<item name="toolbarPopupTheme">@style/ThemeOverlay.AppCompat.Light</item>
<!-- just in case-->
<item name="colorAccent">@Android:color/black</item>
<!-- necessary to find the overflow button later in the layout-->
<item name="Android:actionOverflowButtonStyle">@style/Widget.ActionButton.Overflow</item>
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
</style>
<!-- content description is necessary to find the overflow button later in the layout-->
<style name="Widget.ActionButton.Overflow" parent="Widget.AppCompat.ActionButton.Overflow">
<item name="Android:contentDescription">@string/abc_action_menu_overflow_description</item>
</style>
</resources>
premier bit de values.xml (limité sur les caractères, mais ne vous inquiétez pas, il n'a pas été touché)
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:ns1="urn:oasis:names:tc:xliff:document:1.2" xmlns:ns2="http://schemas.Android.com/tools">
<attr format="reference" name="constraintSet"/>
<attr format="reference" name="drawerArrowStyle"/>
<attr format="dimension" name="height"/>
<attr format="boolean" name="isLightTheme"/>
<attr format="integer" name="layout_constraintBaseline_creator"/>
<attr format="reference|enum"
En outre, je reçois 2 erreur sur values.xml:
URI is not registered
et
Resource registered by this URI is not recognized
Toute aide est la bienvenue!
De votre journal des erreurs semble comme si vous obtenez cette erreur en raison de
error: l'attribut de style 'attr/roundSelector (alias com.example.adend.timetable: attr/roundSelector)' est introuvable.
Alors s'il vous plaît vérifier cela
@ drawable/round_selector_dark
vous avez ceci round_selector_dark dans votre dessin ou non.
il y a plusieurs erreurs et toutes concernent votre style.xml
Alors vérifiez bien vos éléments style.xml.
J'ai eu du mal avec cette erreur suivante: AGPBI: {"kind": "erreur", "text": "erreur: attribut de style\u0027attr/preferenceTheme (aka com.example.Android.project: attr/preferenceTheme)\u0027 introuvable. ", ...}
Puis j'ai pensé, puisque je n'utilisais pas PreferenceFragmentCompat, j'avais supprimé une dépendance apparemment inutile de build.gradle: 'com.Android.support:preference-v4:27.1.1 J'ai refait cette dépendance et je me sens encore plus seule.
Si vous avez deux bibliothèques ou plus dans un projet, cette question peut être soulevée par la bibliothèque dépendante.
Pour moi, ProjetAcontient la bibliothèqueBetC, et chacune de ces bibliothèques a la bibliothèque LoggerL.
L'erreur générée dans la bibliothèqueBlors de l'exécution de la tâche mergeReleaseResources
, mais la cause première a été mise sur la bibliothèqueL. Dans le détail, la bibliothèqueLn'avait aucune définition style
sans signification. J'ai supprimé les éléments de style et le problème résolu.