Material-dialogs: Gradle sync error

Created on 13 Sep 2018  路  10Comments  路  Source: afollestad/material-dialogs

I tried
implementation 'com.afollestad.material-dialogs:core:2.0.0-alpha09'
And with
maven { url "https://dl.bintray.com/drummer-aidan/maven/" }

Android resource linking failed
Output: ...\aaa\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
...\aaa\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
...\aaa\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2008: error: resource android:attr/fontVariationSettings not found.
...\aaa\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2009: error: resource android:attr/ttcIndex not found.
error: failed linking references.

Command: C:\Users\ricardo.gradle\cachestransforms-1\files-1.1\aapt2-3.2.0-rc03-4818971-windows.jar\abf80ee89b0310285cdc1df80d21c2e2\aapt2-3.2.0-rc03-4818971-windows\aapt2.exe link -I\
I:\android.sdk\platforms\android-27\android.jar\
--manifest\
...\aaa\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
...\aaa\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
@...\aaa\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
...\aaa\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
com.bbb.aaa\
-0\
apk\
--output-text-symbols\
...\aaa\app\build\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-rc03-4818971-windows Daemon #0

questiodiscussion

Most helpful comment

Why was this closed? Is there a fix? I have the same issue.

All 10 comments

Why was this closed? Is there a fix? I have the same issue.

same issue too. has anyone resolved this ? Thanks..

This type of issue is always a mismatched support library version issue.

Your app needs to use what the library uses.

sorry, I am new to the android :).... What libraries shall I use... Thanks.

At the time of this issue, it was whatever version of the Support Library was used in alpha9.

As of the more recent versions, it's now AndroidX 1.0.

these are the support libraries into my project, and getting this error: error: failed linking references

implementation 'com.afollestad.material-dialogs:core:2.0.0-beta2'
 implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:26.1.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'

As I said above, AndroidX must be used. The old support libraries won't receive support anymore.

last question :). what is the old version of your library i shall use

The last version before 2.0 alpha and beta was 0.9.6.0, there's a file in the repo called README_old.md which has all of the documentation for that version

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SixianOne picture SixianOne  路  5Comments

jahirfiquitiva picture jahirfiquitiva  路  6Comments

eygraber picture eygraber  路  3Comments

palaima picture palaima  路  4Comments

jlelse picture jlelse  路  6Comments