ionic-team/vscode-extension

Plugin with id 'com.android.application' not found.

jensbroecher opened this issue · 6 comments

This happens every time, even when doing a fresh install of the VSCode Extension, create a new project, and then open it in Android Studio. I tried various solutions i found online but none worked.I upgraded to the latest Android Studio and now have the following problem:

A problem occurred evaluating project ':app'.
Plugin with id 'com.android.application' not found.

Screenshot 2023-05-26 at 16 45 59

Hey @jensbroecher , I'm wondering whether you did a sync before opening Android Studio?

If you missed that step then you would get an error like this.

If you have, and still have this problem then can you post a link to a sample repo with this error so I can compare it?

Yes, i did the synch and everything imaginable. This happens even on a fresh install of the VS Code extension with a new project using the provided templates such as my-first-app and blank.

The problems started after installing:
Android Studio Flamingo | 2022.2.1 Patch
Build #AI-222.4459.24.2221.9971841, built on April 19, 2023

Try going to Settings > Build, Execution, Deployment > Build Tools > Gradle and making sure the Gradle SDK is set to 17. Then close Android Studio and reopen the project.

Again, even if it is an empty new project, I'll need a sample repo with the error. This will help me determine if there is a problem with the project created, or it is your machine and its settings that is to blame.

I get an error related to the package name you chose. I created a PR to fix it:
jensbroecher/Fixing-issue-with-ionic-vs-code-extension#1

Essentially you cannot have a package name that includes just a number so I renamed fridelivery.ionic.app.2023 to afridelivery.ionic.app.v2023.

Try merging the PR and using that to see if you still get in any errors when building.

Fix done to prevent invalid package names when creating a project.