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/progress' #28

Open
sfstanley1 opened this issue Dec 14, 2018 · 9 comments
Open

error: duplicate value for resource 'attr/progress' #28

sfstanley1 opened this issue Dec 14, 2018 · 9 comments

Comments

@sfstanley1
Copy link

On using Croller v 1.0.7 and upgrading to the latest version on Constraint layout in Android i.e com.android.support.constraint:constraint-layout:2.0.0-alpha1/alpha2 (Motion Layout)

i get the following:

  • 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: C:\Users\Kumar\AndroidStudioProjects\Untitled\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1285: error: duplicate value for resource 'attr/progress' with config ''.
C:\Users\Kumar\AndroidStudioProjects\Untitled\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1285: error: resource previously defined here.

Command: C:\Users\Kumar.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\6c2d83a259d5cde1cbf25c4727b1a482\aapt2-3.2.1-4818971-windows\aapt2.exe compile --legacy
-o
C:\Users\Kumar\AndroidStudioProjects\Untitled\app\build\intermediates\res\merged\debug
C:\Users\Kumar\AndroidStudioProjects\Untitled\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Output: C:\Users\Kumar.gradle\caches\transforms-1\files-1.1\croller-1.0.7.aar\ee1f5cfa4bf9e21b43d3c29c329df1d8\res\values\values.xml:3:5-1134: AAPT: error: duplicate value for resource 'attr/progress' with config ''.

C:\Users\Kumar.gradle\caches\transforms-1\files-1.1\croller-1.0.7.aar\ee1f5cfa4bf9e21b43d3c29c329df1d8\res\values\values.xml:3:5-1134: AAPT: error: resource previously defined here.

Command: C:\Users\Kumar.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\6c2d83a259d5cde1cbf25c4727b1a482\aapt2-3.2.1-4818971-windows\aapt2.exe compile --legacy
-o
C:\Users\Kumar\AndroidStudioProjects\Untitled\app\build\intermediates\res\merged\debug
C:\Users\Kumar\AndroidStudioProjects\Untitled\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0

Can you please help with this if possible?

@dev-ritik
Copy link
Collaborator

Hi @sfstanley1
The error you are getting is resolved in PR #26 . Currently, the PR is merged and the code has been updated. We shall update the dependency asap!

@dev-ritik dev-ritik changed the title error: duplicate value for resource 'attr/progress' with config ''. when upgrading to constraint layout 2.0.0-alpha1/2 error: duplicate value for resource 'attr/progress' Dec 14, 2018
@sfstanley1
Copy link
Author

thanks for the quick reply..is there any ETA on the dependency update ?

@Lundez
Copy link

Lundez commented Jan 8, 2019

Any ETA on the update?

@dev-ritik
Copy link
Collaborator

Hey @sfstanley1 , @Lundez
I am not sure on how long it would take to make it so I would recommend you to upload the code to some other publishing websites like jitpack for the time being.

@YanMetelitsa
Copy link

Hi, @dev-ritik
After updating Adroid Studio there was such a problem. All day I try to fix it, but I could not do anything. It turned out to connect the repository using Jitpack, but Croller has only one release. Maybe you can help me with connecting non-release versions by Jitpack?

@Lundez
Copy link

Lundez commented Mar 28, 2019

@YanMetelitsa you can use the following (if you have jitpack added also):
implementation 'com.github.Lundez:Croller:1.0.3'

@YanMetelitsa
Copy link

@Lundez, it's great, thanks :)
But, what XML code I have to use? Like:
<com.github.lundez.crollerTest.Croller android:id="@+id/croller" ... />

@dev-ritik
Copy link
Collaborator

@YanMetelitsa You should use the Snapshot instead of release to get the dependency. Try using this dependency, implementation 'com.github.harjot-oberai:Croller:-SNAPSHOT'

@YanMetelitsa
Copy link

@dev-ritik, I tried to try various options for connecting the repository including this, but they all gave an error:

Failed to resolve: com.github.harjot-oberai:Croller:-SNAPSHOT

Jitpack.io says:

If the project doesn't have any GitHub Releases you can use the short commit hash or 'master-SNAPSHOT' as the version.

But it doesn't work either.
In any case, @Lundez link helped me. Thanks anyway :)

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

4 participants