Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: duplicate value for resource 'attr/minTextSize' with config ''. #101

Open
TonyTangAndroid opened this issue Dec 13, 2018 · 1 comment

Comments

@TonyTangAndroid
Copy link

TonyTangAndroid commented Dec 13, 2018

In case anyone else who also runs into this issue, please refer to this branch which fixed it.

implementation 'com.github.UsherAndroid:android-autofittextview:0.2.9'
(This repo is published through jitpack. You might need to add the basic jitpack config.)

The provided error info is limited and it is misleading and you could not think of the reason until you exhaust other possibilities. Hence I am compelled to post this issue here as a reference.

`* What went wrong:
Execution failed for task ':app:mergeDebugResources'.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
Output: /Users/ztang/code/klaus_app/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:1445: error: duplicate value for resource 'attr/minTextSize' with config ''.
/Users/ztang/code/klaus_app/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:1445: error: resource previously defined here.

Command: /Users/ztang/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/d6b5ff7ee9ed628776431a2b74447e82/aapt2-3.2.1-4818971-osx/aapt2 compile --legacy
-o
/Users/ztang/code/klaus_app/app/build/intermediates/res/merged/debug
/Users/ztang/code/klaus_app/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
Output: /Users/ztang/.gradle/caches/transforms-1/files-1.1/autofittextview-0.2.1.aar/c5feda23a4f26c622aee0582e2cd1d02**/res/values/values.xml:3:5-192: AAPT: error: duplicate value for resource 'attr/minTextSize' with config ''.**

/Users/ztang/.gradle/caches/transforms-1/files-1.1/autofittextview-0.2.1.aar/c5feda23a4f26c622aee0582e2cd1d02/res/values/values.xml:3:5-192: AAPT: error: resource previously defined here.

Command: /Users/ztang/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/d6b5ff7ee9ed628776431a2b74447e82/aapt2-3.2.1-4818971-osx/aapt2 compile --legacy
-o
/Users/ztang/code/klaus_app/app/build/intermediates/res/merged/debug
/Users/ztang/code/klaus_app/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    `
@thiago-you
Copy link

Hi @TonyTangAndroid , how you guys doing?

I ported this library with updated dependencies and configurations, also moved out from JCenter do use Jitpack.io:

https://github.com/thiago-you/autofittextview

  • Move from JCenter to Jitpack.io
  • Migrate do Androidx libraries
  • Drop jetifier support
  • Update dependencies and libraries
  • Update configurations
  • Kotlin compatibility

Check it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants