Capacitor Full App - Ionic Angular
  • What is Capacitor Full App - Ionic Angular?
  • Understand the Frameworks
  • Template Highlights
  • Setup
    • Initial Setup
  • Running the app
  • Building App on device
  • Deploying app as PWA
    • Deploy PWA on Firebase
  • How to use this template
    • Two way to use this Template
  • Removing a Page / Component
  • Removing a plugin
  • Extra
    • Troubleshooting
    • FAQ
  • Changelog
  • Features
    • Startup Features
      • Layouts
      • Firebase
      • Addons
        • Globalization - Translation
        • Content Loaders
        • Custom Fonts
        • Infinite Scroll
        • Pull to Refresh
        • List Re-ordering
        • Date Time Pickers
        • Settings
      • Login & Signups
      • Sidemenu Layouts
      • Wordpress
        • How to integrate
      • Video Playlist
      • Grid and List Layouts
      • Chat Lists & Chat Pages
    • Pro Features
      • Pro Addons
        • AdMob
          • Integration
          • Setting up Google Admob
        • Music Player
        • Push Notifications
        • Local Notifications
        • Device
        • Clipboard
        • Social Login
        • In-App Browser
        • Sweet Alerts
        • Social Sharing
        • Google Places
        • Google Autocomplete
        • Image Cropper
      • Phaser Game Framework
      • WooCommerce
      • Payment Gateways
    • Others
      • Adding Icon and Splash
Powered by GitBook
On this page
  • 1. /android/capacitor-cordova-android-plugins/libs/cordova-generic-ad.jar does not exist
  • 2. AndroidX migration
  • 3. Didn't find class "android.support.design.widget.CoordinatorLayout" after AndroidX migration

Was this helpful?

  1. Extra

Troubleshooting

1. /android/capacitor-cordova-android-plugins/libs/cordova-generic-ad.jar does not exist

This error is generated because Cordova-AdMob is not directly supported by Capacitor.

The problem is the dependency plugin cordova-plugin-extension, it has a gradle file at src/android/rjfun-libs.gradle which indicates Cordova to compile the cordova-generic-ad.jar, but doing that makes it search in a relative place instead of in the right place.

Capacitor already compiles the .jar files that are on the right place, so what that gradle file does is not really needed, what you can do is to delete the content of node_modules/cordova-plugin-extension/src/android/rjfun-libs.gradle as workaround.

2. AndroidX migration

Make sure you have following in your android/app/gradle.properties

android.useAndroidX=true
android.enableJetifier=true

Also, install cordova-plugin-androidx-adapter and sync the project again.

At times, you might also need to run a Refactor/ Migrate to AndroidX option from Android Studio.

3. Didn't find class "android.support.design.widget.CoordinatorLayout" after AndroidX migration

This indicates that there are some references of the old imports left in your files.

Just replace android.support.design.widget.CoordinatorLayout with androidx.coordinatorlayout.widget.CoordinatorLayout . Do similar operation if it is any other library

PreviousRemoving a pluginNextFAQ

Last updated 4 years ago

Was this helpful?