-
Notifications
You must be signed in to change notification settings - Fork 159
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
Unable to merge resources, duplicate attr/scaleType error #487
Comments
|
Hey @lgrimes Thank you for filing the issue. I have reproduced locally. I'll see if I can put together a workaround. The issue seems to be related to clashing resource names between our SDK and the CameraX library. Thanks! |
|
Hi @aaalaniz, thanks for confirming the issue, any updates by any chance? :) |
|
I was trying to put together a workaround for this issue, but I cannot find any recommended ways of merging attributes with the same name. I did fix the issue by prefixing our VideoView/VideoTextureView attributes, but it does require an update to the SDK itself. We will ship a fix for this in Thank everyone! |
|
Fixed in Video Android 5.4.0. Thanks for filing the issue! |
|
I'm getting similar problem and cant seem to find which library causes the problem |
Description
When trying to build our existing app after integrating
com.twilio:video-android:5.2.0, the build will fail atmergeStagingDebugResourcestask with the following errors:AAPT: error: duplicate value for resource 'attr/scaleType' with config ''.AAPT: error: resource previously defined here.We are also using
androidx.camera:camera-view:1.0.0-alpha03which is also declaring ascaleTypeattribute. This is the error when trying to merge the 2 resources. Have tried updating this toalpha08and issue persists.gradle/caches/transforms-2/files-2.1/c7a0ee02aa85f6263deaf25d70997022/camera-view-1.0.0-alpha03/res/values/values.xml:3:5-25:25: AAPT: error: duplicate value for resource 'attr/scaleType' with config ''.The
values.xmlfile of thevideo-androidNotes
android.useAndroidX=trueandroid.enableJetifier=truevideo-android:5.2.0,video-android:5.1.0Expected Behaviour
The build would succeed and merging resources would complete
Actual Behaviour
The build fails and resources are not able to be merged
Reproduces how Often
Every build. Removing dependency resolves issue
Logs
Video Android SDK
com.twilio:video-android:5.2.0Android API
compileSdkVersion 28Android Device
N/A
The text was updated successfully, but these errors were encountered: