Bug: Incompatible with latest Capacitor V5 Android Platform
tobiasmuecksch opened this issue · 6 comments
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:
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.
- Clone Repo: https://github.com/tobiasmuecksch/cap5-trapeze-bug
- Install dependencies
npm i
- run
npx @trapezedev/configure run platform-config.yml
- See the error
Same problem here.
Did you found a workaround?
Thanks
@martinbertinat No. I haven't.
Thanks will look into this. Regardless it shouldn't assume and should either support it being specified or read it from the manifest (ideally)
Fixed in 7.0.9
@mlynch Thank you so much, for the quick fix. I've tested it, and it works like a charm!