Code Monkey home page Code Monkey logo

Comments (7)

EddyVerbruggen avatar EddyVerbruggen commented on June 22, 2024 4

OMG got it working!
PR sent.

JS: firebase.init done
JS: Page loaded
JS: BOOTSTRAPPING...
JS: Setting DOM
JS: Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
JS: ANGULAR BOOTSTRAP DONE.
JS: --- auth state changed: com.google.android.gms.internal.zzadg@5fccb6f
JS: --- user: null
JS: --- auth state changed: com.google.android.gms.internal.zzadg@5fccb6f
JS: --- user: com.google.android.gms.internal.zzadh@3e04dc12
JS: --- auth state changed: com.google.android.gms.internal.zzadg@5fccb6f
JS: --- user: com.google.android.gms.internal.zzadh@3e04dc12

from nativescript-plugin-firebase.

tjvantoll avatar tjvantoll commented on June 22, 2024

Just to note, the specific error Iā€™m getting at this point is

W/GooglePlayServicesUtil( 2177): Cannot find Google Play services package name.
W/GooglePlayServicesUtil( 2177): android.content.pm.PackageManager$NameNotFoundException: com.google.android.gms
W/GooglePlayServicesUtil( 2177):     at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:114)
D/FirebaseApp( 2177): Initialized class com.google.firebase.auth.FirebaseAuth.
W/GooglePlayServicesUtil( 2177): Google Play services is missing.

Which is confusing because I think I have everything needed set up. We committed the appropriate native files to help debug this. See https://github.com/NativeScript/sample-Groceries/tree/angular-firebase/platforms/android.

from nativescript-plugin-firebase.

EddyVerbruggen avatar EddyVerbruggen commented on June 22, 2024

I will take a deeper look tomorrow, but for now:

from nativescript-plugin-firebase.

jlooper avatar jlooper commented on June 22, 2024

hi, I did the above changes and ran the command:

:config phase: createDefaultIncludeFiles
+found plugins: nativescript-plugin-firebase
{
"F0" {
dimension "nativescriptpluginfirebase"
}
}
} +found plugins: tns-core-modules-widgets
{
"F1" {
dimension "tnscoremoduleswidgets"
}
} }
:config phase: createPluginsConfigFile
Creating product flavors include.gradle file in /Users/Looper/Documents/NativeScript/sample-Groceries/platforms/android/configurations folder...

:config phase: pluginExtend
+applying configuration from: /Users/Looper/Documents/NativeScript/sample-Groceries/platforms/android/configurations/include.gradle
+applying configuration from: /Users/Looper/Documents/NativeScript/sample-Groceries/platforms/android/configurations/nativescript-plugin-firebase/include.gradle
+applying configuration from: /Users/Looper/Documents/NativeScript/sample-Groceries/platforms/android/configurations/tns-core-modules-widgets/include.gradle

:config phase: copyAarDependencies

:config phase: addAarDependencies
+adding dependency: /Users/Looper/Documents/NativeScript/sample-Groceries/platforms/android/libs/aar/widgets-release.aar

FAILURE: Build failed with an exception.

  • What went wrong:
    Project 'app' not found in root project 'groceries'.
  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 9.878 secs

from nativescript-plugin-firebase.

EddyVerbruggen avatar EddyVerbruggen commented on June 22, 2024

@jlooper Did you have the same error as @tjvantoll or did you see something like com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536?

I'm seeing that one and need to add MultiDex to fix that.

I will be looking more into this in a few hours.

from nativescript-plugin-firebase.

jlooper avatar jlooper commented on June 22, 2024

I see different errors, as I did add MultiDex prior as per the instructions. Ain't Android great? I'll paste the errors in a bit after my commute...

from nativescript-plugin-firebase.

jlooper avatar jlooper commented on June 22, 2024

images duckduckgo
also, to get Google Play services on your Android emulators so you can test, it's super fun: https://inthecheesefactory.com/blog/how-to-install-google-services-on-genymotion/en

from nativescript-plugin-firebase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.