If you add custom plugin, check plugin's build.gradle. Change "implementation project(':capacitor-android')" to "implementation 'io.ionic:portals:0.10.2'". It's help me