fix(android): resolve build failures and duplicate plugin dependencies
- Fix plugin path in capacitor.settings.gradle to point to correct npm package location - Remove duplicate local dailynotification module causing class conflicts - Remove duplicate plugin dependency from app build.gradle - Resolves Android SDK configuration and build system issues Build now succeeds with proper plugin integration from npm package.
This commit is contained in:
@@ -48,7 +48,6 @@ dependencies {
|
|||||||
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
||||||
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
||||||
implementation project(':capacitor-cordova-android-plugins')
|
implementation project(':capacitor-cordova-android-plugins')
|
||||||
implementation project(':dailynotification')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: 'capacitor.build.gradle'
|
apply from: 'capacitor.build.gradle'
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
|
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
|
||||||
include ':capacitor-android'
|
include ':capacitor-android'
|
||||||
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
|
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
|
||||||
|
|
||||||
|
include ':timesafari-daily-notification-plugin'
|
||||||
|
project(':timesafari-daily-notification-plugin').projectDir = new File('../node_modules/@timesafari/daily-notification-plugin/android/plugin')
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
include ':app'
|
include ':app'
|
||||||
include ':dailynotification'
|
|
||||||
include ':capacitor-cordova-android-plugins'
|
include ':capacitor-cordova-android-plugins'
|
||||||
project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/')
|
project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user