Troubleshooting

1. Android Error - package android.support.design.widget does not exists

Although the app source code is already migrated to AndroidX, this error might happen when you migrate the app to AndroidX, using Android Studio.

This error presents when the package mentioned has been updated in AndroidX. In this case, android.support.design.widget

In Android Studio, search the entire application for android.support.design.widget.CoordinatorLayout; and replace them with androidx.coordinatorlayout.widget.CoordinatorLayout;

In some cases, this error might be coming from one particular plugin, e.g. AdMob. In the Admob build.gradle (find it in Android Studio project structure), add implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0'

If you make the above changes in node_modules/capacitor_admob , then you'll have to do these changes every time you update your Android Project. It is better to be done in Android Studio project itself.

Last updated