AndroidUSBCamera icon indicating copy to clipboard operation
AndroidUSBCamera copied to clipboard

Error "jetified-common-4.1.1\res\values\values.xml:687:5-705:22: AAPT: error: duplicate value for resource 'attr/orientation' with config ''."

Open zipswich opened this issue 4 years ago • 6 comments

As soon as I add the following to build.gradle: implementation 'com.github.jiangdongguo:AndroidUSBCamera:2.3.4' building an app generates the following error: jetified-common-4.1.1\res\values\values.xml:687:5-705:22: AAPT: error: duplicate value for resource 'attr/orientation' with config ''.

Yes, I have taken a look at this SO question, but the solution does not work.

The app works perfectly without using jiangdongguo:AndroidUSBCamera. I am not sure this is necessarily the library's issue, but I hope to get a tip here to address it.

zipswich avatar Jul 20 '20 18:07 zipswich

I think it is related to a resource error mainly. First, Please do "Invalidate caches / Restart" in your android studio and then if it does not fix your problem then please downgrade the App/Gradle libraries.

devbest555 avatar Nov 08 '20 12:11 devbest555

@zipswich I have the latest version of Gradle installed, I added a library, added NDK and everything works without errors

IvanAbakumov avatar Nov 08 '20 12:11 IvanAbakumov

I also encounter problems that "duplicate value for resource 'attr/orientation' with config '' and how did you deal with it?

shiduan avatar Dec 07 '20 01:12 shiduan

Thank you for your email. If you need my help, Please contact me on Skype.

my skype : live:.cid.e5675d33daad7e3f

On Mon, Dec 7, 2020 at 4:42 AM shiduan [email protected] wrote:

I also encounter problems that "duplicate value for resource 'attr/orientation' with config '' and how did you deal with it?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jiangdongguo/AndroidUSBCamera/issues/251#issuecomment-739614029, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANDPFF6KJTTFDYLJVPEEMOLSTQXGTANCNFSM4PCVEV2Q .

devbest555 avatar Dec 07 '20 05:12 devbest555

who had deal whit "duplicate value for resource 'attr/orientation' with config "??

kevengh avatar Mar 07 '21 18:03 kevengh

I have the same issue, any fix ?

ricrebelo avatar May 28 '21 14:05 ricrebelo