Open aljimsondev opened 2 years ago
i'm having a similar issue using gradle 7x
I'm having a similar issue
Found a fix for that particular problem, as said by @wcosmas maven was remove in Gradle 7.
This whole repo won't compile in Gradle 7, to fix that, you need to make some changes to the buid.gradle
file inside the module folder (node_modules\react-native-alarm-notification\android\build.gradle
)
line 23: apply plugin: 'maven-publish'
line 43: `apply plugin: 'maven-publish'"
line 112 replace the whole task
block:
task androidJavadoc(type: Javadoc) {
project.configurations.getByName("implementation").setCanBeResolved(true)
source = android.sourceSets.main.java.srcDirs
classpath += files(android.bootClasspath)
classpath += files(project.getConfigurations().getByName('implementation').asList())
include '**/*.java'
}
line 145 comment/remove the whole task
block:
// task installArchives(type: Upload) {
// configuration = configurations.archives
// repositories.mavenDeployer {
// // Deploy to react-native-event-bridge/maven, ready to publish to npm
// repository url: "file://${projectDir}/../android/maven"
// configureReactNativePom pom
// }
// }
(honestly anything past line 108 is probably not needed for this to run but I didn't check)
after that the app will build with Gradle >=7
I deleted the contents after line 108 then it compiled for me but no alarm notification
@emekalites @tuxrace I'm having a similar issue
I deleted the contents after line 108 then it compiled for me but no alarm notification š¢