Skip to content

Lack of documented way to work on the Android embedder with Android Studio #141043

@matanlurey

Description

@matanlurey

Context: I am trying to work on #139702, which requires changes to the C++ engine and Android (Java) embedder. I have never been able to write more than a "Hello World!" in Java without an IDE (i.e. IntelliSense, error-checking, auto-complete).

I tried following the only published instructions on the Wiki:

image

Unfortunately these instructions seem to have been added by a non-team member in 2019 and not updated since, so it's not clear (a) they ever worked or (b) if they would still work now, even if they worked before.

Here is what I tried:

  1. Updating to the latest Android Studio (at time of issue, Hedgehog?)

  2. Opening the engine/src/flutter/shell/platform/android subdirectory as a new project:
    Screenshot 2024-01-05 at 2 36 30 PM

  3. After much trial and error, I managed to figure out how install Android API version 29 and am using it:
    Screenshot 2024-01-05 at 2 37 43 PM

Unfortunately, I don't get anything but basic syntax highlighting. For example, no errors are produced:

Screenshot 2024-01-05 at 2 39 03 PM

I am not sure how this ever worked (don't we need a Gradle file... or something?). I have a hard time believing the entire engine and Android platform teams edits and contributes to this directory without Android Studio (or similar) working, so I'm hoping this is just a matter of updating the documentation (I am willing to help!)

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.fyi-androidFor the attention of Android platform teamteam-engineOwned by Engine team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions