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

Solution for Initial Clone #54

Open
bhavukkalra opened this issue Feb 16, 2022 · 6 comments
Open

Solution for Initial Clone #54

bhavukkalra opened this issue Feb 16, 2022 · 6 comments

Comments

@bhavukkalra
Copy link

bhavukkalra commented Feb 16, 2022

I was also having cloning problems Initially and was getting this error.
My Setup - Windows 10, Android Studio Version

Error - The minCompileSdk (31) specified in a dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-29).

I could have created a new PR but I think the new commit was made for MacOS users specifically

Solution - Checkout your project to the initial commit and create a new branch.
Command - git checkout -b new_branch b7f3aa688bf398829a4de914273d3162b300cb4c

Try Building the project again. It should work now

@philippkeller
Copy link

Thanks @bhavukkalra!
I put this and also two other needed changes into a PR #56 - now it builds without problems on my Mac

@bhavukkalra
Copy link
Author

That's great to to hear @philippkeller. I am glad that it was helpful for you and thanks for taking your time out in creating a PR.

@Archanciel
Copy link

Thanks a lot @bhavukkalra !

I do not understand why your solution worked, but the problem is solved. To be more concrete, here's what I did on Windows 10. I did open a Window PowerShell on the directory containing the cloned mi_card_flutter and I simply executed the git checkout -b new_branch b7f3aa6 command.
Snap7
Snap8

Snap9

Then, running main.dart on a virtual smartphone did work.

@bhavukkalra
Copy link
Author

Thanks @Archanciel . I am glad that the solution worked for you.
The solution is very simple really. The latest commit introduces some breaking changes with the SDK. So, via the command mentioned above we are just reverting our project to the last working state

@Andreh50
Copy link

Thanks @bhavukkalra ! Worked fine here!!!

@Eshanatnight
Copy link

Even After Doing This I am getting an error

Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s
Exception: Gradle task assembleDebug failed with exit code 1

if anyone can provide me with a working copy of the repository and details regarding the android sdk that are installed it would be appreciated.

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

5 participants