Hey everyone! I’m building an app with Ionic (Ionic React) and I just got a basic version of the app working. I proceeded to run ionic capacitor add android
, ionic capacitor copy android
and ionic capacitor run android
.
Note: Android studio is installed, android sdk is up-to-date, ANDROID_SDK_ROOT
is set and PATH
is configured.
ionic capacitor run android
builds the project for web successfully, but when it tries to actually compile to android, I get the following error in the gradle task :app:processDebugMainManifest
:
Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @4a712893
I tried re-running with --verbose
but found no useful information.
The only similar issue I could find on the internet (Stack Overflow) seems to be unrelated to ionic and seems to be a discrepancy between two configuration files, both of which are by ionic CLI and not me in my case.
I hope someone knows what’s up here!
1 post - 1 participant