Hello everyone, I’m developing an application, android with gluon mobile, it uses gradle. So I added some firebase dependencies on it, but when I try to use the firebase classes, I can not instantiate them in my project. Am I doing something wrong?
Meu build.gradle:
buildscript {
repositories {
jcenter()
// mavenLocal()
// maven { url 'https://maven.google.com' }
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.3.10'
classpath 'com.google.gms:google-services:3.1.0'
}
}
apply plugin: 'org.javafxports.jfxmobile'
repositories {
flatDir {
dirs 'libs'
}
jcenter()
maven { url 'http://nexus.gluonhq.com/nexus/content/repositories/releases'}
maven { url 'https://maven.google.com' }
maven { url 'https://maven.fabric.io/public' }
}
mainClassName = 'com.gluonapplication.GluonApplication'
//apply plugin: 'com.android.application'
apply plugin : 'java'
apply plugin : 'eclipse'
allprojects {
repositories {
jcenter()
mavenLocal()
maven { url 'https://maven.google.com' }
maven { url 'https://maven.fabric.io/public' }
}
}
dependencies {
compile 'com.gluonhq:charm:4.4.1'
compile fileTree (dir: 'com.google.firebase', include:['firebase-core:11.0.4.jar'])
compile 'com.google.firebase:firebase-auth:11.8.0'
compile 'com.google.android.gms:play-services-auth:11.8.0'
compile 'com.google.firebase:firebase-database:11.8.0'
compile 'com.firebaseui:firebase-ui-database:3.0.0'
}
jfxmobile {
downConfig {
version = '3.6.0'
// Do not edit the line below. Use Gluon Mobile Settings in your project context menu instead
plugins 'display', 'lifecycle', 'statusbar', 'storage'
}
android {
minSdkVersion '3'
compileSdkVersion '27'
targetSdkVersion '27'
manifest = 'src/android/AndroidManifest.xml'
}
ios {
infoPList = file('src/ios/Default-Info.plist')
forceLinkClasses = [
'com.gluonapplication.**.*',
'com.gluonhq.**.*',
'javax.annotations.**.*',
'javax.inject.**.*',
'javax.json.**.*',
'org.glassfish.json.**.*'
]
}
}
apply plugin: 'com.google.gms.google-services'
project.afterEvaluate {
explodeAarDependencies(project.configurations.compile)
}