Comments (21)
@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.
check if your google api key is correct
from nativescript-google-maps-sdk.
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.
i've changed the key, same result, only with android 4.2, same with the demo
from nativescript-google-maps-sdk.
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.
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.
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.
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.
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.
i get the same error with tns livesync
from nativescript-google-maps-sdk.
any news on a fix for this error?
from nativescript-google-maps-sdk.
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.
@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.
Thank you @dapriett . I will take a look.
from nativescript-google-maps-sdk.
Same issue on Android 5.1.1 (OnePlus 2).
from nativescript-google-maps-sdk.
What did you Android logs say @jaysson? I'm guessing it's a different issue.
from nativescript-google-maps-sdk.
I deleted platforms/android and rebuilt, it is working now.
from nativescript-google-maps-sdk.
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.
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.
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.
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)
- infoWindow open without a click event HOT 2
- Blank Map with Angular in Suspend/Resume Event HOT 1
- Angular Map not drawing Polylines HOT 6
- shape.loadPoints is not a function?
- Geo political features
- Nativescript 6.0 error maps arr HOT 16
- Conflicts with @triniwiz/nativescript-image-cache-it HOT 1
- Performance Angular? HOT 1
- NS8 infoWindowTemplate is not working HOT 1
- Gesture Handling Cooperative HOT 2
- Gradle 7 requires that compile be changed to implementation
- iOS + M1 - not works HOT 3
- Failed to build plugin nativescript-google-maps-sdk HOT 1
- How to set a pattern in a shape HOT 2
- Version of Google Map API HOT 2
- How to set a tag in shapes or markers HOT 1
- Adding GroundOverlays HOT 1
- Could not find method compile() for arguments [com.google.android.gms:play-services-maps:+] HOT 3
- Uncaught ReferenceError: NativeClass is not defined HOT 3
- Class constructor ActionItem cannot be invoked without 'new' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-google-maps-sdk.