Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blank with android 4.2.2 #7

Open
gerardocastro opened this issue Dec 30, 2015 · 21 comments
Open

blank with android 4.2.2 #7

gerardocastro opened this issue Dec 30, 2015 · 21 comments

Comments

@gerardocastro
Copy link

i'm trying to use the map with android 4.2.2 and only shows the 'google' sign

@RusEu
Copy link

RusEu commented Jan 9, 2016

check if your google api key is correct

@dapriett
Copy link
Owner

dapriett commented Jan 9, 2016

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.

@FINACSA
Copy link

FINACSA commented Jan 14, 2016

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

@naderio
Copy link
Contributor

naderio commented Jan 20, 2016

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 ...

@dapriett
Copy link
Owner

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.

@jaimeglez
Copy link

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).

@dapriett
Copy link
Owner

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.

@jaimeglez
Copy link

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

@sharnupatil3535
Copy link

i get the same error with tns livesync

@gerardocastro
Copy link
Author

any news on a fix for this error?

@BernardoQR
Copy link

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.

@dapriett
Copy link
Owner

@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.

@BernardoQR
Copy link

Thank you @dapriett . I will take a look.

@jaysson
Copy link

jaysson commented Apr 9, 2016

Same issue on Android 5.1.1 (OnePlus 2).

@dapriett
Copy link
Owner

dapriett commented Apr 9, 2016

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

@jaysson
Copy link

jaysson commented Apr 14, 2016

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

@valentinstoychev
Copy link

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

@dapriett
Copy link
Owner

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.

@chilas
Copy link

chilas commented Apr 25, 2016

@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.

@chilas
Copy link

chilas commented Apr 26, 2016

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.

@rpereiraprieto
Copy link

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 ...

jamescodesthings added a commit to jamescodesthings/nativescript-google-maps-sdk that referenced this issue May 6, 2021
2 bump error logging and handling where the error occurs still
jamescodesthings added a commit to jamescodesthings/nativescript-google-maps-sdk that referenced this issue May 6, 2021
jamescodesthings added a commit to jamescodesthings/nativescript-google-maps-sdk that referenced this issue May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests