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

Manifest and ScaleType error #124

Closed
emredg opened this issue Sep 23, 2022 · 1 comment
Closed

Manifest and ScaleType error #124

emredg opened this issue Sep 23, 2022 · 1 comment

Comments

@emredg
Copy link

emredg commented Sep 23, 2022

First of all i followed that issue and installed the lib: #119

(I created signing.properties file by myself)

After that i create a file in my project and moved the smartscannerlib-release.aar file to there. And added this line t o my gradle file:
implementation files('../smartscanner/smartscannerlib-release.aar')

And when i just sync the gradle and build it, i got error.

Manifest merger failed : Attribute application@theme value=(@style/Theme.ASM) from AndroidManifest.xml:33:9-41 is also present at [smartscannerlib-release.aar] AndroidManifest.xml:30:9-40 value=(@style/AppTheme). Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:24:5-97:19 to override.

I googled it and tried to add this line to my manifest:
tools:replace="android:theme"

After that i tried to build but that now i got that error:
ERROR:/Users/buhesapsenin/.gradle/caches/transforms-3/52c64db2506c28514c63ed34a2dfc384/transformed/jetified-smartscannerlib-release/res/layout/activity_smart_scanner.xml:77: AAPT: error: attribute scaleType (aka com.kendineiyibak.app:scaleType) not found.

I deleted items in that xml's contraint layout, and tried to compile with clean xml but same i got same error. I think It's not about that xml.

Can u help me?

@nicholemnl
Copy link
Collaborator

Hello thank you for sending your issue. I think I also have experience this but should be fix in this branch hotfix/mrz-improvement

Changes :
fed968a

Once the last PR #125 merged we can close this.

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