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

Bug: Incompatible with latest Capacitor V5 Android Platform #185

Closed
tobiasmuecksch opened this issue May 5, 2023 · 6 comments
Closed

Bug: Incompatible with latest Capacitor V5 Android Platform #185

tobiasmuecksch opened this issue May 5, 2023 · 6 comments

Comments

@tobiasmuecksch
Copy link

tobiasmuecksch commented May 5, 2023

Description

As of Capacitor v5 the Android project structure seems to have changed.
The MainActivity.java file is not located where it formerly was.

Trapeze expects the file under this path: android/app/src/main/java/MainActivity.java

But now it's located under android/app/src/main/java/io/ionic/starter/MainActivity.java.

Therefore, running npx @trapezedev/configure run platform-config.yml results in the following error:

image

Versions

  • Trapeze: 7.0.8
  • Capacitor: 5.0.0
  • macOS: Ventura - 13.3.1 (a)

Reproduction

For reproduction purposes I've created a pristine demo repository with a blank ionic app and only an android platform.

  1. Clone Repo: https://github.com/tobiasmuecksch/cap5-trapeze-bug
  2. Install dependencies npm i
  3. run npx @trapezedev/configure run platform-config.yml
  4. See the error
@martinbertinat
Copy link

Same problem here.

Did you found a workaround?

Thanks

@tobiasmuecksch
Copy link
Author

@martinbertinat No. I haven't.

@mlynch
Copy link
Contributor

mlynch commented May 8, 2023

Thanks will look into this. Regardless it shouldn't assume and should either support it being specified or read it from the manifest (ideally)

@mlynch mlynch closed this as completed in c093197 May 8, 2023
@mlynch
Copy link
Contributor

mlynch commented May 8, 2023

Fixed in 7.0.9

@tobiasmuecksch
Copy link
Author

tobiasmuecksch commented May 8, 2023

@mlynch Thank you so much, for the quick fix. I've tested it, and it works like a charm!

@tobiasmuecksch
Copy link
Author

tobiasmuecksch commented May 9, 2023

@mlynch I'm afraid I have to revoke what I said. It doesn't work as expected. After running trapeze, Android Studio cannot start the app in the emulator anymore.

Since I cannot reopen this issue, I have opened a new one here: #188

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

3 participants