• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps NullPointerException, but only for Intel Atom (x86) ???

ac4android

Well-Known Member
Nov 3, 2015
198
29
Hi.

My app accesses Google Maps n works well on following configurations ( as well as on a physical Galaxy S5 ), albeit a bit slower on the armeabi-v7a :

Name: Nexus_4_Google_API_21_armeabi-v7a
CPU/ABI: Google APIs ARM (armeabi-v7a)
Target: Google APIs (API level 21)

Name: Nexus_4_Google_API_21_x86_64
CPU/ABI: Google APIs Intel Atom (x86_64)
Target: Google APIs (API level 21)



But for the Intel Atom, it generates a FATAL EXCEPTION on the AVD

Name: Nexus_4_Google_API_21_x86
CPU/ABI: Intel Atom (x86)
Target: Android 5.0.1 (API level 21)

E/AndroidRuntime: FATAL EXCEPTION:
java.lang.RuntimeException: Unable to start activity ComponentInfo{...}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.GoogleMap.setMapType(int)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)

I have no idea why it generates a NullPointerException on setMapType(int), at a guess, Google Maps requires a "****_x86_64"

QUESTION: In terms of devices out there, can we ignore the Intel Atom "_86" ? Can't be a lot of those out there... right?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones