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

In Android Studio, it cannot build the source and got various errors. #21

Open
writingdeveloper opened this issue Apr 22, 2021 · 0 comments

Comments

@writingdeveloper
Copy link

Hello, I downloaded RemoteFiles APK and install it in Android Emulator, and it works really nice.

So I tried to modify some codes, so I download the source code and open it with Android Studio.

In my Android Studio Environment, it already installed flutter and dart plugin.

So I tried to build it and run in virtual Android environment but there are too many errors comes out.

the errors look like this.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It's being deprecated in favor of Android embedding v2. Follow the
steps at

https://flutter.dev/go/android-project-migration

to migrate your project.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Launching lib\main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\normal person\AndroidStudioProjects\RemoteFiles-master\android\app\build.gradle' line: 25

* What went wrong:
A problem occurred evaluating project ':app'.
> Plugin with id 'kotlin-android' not found.

* 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.

it seems that the error are related with gradle version so I search it in Google for several hours but there are too many solutions to apply it, and some solutions, causes another errors.

How can I run it or modify it in Android Studio and emulated in virtual Android environment.

My env versions
Android Studio : 4.1.3 (Latest)
Dart & Flutter Plugin in Android Studio : Latest version each 201.9335 and 55.1.1 version
Windows 10 (64bit)

If there is anything that you find how to open it in Android Studio please let me know. Thanks.

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

1 participant