GithubHelp home page GithubHelp logo

Comments (21)

chilas avatar chilas commented on June 22, 2024 1

@dapriett Please any way to resolve the blank screen issue. I have a tight deadline and I'm so hoping that the blank screen disappears. I have gone through the tutorial like a quadrillion times and I've practically tried everything here including deleting the platform/android directory. I'm also new to NativeScript BTW. Thanks.

from nativescript-google-maps-sdk.

RusEu avatar RusEu commented on June 22, 2024

check if your google api key is correct

from nativescript-google-maps-sdk.

dapriett avatar dapriett commented on June 22, 2024

Sorry for the late response. Yes, blank screen typically means missing or invalid api key. You'll probably see an error buried in your Android logs.

from nativescript-google-maps-sdk.

 avatar commented on June 22, 2024

i've changed the key, same result, only with android 4.2, same with the demo

from nativescript-google-maps-sdk.

naderio avatar naderio commented on June 22, 2024

i confirm 4.2.2 bug on multiple apps working ok with other android version:
google logo, controls ok, marker(s) ok, but no tiles loading ...

from nativescript-google-maps-sdk.

dapriett avatar dapriett commented on June 22, 2024

I don't have a 4.2.2 device laying around, but I tried it in an emulator and I'm getting the same issue. I monitored the logs coming from the device and was seeing this:

01-21 00:08:33.653: I/ActivityManager(383): Displayed com.android.systemui/.recent.RecentsActivity: +97ms
01-21 00:08:43.261: I/dalvikvm(2925): Could not find method android.app.Notification$Builder.setLocalOnly, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza
01-21 00:08:43.261: I/dalvikvm(2925): DexOpt: access denied from Lcom/google/android/gms/common/GooglePlayServicesUtil; to field Landroid/app/Notification;.extras
01-21 00:08:43.261: I/dalvikvm(2925): Could not find method android.os.UserManager.getApplicationRestrictions, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zzap
01-21 00:08:43.261: E/dalvikvm(2925): Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zzb
01-21 00:08:43.261: W/dalvikvm(2925): VFY: unable to resolve check-cast 24 (Landroid/app/AppOpsManager;) in Lcom/google/android/gms/common/GooglePlayServicesUtil;
01-21 00:08:43.261: I/dalvikvm(2925): Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zzh

This one was an error Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zzb. Not sure if that is causing an issue - not seeing those on other Android versions.

from nativescript-google-maps-sdk.

jaimeglez avatar jaimeglez commented on June 22, 2024

I'm having the same issue with the 4.2.2 version, map is not loading ( I loaded the key already, tried demo and didn't work either).

from nativescript-google-maps-sdk.

dapriett avatar dapriett commented on June 22, 2024

This on an emulator or real device? I've only tried on an emulator (Genymotion) - don't have a 4.2.2 device. I wonder if real devices have the same issue. Try looking at the logs from android - Device monitor or logcat.

from nativescript-google-maps-sdk.

jaimeglez avatar jaimeglez commented on June 22, 2024

The issue also happens on real device, this is what i got from logcat

02-02 10:13:32.381: E/dalvikvm(3390): Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.zze.zzb
02-02 10:13:32.393: E/dalvikvm(3390): Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.nb.a
02-02 10:13:32.429: E/dalvikvm(3390): Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.mw.a
02-02 10:13:33.433: E/ctxmgr(688): [PowerConnectionProducer]Could not write powerInfo=Plug state: 1 BatteryLevel: 0.47, status=Status{statusCode=unknown status code: 7503, resolution=null}

Actually I think is the same error that you got

from nativescript-google-maps-sdk.

sharnupatil3535 avatar sharnupatil3535 commented on June 22, 2024

i get the same error with tns livesync

from nativescript-google-maps-sdk.

gerardocastro avatar gerardocastro commented on June 22, 2024

any news on a fix for this error?

from nativescript-google-maps-sdk.

BernardoQR avatar BernardoQR commented on June 22, 2024

Hi, I installed this module in my app and I followed step by step.
I'm working in a Telerik platform app - nativescript and when I write this on my js. "var mapsModule = require("nativescript-google-maps-sdk");" I get this error. Failed to find module nativescript-google-maps-sdk. any idea why? I will really appreciate any help.
I'm using VS 2013 with APPBUILDER plugin and I'm testing my code on my Iphone.

from nativescript-google-maps-sdk.

dapriett avatar dapriett commented on June 22, 2024

@BernardoQR I'm not familiar with appbuilder - make sure the plugin node_module is installed. You can also try var mapsModule = require("nativescript-google-maps-sdk/map-view");

I did see a note here http://docs.telerik.com/platform/appbuilder/nativescript/working-with-custom-modules/manage-custom-modules-package-json that says

IMPORTANT: The NativeScript framework searches for the file pointed by the main value in the plugins's package.json file. You need to require the plugin by referencing its name and the main value.

from nativescript-google-maps-sdk.

BernardoQR avatar BernardoQR commented on June 22, 2024

Thank you @dapriett . I will take a look.

from nativescript-google-maps-sdk.

jaysson avatar jaysson commented on June 22, 2024

Same issue on Android 5.1.1 (OnePlus 2).

from nativescript-google-maps-sdk.

dapriett avatar dapriett commented on June 22, 2024

What did you Android logs say @jaysson? I'm guessing it's a different issue.

from nativescript-google-maps-sdk.

jaysson avatar jaysson commented on June 22, 2024

I deleted platforms/android and rebuilt, it is working now.

from nativescript-google-maps-sdk.

valentinstoychev avatar valentinstoychev commented on June 22, 2024

Hey @dapriett do you have an idea when this (#7 (comment)) can be resolved or if not do you accept PRs on this? :)

from nativescript-google-maps-sdk.

dapriett avatar dapriett commented on June 22, 2024

hi @valentinstoychev - I have previously spent some time trying to resolve it, but have had no luck pinpointing the exact issue. Haven't had time recently, and don't know enough about the internals of android. I would gladly accept some PRs!

I noticed this issue was closed today related to multidex support: NativeScript/android#344

Not sure if that's related or not - but it may be worth trying out.

from nativescript-google-maps-sdk.

chilas avatar chilas commented on June 22, 2024

I was able to solve the problem. First I think using AppBuilder is not such a good idea. I recreated my project using vs code and also installed Google Repository using SDK Manager because gradle was throwing a No version is installed errror while looking for com.google.android.gms:play-services-maps referenced in the include.gradle file and finally tns remove platform android and tns add platform android. I hope this helps someone out there.

from nativescript-google-maps-sdk.

rpereiraprieto avatar rpereiraprieto commented on June 22, 2024

API 19 (4.4.4) works correctly but API 17 (4.2.2) does not work . the multidex support , does not fix the problem. help please ...

from nativescript-google-maps-sdk.

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.