EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 441 forks source link

Can't build after adding nativescript-plugin-firebase plugin #1412

Open stefmedjo opened 5 years ago

stefmedjo commented 5 years ago

Hi I am facing some issues with this plugin. Without it, I can build my project correctly but when I add it I have this result :

`Preparing project... Hash: 14cab1afc0fbd3d1c7e9 Version: webpack 4.27.1 Time: 3249ms Built at: 2019-09-19 7:08:57 PM Asset Size Chunks Chunk Names bundle.js 25 KiB bundle [emitted] bundle package.json 112 bytes [emitted] runtime.js 13.9 KiB runtime [emitted] runtime tns-java-classes.js 0 bytes [emitted] vendor.js 3.88 MiB vendor [emitted] vendor Entrypoint bundle = runtime.js vendor.js bundle.js [./ sync ^.\/app.(css|scss|less|sass)$] . sync nonrecursive ^.\/app.(css|scss|less|sass)$ 174 bytes {bundle} [built] [./ sync recursive (?<!\bAppResources\b.*).(xml|css|js|(?<!.d.)ts|(?<!\b[\w-].)scss)$] . sync (?<!\bApp_Resources\b.).(xml|css|js|(?<!.d.)ts|(?<!\b_[\w-]*.)scss)$ 270 bytes {bundle} [built] [./app-root.xml] 309 bytes {bundle} [optional] [built] [./app.css] 1.15 KiB {bundle} [optional] [built] [./app.js] 2.22 KiB {bundle} [built] [./main-page.js] 1.77 KiB {bundle} [optional] [built] [./main-page.xml] 1.93 KiB {bundle} [optional] [built] [./main-view-model.js] 881 bytes {bundle} [built] [./package.json] 99 bytes {bundle} [optional] [built]

FAILURE: Build failed with an exception.

BUILD FAILED in 14s Failed to build plugin nativescript-plugin-firebase : Error: Command gradlew.bat failed with exit code 1`

android/build.gradle `// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

def initialize = { ->
    def userDir = "${rootProject.projectDir}/../.."
    apply from: "$rootDir/user_properties_reader.gradle"
    apply from: "$rootDir/paths.gradle"
    rootProject.ext.userDefinedGradleProperties = getUserProperties("${getAppResourcesPath(userDir)}/Android")
}
initialize()

def computeKotlinVersion = { -> project.hasProperty("kotlinVersion") ? kotlinVersion : "1.3.41"
}
def kotlinVersion = computeKotlinVersion()

repositories {
    google()
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.1.0'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}

}

allprojects { repositories { google() jcenter() } beforeEvaluate { project -> if (rootProject.hasProperty("userDefinedGradleProperties")) { rootProject.ext.userDefinedGradleProperties.each { entry -> def propertyName = entry.getKey() def propertyValue = entry.getValue() project.ext.set(propertyName, propertyValue) } }

}

}

task clean(type: Delete) { delete rootProject.buildDir } `

gradle-wrapper.properties distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

LakshmiEvana commented 3 years ago

+1