-
Notifications
You must be signed in to change notification settings - Fork 449
Firebase init fails on android device #39
Comments
Note, I have it working on the iOS emulator, still no luck with my android device (HTC One m8, getting the error above) or the genymotion emulator:
Here's the full codebase: https://github.com/castle-dev/ng2-seed-test |
I too have encountered this problem. Here is how I solved it:
Hope my 2 cents helped! |
@isaackwan Tnank you, this worked for me. |
Solved for me too, thanks @isaackwan! @EddyVerbruggen want me to submit a PR to add this info to the Android Installation section in the README? |
Thanks guys! I added that applicationId to my own @lowe0292 I'm adding it to the readme after a few tests, thanks for offering! |
I still don't see it in the readme. Are we suppose to be creating |
Pls I still get this error |
Looks like you need to install/reinstall nativescript-plugin-firebase? |
Still getting same error // Uncomment to add recyclerview-v7 dependency dependencies {
} Build.gradle;
*/ import groovy.json.JsonSlurper //used to parse package.json import java.nio.file.Files; buildscript {
} apply plugin: "com.android.application" def isWinOs = System.properties['os.name'].toLowerCase().contains('windows') def packageJsonContents = [:] def dontRunSbg = project.hasProperty("dontRunSbg"); def computeCompileSdkVersion () { def computeTargetSdkVersion() { def computeBuildToolsVersion() { def renameResultApks (variant) { // gets the devDependencies declared in the package.json and excludes them from the build
} android {
} repositories { dependencies {
} def copyNativeScriptAar() {
} //////////////////////////////////////////////////////////////////////////////////// def updateProductFlavorsContent(flavor, dimensionName, oldContent) {
} def createProductFlavorsContent(flavor, dimensionName, includeAndroidContent = true) { def createIncludeFile (filePath, flavor, dimensionName) {
} def sanitizeDimensionName(str) { def replaceProductFlavorInContent(content, dimension, flavor) {
} // make sure the include.gradle file provided by the user has only allowed characters in dimension attribute and remove any invalid characters if necessary def renamePluginDirToFlavorName(directory, flavor) { def flavorNumber = 0 task createDefaultIncludeFiles {
} def createIncludeGradleForPlugin(file, flavorNumber, flavorNames) {
} task createPluginsConfigFile {
android {
} task pluginExtend {
} //// doesn't work unless task is explicitly called (TODO: research configurations hook) //////////////////////////////////////////////////////////////////////////////////// // we need to copy all dependencies into a flat dir, as pointed by the repositories configurations at the top
} task addAarDependencies { //////////////////////////////////////////////////////////////////////////////////// task cleanLocalAarFiles(type: Delete) { task ensureMetadataOutDir { task collectAllJars {
} task buildMetadata (type: JavaExec) {
} task generateTypescriptDefinitions (type: JavaExec) {
} generateTypescriptDefinitions.onlyIf { def shouldIncludeDirForTypings(path, includeDirs) {
} task copyTypings {
} copyTypings.onlyIf({ task validateAppIdMatch {
} //////////////////////////////////////////////////////////////////////////////////// setProperties.finalizedBy("asbg:generateBindings", generateTypescriptDefinitions) //////////////////////////////////////////////////////////////////////////////////// // -- configuration phase // --execution phase ensureMetadataOutDir.dependsOn(cleanLocalAarFiles) //DO NOT UNCOMMENT task buildapk {
} //////// custom clean /////////// task deleteFlavors (type: Delete){ task deleteConfigurations (type: Delete) { task deleteGeneratedBindings(type: Delete) { buildapk.finalizedBy("validateAppIdMatch"); |
I would really appreciate if someone can help me out.This is my first application |
I got the demo to work, but when adding this plugin to angular2-seed-advanced I keep getting this error:
Here's my code:
What am I missing?
The text was updated successfully, but these errors were encountered: