Cuboid-Circle-Button icon indicating copy to clipboard operation
Cuboid-Circle-Button copied to clipboard

build gradle failed cause duplicate value resource 'attr/font' with config ' '

Open yudikarma opened this issue 5 years ago • 2 comments

Android resource compilation failed Output: /home/yudikarma/AndroidStudioProjects/Task107_imagesqilte/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:1271: error: duplicate value for resource 'attr/font' with config ''. /home/yudikarma/AndroidStudioProjects/Task107_imagesqilte/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:1271: error: resource previously defined here.

Command: /home/yudikarma/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-linux.jar/16f95533f32d0eb3ec6b15dd8253a625/aapt2-3.2.1-4818971-linux/aapt2 compile --legacy
-o
/home/yudikarma/AndroidStudioProjects/Task107_imagesqilte/app/build/intermediates/res/merged/debug
/home/yudikarma/AndroidStudioProjects/Task107_imagesqilte/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml Daemon: AAPT2 aapt2-3.2.1-4818971-linux Daemon #0

yudikarma avatar Dec 20 '18 08:12 yudikarma

i am also having the same issue. did you find the solution ?

jamshaid120 avatar May 05 '19 03:05 jamshaid120

Nope, unfortunately I couldn't find the solution for the specific problem... But I did find an alternative option - creating the button resource by yourself Read more about it in here: https://stackoverflow.com/questions/9884202/custom-circle-button

Then, in order to make the hight of it equal to the width (making it perfect circle and not some oval), I found this: https://stackoverflow.com/questions/9798392/imageview-have-height-match-width I can't remember if it worked for me or not, so if it doesn't work for you, go ahead and search for this problem in the internet, I remember it as a not-to-hard to find the solution Good luck!

On Sun, May 5, 2019, 06:26 Muhammad Jamshaid Iqbal [email protected] wrote:

i am also having the same issue. did you find the solution ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MuhammadArsalanChishti/Cuboid-Circle-Button/issues/8#issuecomment-489385676, or mute the thread https://github.com/notifications/unsubscribe-auth/AHKTICIU5J3BL2AIQZGZ7MDPTZHW3ANCNFSM4GLO4HXA .

NiDaAppDev avatar May 05 '19 07:05 NiDaAppDev