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

build.gradle fails to resolve :libsmartscanner-debug and :libsmartscanner-mrz-parser #20

Open
spencerAEE opened this issue Feb 9, 2023 · 5 comments

Comments

@spencerAEE
Copy link
Contributor

Current Behaviour

The build.gradle script is unable to resolve these required dependencies, preventing the Android Capacitor app from running successfully.

Expected Behaviour

App should successfully build and run on an Android emulator

Steps to Reproduce the Problem

  1. Create simple Capacitor project with SmartScanner boilerplate
  2. Use Capacitor to sync Android build
  3. In Android Studio, sync Gradle

Context

Windows 11, Node LTS, Android Studio 2022.1.1 (Electric Eel), JDK 11, Gradle 7.2.1 (Have also tried with 7.4.1 but no difference there)

  • Version: 0.5.0-beta.9
  • Platform: Android
  • Capacitor version: 4.6.3
@spencerAEE
Copy link
Contributor Author

spencerAEE commented Feb 10, 2023

I ended up manually adding the files from the source repository into my project. Afterwards, there were some issues with the AndroidManifest (specifically, android:exported needed to be explicitly stated for the activity) that needed to be fixed but I was finally able to build successfully for Android!

@megaxayda
Copy link
Collaborator

This is also my way to build the app. Copy all .arr files and put them in libs. Until there is a new way to make this work, I can add this workaround to readme.
image

@megaxayda
Copy link
Collaborator

Related #9

@spencerAEE
Copy link
Contributor Author

I had tried that but it led to the issues detailed in #22 , maybe I was getting the .aar files from the wrong place? Did you use the ones provided in the master branch of this repo or elsewhere? I'm not actively using this library on my work assignment anymore but I'd still like to do what I can to help resolve this issue.

@megaxayda
Copy link
Collaborator

Thanks for the help.
Currently, my app is using capacitor v4 so I'm using 0.5.0-beta.9, just copy into folder libs and I can build the app, also the scanning is working fine.

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