はじめに
Cordova Android アプリのビルド時に This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the gradle.properties file and retry. のエラーとなる場合の対処方法。
TL;DR
platforms/android/gradle.propertiesを修正するbefore_compileフックを使うと良い- JS ファイルを作成して
config.xmlに追加
- JS ファイルを作成して
- Vue + Cordova で
npm run cordova-serve-androidを使う場合はafter_prepareフックも設定
1 |
|
