Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Error inflating class com mapbox.mapboxgl.lib.MapView Android #738

Closed
Aminebr5 opened this issue Dec 31, 2014 · 36 comments
Closed

Error inflating class com mapbox.mapboxgl.lib.MapView Android #738

Aminebr5 opened this issue Dec 31, 2014 · 36 comments
Labels
Android Mapbox Maps SDK for Android crash

Comments

@Aminebr5
Copy link

I'm trying to compile Mapbox-gl-native android-mason on Android Studio, i've this error popping out every time i run it, is there any solution to this,

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mapbox.mapboxgl.app/com.mapbox.mapboxgl.app.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class com.mapbox.mapboxgl.lib.MapView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2365)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
at android.app.ActivityThread.access$600(ActivityThread.java:169)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1377)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5449)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class com.mapbox.mapboxgl.lib.MapView
at android.view.LayoutInflater.createView(LayoutInflater.java:613)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at com.mapbox.mapboxgl.app.MapFragment.onCreateView(MapFragment.java:43)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1786)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:920)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1206)
at android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2159)
at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:297)
at android.support.v7.app.ActionBarActivity.onCreateView(ActionBarActivity.java:547)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.support.v7.app.ActionBarActivityDelegateBase.setContentView(ActionBarActivityDelegateBase.java:228)
at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:102)
at com.mapbox.mapboxgl.app.MainActivity.onCreate(MainActivity.java:74)
at android.app.Activity.performCreate(Activity.java:5135)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1146)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2329)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
            at android.app.ActivityThread.access$600(ActivityThread.java:169)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1377)
            at android.os.Handler.dispatchMessage(Handler.java:107)
            at android.os.Looper.loop(Looper.java:194)
            at android.app.ActivityThread.main(ActivityThread.java:5449)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:525)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
            at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
            at com.mapbox.mapboxgl.app.MapFragment.onCreateView(MapFragment.java:43)
            at android.support.v4.app.Fragment.performCreateView(Fragment.java:1786)
            at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:920)
            at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
            at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1206)
            at android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2159)
            at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:297)
            at android.support.v7.app.ActionBarActivity.onCreateView(ActionBarActivity.java:547)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
            at android.support.v7.app.ActionBarActivityDelegateBase.setContentView(ActionBarActivityDelegateBase.java:228)
            at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:102)
            at com.mapbox.mapboxgl.app.MainActivity.onCreate(MainActivity.java:74)
            at android.app.Activity.performCreate(Activity.java:5135)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1146)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2329)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
            at android.app.ActivityThread.access$600(ActivityThread.java:169)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1377)
            at android.os.Handler.dispatchMessage(Handler.java:107)
            at android.os.Looper.loop(Looper.java:194)
            at android.app.ActivityThread.main(ActivityThread.java:5449)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:525)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
            at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load mapbox-gl from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.mapbox.mapboxgl.app-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.mapbox.mapboxgl.app-2, /vendor/lib, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:366)
at java.lang.System.loadLibrary(System.java:514)
at com.mapbox.mapboxgl.lib.NativeMapView.(NativeMapView.java:32)
at com.mapbox.mapboxgl.lib.MapView.initialize(MapView.java:147)
at com.mapbox.mapboxgl.lib.MapView.(MapView.java:112)
            at java.lang.reflect.Constructor.constructNative(Native Method)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
            at android.view.LayoutInflater.createView(LayoutInflater.java:587)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
            at com.mapbox.mapboxgl.app.MapFragment.onCreateView(MapFragment.java:43)
            at android.support.v4.app.Fragment.performCreateView(Fragment.java:1786)
            at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:920)
            at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
            at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1206)
            at android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2159)
            at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:297)
            at android.support.v7.app.ActionBarActivity.onCreateView(ActionBarActivity.java:547)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
            at android.support.v7.app.ActionBarActivityDelegateBase.setContentView(ActionBarActivityDelegateBase.java:228)
            at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:102)
            at com.mapbox.mapboxgl.app.MainActivity.onCreate(MainActivity.java:74)
            at android.app.Activity.performCreate(Activity.java:5135)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1146)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2329)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
            at android.app.ActivityThread.access$600(ActivityThread.java:169)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1377)
            at android.os.Handler.dispatchMessage(Handler.java:107)
            at android.os.Looper.loop(Looper.java:194)
            at android.app.ActivityThread.main(ActivityThread.java:5449)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:525)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
            at dalvik.system.NativeStart.main(Native Method)

@Aminebr5 Aminebr5 changed the title Error inflating class com mapbox.mapboxgl.lib.MapView Error inflating class com mapbox.mapboxgl.lib.MapView Android Dec 31, 2014
@ljbade ljbade added the Android Mapbox Maps SDK for Android label Dec 31, 2014
@ljbade
Copy link
Contributor

ljbade commented Dec 31, 2014

It cannot find the native library.

Did make android complete successfully?

Are you trying to run this on a device or in the emulator?

If in the emulator, are you using ARM system image or x86? (You need to use ARM currently)

@Aminebr5
Copy link
Author

when i click on make project it complete successfully and i'm trying to run it on the device

@ljbade
Copy link
Contributor

ljbade commented Jan 1, 2015

Can you check if libmapbox-gl.so exists in android/java/lib/src/main/jniLibs/armeabi-v7a/?

@Aminebr5
Copy link
Author

Aminebr5 commented Jan 2, 2015

yes it exists, i worked on it, i don't have any errors but when it starts i get the the toolbar with Bright writen on it and after that it crash and the map does not show up this is what i got in the Android section after Running the program on my device:

01-02 14:46:31.276 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ Zygote::ForkAndSpecialize : 0
01-02 14:46:31.276 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ zygote get new systemTid : 4535
01-02 14:46:31.276 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ Late-enabling CheckJNI
01-02 14:46:31.301 4535-4540/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=2: interp stack at 0x5a472000
01-02 14:46:31.302 4535-4541/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=3: interp stack at 0x5a592000
01-02 14:46:31.302 4535-4541/com.mapbox.mapboxgl.app D/dalvikvm﹕ Elevating priority from 0 to -8
01-02 14:46:31.302 4535-4535/com.mapbox.mapboxgl.app D/jdwp﹕ prepping for JDWP over ADB
01-02 14:46:31.302 4535-4535/com.mapbox.mapboxgl.app D/jdwp﹕ ADB transport startup
01-02 14:46:31.302 4535-4542/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=4: interp stack at 0x5a6b2000
01-02 14:46:31.302 4535-4542/com.mapbox.mapboxgl.app D/jdwp﹕ JDWP: thread running
01-02 14:46:31.302 4535-4542/com.mapbox.mapboxgl.app D/jdwp﹕ acceptConnection
01-02 14:46:31.302 4535-4542/com.mapbox.mapboxgl.app D/jdwp﹕ trying to receive file descriptor from ADB
01-02 14:46:31.302 4535-4543/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=5: interp stack at 0x5cbd5000
01-02 14:46:31.302 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ zygote get thread init done
01-02 14:46:31.303 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ create interp thread : stack size=128KB
01-02 14:46:31.303 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ create new thread
01-02 14:46:31.303 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ new thread created
01-02 14:46:31.303 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ update thread list
01-02 14:46:31.303 4535-4544/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=6: interp stack at 0x5cbf5000
01-02 14:46:31.303 4535-4544/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=6: created from interp
01-02 14:46:31.303 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ start new thread
01-02 14:46:31.303 4535-4544/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=6: notify debugger
01-02 14:46:31.303 4535-4544/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=6 (ReferenceQueueDaemon): calling run()
01-02 14:46:31.303 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ create interp thread : stack size=128KB
01-02 14:46:31.303 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ create new thread
01-02 14:46:31.303 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ new thread created
01-02 14:46:31.303 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ update thread list
01-02 14:46:31.303 4535-4545/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=7: interp stack at 0x5cd15000
01-02 14:46:31.303 4535-4545/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=7: created from interp
01-02 14:46:31.303 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ start new thread
01-02 14:46:31.303 4535-4545/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=7: notify debugger
01-02 14:46:31.303 4535-4545/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=7 (FinalizerDaemon): calling run()
01-02 14:46:31.303 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ create interp thread : stack size=128KB
01-02 14:46:31.303 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ create new thread
01-02 14:46:31.303 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ new thread created
01-02 14:46:31.303 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ update thread list
01-02 14:46:31.303 4535-4546/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=8: interp stack at 0x5ce35000
01-02 14:46:31.303 4535-4546/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=8: created from interp
01-02 14:46:31.303 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ start new thread
01-02 14:46:31.303 4535-4546/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=8: notify debugger
01-02 14:46:31.304 4535-4546/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=8 (FinalizerWatchdogDaemon): calling run()
01-02 14:46:31.314 4535-4542/com.mapbox.mapboxgl.app D/jdwp﹕ received file descriptor 35 from ADB
01-02 14:46:31.329 4535-4542/com.mapbox.mapboxgl.app D/jdwp﹕ processIncoming
01-02 14:46:31.329 4535-4542/com.mapbox.mapboxgl.app D/jdwp﹕ processIncoming
01-02 14:46:31.329 4535-4542/com.mapbox.mapboxgl.app D/jdwp﹕ handlePacket : cmd=0x1, cmdSet=0xC7, len=0x13, id=0x400000A9, flags=0x0, dataLen=0x8
01-02 14:46:31.347 4535-4542/com.mapbox.mapboxgl.app D/jdwp﹕ processIncoming
01-02 14:46:31.347 4535-4542/com.mapbox.mapboxgl.app D/jdwp﹕ handlePacket : cmd=0x1, cmdSet=0xC7, len=0x17, id=0x400000AA, flags=0x0, dataLen=0xC
01-02 14:46:31.351 4535-4542/com.mapbox.mapboxgl.app D/jdwp﹕ processIncoming
01-02 14:46:31.351 4535-4542/com.mapbox.mapboxgl.app D/jdwp﹕ handlePacket : cmd=0x1, cmdSet=0xC7, len=0x13, id=0x400000AB, flags=0x0, dataLen=0x8
01-02 14:46:31.352 4535-4542/com.mapbox.mapboxgl.app D/jdwp﹕ processIncoming
01-02 14:46:31.352 4535-4542/com.mapbox.mapboxgl.app D/jdwp﹕ handlePacket : cmd=0x1, cmdSet=0xC7, len=0x13, id=0x400000AC, flags=0x0, dataLen=0x8
01-02 14:46:31.352 4535-4542/com.mapbox.mapboxgl.app D/jdwp﹕ processIncoming
01-02 14:46:31.352 4535-4542/com.mapbox.mapboxgl.app D/jdwp﹕ handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400000AD, flags=0x0, dataLen=0x9
01-02 14:46:31.359 4535-4561/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=9: interp stack at 0x5d253000
01-02 14:46:31.359 4535-4535/com.mapbox.mapboxgl.app D/jdwp﹕ sendBufferedRequest : len=0x3D
01-02 14:46:31.360 4535-4562/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=10: interp stack at 0x5d373000
01-02 14:46:31.437 4535-4535/com.mapbox.mapboxgl.app D/jdwp﹕ sendBufferedRequest : len=0x49
01-02 14:46:31.441 4535-4535/com.mapbox.mapboxgl.app W/asset﹕ AssetManager-->addDefaultAssets CIP path not exsit!
01-02 14:46:31.451 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ open_cached_dex_file : /mnt/asec/com.mapbox.mapboxgl.app-2/pkg.apk /data/dalvik-cache/mnt@asec@com.mapbox.mapboxgl.app-2@pkg.apk@classes.dex
01-02 14:46:31.475 4535-4535/com.mapbox.mapboxgl.app W/SystemTheme/Resources﹕ createSystemThemeIfNeeded
01-02 14:46:31.475 4535-4535/com.mapbox.mapboxgl.app I/SystemThemeResource﹕ SystemThemeResource: set to default lenovo theme
01-02 14:46:31.497 4535-4535/com.mapbox.mapboxgl.app V/Provider/Settings﹕ invalidate [system]: current 1649 != cached 0
01-02 14:46:31.512 4535-4535/com.mapbox.mapboxgl.app D/ActivityThread﹕ hoder:android.app.IActivityManager$ContentProviderHolder@419090e0,provider,holder.Provider:android.content.ContentProviderProxy@419097f8
01-02 14:46:31.526 4535-4535/com.mapbox.mapboxgl.app V/Provider/Settings﹕ from db cache, name = lenovo_desktop_theme , value = com.lenovo.launcher.theme.davinci
01-02 14:46:31.527 4535-4535/com.mapbox.mapboxgl.app W/asset﹕ AssetManager-->addDefaultAssets CIP path not exsit!
01-02 14:46:31.613 4535-4535/com.mapbox.mapboxgl.app V/MainActivity﹕ onCreate
01-02 14:46:31.633 4535-4535/com.mapbox.mapboxgl.app I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
01-02 14:46:31.633 4535-4535/com.mapbox.mapboxgl.app W/dalvikvm﹕ VFY: unable to resolve virtual method 369: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
01-02 14:46:31.633 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
01-02 14:46:31.634 4535-4535/com.mapbox.mapboxgl.app I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
01-02 14:46:31.634 4535-4535/com.mapbox.mapboxgl.app W/dalvikvm﹕ VFY: unable to resolve virtual method 391: Landroid/content/res/TypedArray;.getType (I)I
01-02 14:46:31.634 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
01-02 14:46:31.682 4535-4535/com.mapbox.mapboxgl.app V/MapFragment﹕ onCreateView
01-02 14:46:31.685 4535-4535/com.mapbox.mapboxgl.app V/MapView﹕ initialize
01-02 14:46:31.686 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ Trying to load lib /mnt/asec/com.mapbox.mapboxgl.app-2/lib/libmapbox-gl.so 0x41902c88
01-02 14:46:31.891 4535-4535/com.mapbox.mapboxgl.app D/dalvikvm﹕ Added shared lib /mnt/asec/com.mapbox.mapboxgl.app-2/lib/libmapbox-gl.so 0x41902c88
01-02 14:46:32.152 4535-4535/com.mapbox.mapboxgl.app V/MapView﹕ onConnectivityChanged: true
01-02 14:46:32.153 4535-4535/com.mapbox.mapboxgl.app V/MapView﹕ onCreate
01-02 14:46:32.163 4535-4535/com.mapbox.mapboxgl.app D/libEGL﹕ >>> 0 0 android
01-02 14:46:32.163 4535-4535/com.mapbox.mapboxgl.app D/libEGL﹕ >>> 0 1 mali
01-02 14:46:32.234 4535-4535/com.mapbox.mapboxgl.app D/libEGL﹕ loaded /system/lib/egl/libEGL_mali.so
01-02 14:46:32.268 4535-4535/com.mapbox.mapboxgl.app D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_mali.so
01-02 14:46:32.271 4535-4535/com.mapbox.mapboxgl.app D/libEGL﹕ loaded /system/lib/egl/libGLESv2_mali.so
01-02 14:46:32.275 4535-4535/com.mapbox.mapboxgl.app E/linker﹕ load_library(linker.cpp:759): library "libmaliinstr.so" not found
01-02 14:46:32.297 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ EGL Vendor: Android
01-02 14:46:32.297 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ EGL Version: 1.4 Android META-EGL
01-02 14:46:32.297 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ EGL Client APIs: OpenGL_ES
01-02 14:46:32.297 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ EGL Client Extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_EXT_create_context_robustness EGL_ANDROID_image_native_buffer
01-02 14:46:32.297 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ Found 6 configs
01-02 14:46:32.297 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ Config 0:
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Caveat: 12344
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Conformant: 5
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Color: 32
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Red: 8
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Green: 8
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Blue: 8
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Alpha: 8
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Alpha mask: 0
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Depth: 24
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Stencil: 8
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Sample buffers: 0
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Samples: 0
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ Config 1:
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Caveat: 12344
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Conformant: 5
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Color: 32
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Red: 8
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Green: 8
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Blue: 8
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Alpha: 8
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Alpha mask: 0
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Depth: 24
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Stencil: 8
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Sample buffers: 0
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Samples: 0
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ Config 2:
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Caveat: 12344
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Conformant: 5
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Color: 32
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Red: 8
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Green: 8
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Blue: 8
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Alpha: 8
01-02 14:46:32.298 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Alpha mask: 0
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Depth: 24
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Stencil: 8
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Sample buffers: 0
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Samples: 0
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ Config 3:
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Caveat: 12344
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Conformant: 5
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Color: 32
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Red: 8
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Green: 8
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Blue: 8
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Alpha: 8
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Alpha mask: 0
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Depth: 24
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Stencil: 8
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Sample buffers: 1
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Samples: 4
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ Config 4:
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Caveat: 12344
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Conformant: 5
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Color: 16
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Red: 5
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Green: 6
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Blue: 5
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Alpha: 0
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Alpha mask: 0
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Depth: 24
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Stencil: 8
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Sample buffers: 0
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Samples: 0
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ Config 5:
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Caveat: 12344
01-02 14:46:32.299 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Conformant: 5
01-02 14:46:32.300 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Color: 16
01-02 14:46:32.300 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Red: 5
01-02 14:46:32.300 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Green: 6
01-02 14:46:32.300 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Blue: 5
01-02 14:46:32.300 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Alpha: 0
01-02 14:46:32.300 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Alpha mask: 0
01-02 14:46:32.300 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Depth: 24
01-02 14:46:32.300 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Stencil: 8
01-02 14:46:32.300 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Sample buffers: 1
01-02 14:46:32.300 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ ...Samples: 4
01-02 14:46:32.300 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ Chosen config is 0
01-02 14:46:32.300 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ Chosen window format is 1
01-02 14:46:32.301 4535-4535/com.mapbox.mapboxgl.app E/﹕ appName=com.mapbox.mapboxgl.app, acAppName=com.android.cts.openglperf
01-02 14:46:32.301 4535-4535/com.mapbox.mapboxgl.app E/﹕ 0
01-02 14:46:32.301 4535-4535/com.mapbox.mapboxgl.app E/﹕ appName=com.mapbox.mapboxgl.app, acAppName=com.android.browser
01-02 14:46:32.301 4535-4535/com.mapbox.mapboxgl.app E/﹕ 0
01-02 14:46:32.440 4535-4535/com.mapbox.mapboxgl.app V/MapFragment﹕ onStart
01-02 14:46:32.440 4535-4535/com.mapbox.mapboxgl.app V/MapView﹕ onStart
01-02 14:46:32.459 4535-4535/com.mapbox.mapboxgl.app V/MapFragment﹕ onResume
01-02 14:46:32.459 4535-4535/com.mapbox.mapboxgl.app V/MapView﹕ onResume
01-02 14:46:32.481 4535-4535/com.mapbox.mapboxgl.app V/MapView﹕ ConnectivityReceiver.onReceive: action = android.net.conn.CONNECTIVITY_CHANGE
01-02 14:46:32.481 4535-4535/com.mapbox.mapboxgl.app V/MapView﹕ onConnectivityChanged: true
01-02 14:46:32.484 4535-4535/com.mapbox.mapboxgl.app V/InputMethodManager﹕ Not IME target window, ignoring
01-02 14:46:32.541 4535-4535/com.mapbox.mapboxgl.app E/﹕ appName=com.mapbox.mapboxgl.app, acAppName=com.android.cts.openglperf
01-02 14:46:32.541 4535-4535/com.mapbox.mapboxgl.app E/﹕ 0
01-02 14:46:32.542 4535-4535/com.mapbox.mapboxgl.app E/﹕ appName=com.mapbox.mapboxgl.app, acAppName=com.android.browser
01-02 14:46:32.542 4535-4535/com.mapbox.mapboxgl.app E/﹕ 0
01-02 14:46:32.546 4535-4535/com.mapbox.mapboxgl.app D/GraphicBuffer﹕ create handle(0x5cac5560) (w:720, h:1280, f:1)
01-02 14:46:32.550 4535-4535/com.mapbox.mapboxgl.app D/GraphicBuffer﹕ close handle(0x5cac5560) (w:720 h:1280 f:1)
01-02 14:46:32.555 4535-4535/com.mapbox.mapboxgl.app D/GraphicBuffer﹕ create handle(0x5cac5560) (w:720, h:1280, f:1)
01-02 14:46:32.559 4535-4535/com.mapbox.mapboxgl.app D/OpenGLRenderer﹕ Enabling debug mode 0
01-02 14:46:32.799 4535-4535/com.mapbox.mapboxgl.app I/SurfaceView﹕ Changes: creating=true format=true size=true visible=true left=true top=true mUpdateWindowNeeded=false mReportDrawNeeded=false redrawNeeded=false forceSizeChanged=true mVisible=false mRequestedVisible=true
01-02 14:46:32.800 4535-4535/com.mapbox.mapboxgl.app I/SurfaceView﹕ Cur surface: Surface(name=null, identity=-1)
01-02 14:46:32.804 4535-4562/com.mapbox.mapboxgl.app V/SurfaceView﹕ com.mapbox.mapboxgl.lib.MapView{419334e8 VFE...CL .F....ID 0,0-720,1158} got resized: w=720 h=1158, cur w=-1 h=-1
01-02 14:46:32.824 4535-4535/com.mapbox.mapboxgl.app I/SurfaceView﹕ New surface: Surface(name=null, identity=9326), vis=true, frame=Rect(0, 122 - 720, 1280)
01-02 14:46:32.825 4535-4535/com.mapbox.mapboxgl.app I/SurfaceView﹕ visibleChanged -- surfaceCreated
01-02 14:46:32.825 4535-4535/com.mapbox.mapboxgl.app V/MapView﹕ surfaceCreated
01-02 14:46:32.829 4535-4535/com.mapbox.mapboxgl.app D/GraphicBuffer﹕ create handle(0x5ca45aa8) (w:720, h:1158, f:1)
01-02 14:46:32.833 4535-4535/com.mapbox.mapboxgl.app D/GraphicBuffer﹕ close handle(0x5ca45aa8) (w:720 h:1158 f:1)
01-02 14:46:32.838 4535-4535/com.mapbox.mapboxgl.app D/GraphicBuffer﹕ create handle(0x5ca77590) (w:720, h:1158, f:1)
01-02 14:46:32.840 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ GL Vendor: ARM
01-02 14:46:32.840 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ GL Renderer: Mali-400 MP
01-02 14:46:32.840 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ GL Version: OpenGL ES 2.0
01-02 14:46:32.840 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ GL SL Version: OpenGL ES GLSL ES 1.00
01-02 14:46:32.841 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ GL Extensions: GL_EXT_debug_marker GL_OES_texture_npot GL_OES_compressed_ETC1_RGB8_texture GL_OES_standard_derivatives GL_OES_EGL_image GL_OES_depth24 GL_ARM_rgba8 GL_ARM_mali_shader_binary GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_format_BGRA8888 GL_EXT_blend_minmax GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_rgb8_rgba8 GL_EXT_multisampled_render_to_texture GL_EXT_discard_framebuffer GL_OES_get_program_binary GL_ARM_mali_program_binary GL_EXT_shader_texture_lod GL_EXT_robustness GL_OES_depth_te
01-02 14:46:32.841 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ GL Extensions: xture_cube_map
01-02 14:46:32.841 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ Using GL_OES_packed_depth_stencil.
01-02 14:46:32.841 4535-4535/com.mapbox.mapboxgl.app I/OpenGL﹕ Using GL_OES_depth24.
01-02 14:46:32.846 4535-4535/com.mapbox.mapboxgl.app I/SurfaceView﹕ surfaceChanged -- format=4 w=720 h=1158
01-02 14:46:32.846 4535-4535/com.mapbox.mapboxgl.app V/MapView﹕ surfaceChanged
01-02 14:46:32.847 4535-4535/com.mapbox.mapboxgl.app I/MapView﹕ resize 4 720 1158
01-02 14:46:32.847 4535-4535/com.mapbox.mapboxgl.app I/SurfaceView﹕ surfaceRedrawNeeded
01-02 14:46:32.847 4535-4535/com.mapbox.mapboxgl.app V/MapView﹕ surfaceRedrawNeeded
01-02 14:46:32.847 4535-4535/com.mapbox.mapboxgl.app I/SurfaceView﹕ finishedDrawing
01-02 14:46:32.850 4535-4535/com.mapbox.mapboxgl.app V/SurfaceView﹕ Layout: x=0 y=122 w=720 h=1158, frame=Rect(0, 0 - 720, 1158)
01-02 14:46:32.855 4535-4535/com.mapbox.mapboxgl.app I/SurfaceView﹕ Changes: creating=false format=false size=false visible=false left=false top=false mUpdateWindowNeeded=true mReportDrawNeeded=true redrawNeeded=false forceSizeChanged=false mVisible=true mRequestedVisible=true
01-02 14:46:32.855 4535-4535/com.mapbox.mapboxgl.app I/SurfaceView﹕ Cur surface: Surface(name=null, identity=9326)
01-02 14:46:32.867 4535-4535/com.mapbox.mapboxgl.app I/SurfaceView﹕ New surface: Surface(name=null, identity=9326), vis=true, frame=Rect(0, 122 - 720, 1280)
01-02 14:46:32.867 4535-4535/com.mapbox.mapboxgl.app I/SurfaceView﹕ surfaceRedrawNeeded
01-02 14:46:32.867 4535-4535/com.mapbox.mapboxgl.app V/MapView﹕ surfaceRedrawNeeded
01-02 14:46:32.868 4535-4535/com.mapbox.mapboxgl.app I/SurfaceView﹕ finishedDrawing
01-02 14:46:32.869 4535-4535/com.mapbox.mapboxgl.app V/SurfaceView﹕ Layout: x=0 y=122 w=720 h=1158, frame=Rect(0, 0 - 720, 1158)
01-02 14:46:33.368 4535-4535/com.mapbox.mapboxgl.app V/InputMethodManager﹕ onWindowFocus: com.mapbox.mapboxgl.lib.MapView{419334e8 VFE...CL .F....I. 0,0-720,1158} softInputMode=288 first=true flags=#1810100
01-02 14:46:33.377 4535-4535/com.mapbox.mapboxgl.app V/InputMethodManager﹕ START INPUT: com.mapbox.mapboxgl.lib.MapView{419334e8 VFE...CL .F....I. 0,0-720,1158} ic=null tba=android.view.inputmethod.EditorInfo@41981bd8 controlFlags=#105
01-02 14:46:33.416 4535-4618/com.mapbox.mapboxgl.app D/dalvikvm﹕ threadid=11: interp stack at 0xbc598000
01-02 14:46:33.476 4535-4535/com.mapbox.mapboxgl.app V/InputMethodManager﹕ Starting input: Bind result=InputBindResult{null com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME #7470}

@ljbade
Copy link
Contributor

ljbade commented Jan 2, 2015

Hmm it seems to be loading the library OK now.

Do you have the log of the crash after it loads?

@Aminebr5
Copy link
Author

Aminebr5 commented Jan 2, 2015

unnamed

i got this and after that it crash, and all i have in my Android studio logs is what i posted in my comment nothing else no errors nothing, i saw this i think that this is the problem but 'm not sure

01-02 14:46:32.275 4535-4535/com.mapbox.mapboxgl.app E/linker﹕ load_library(linker.cpp:759): library "libmaliinstr.so" not found

it's in the past comment i posted. But i didn't find the linker.cpp file nor the libmaliinstr.so file so i don't really know what else to do???

@ljbade
Copy link
Contributor

ljbade commented Jan 2, 2015

Hmm Google shows a few hits for that error but not any solutions.

What Android device do you have? What Android version and firmware/ROM are you running on the device?

@Aminebr5
Copy link
Author

Aminebr5 commented Jan 2, 2015

I have Lenovo S930 Android jelly bean 4.2.2 firmware

@ljbade ljbade added this to the Android merge milestone Jan 2, 2015
@Aminebr5
Copy link
Author

Aminebr5 commented Jan 4, 2015

Hi, i've been trying to run it in the emulator but i got those errors back, knowing that i didn't change a thing in the project since i fixed the first errors i got:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mapbox.mapboxgl.app/com.mapbox.mapboxgl.app.MainActivity}: android.view.InflateException: Binary XML file line #25: Error inflating class fragment
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
Caused by: android.view.InflateException: Binary XML file line #25: Error inflating class fragment
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:763)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at android.support.v7.app.ActionBarActivityDelegateBase.setContentView(ActionBarActivityDelegateBase.java:228)
at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:102)
at com.mapbox.mapboxgl.app.MainActivity.onCreate(MainActivity.java:74)
at android.app.Activity.performCreate(Activity.java:5933)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
            at android.app.ActivityThread.access$800(ActivityThread.java:144)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:135)
            at android.app.ActivityThread.main(ActivityThread.java:5221)
            at java.lang.reflect.Method.invoke(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:372)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
Caused by: java.lang.RuntimeException: Unable to initialize GL display.
at com.mapbox.mapboxgl.lib.NativeMapView.nativeInitializeDisplay(Native Method)
at com.mapbox.mapboxgl.lib.NativeMapView.initializeDisplay(NativeMapView.java:51)
at com.mapbox.mapboxgl.lib.MapView.onCreate(MapView.java:390)
at com.mapbox.mapboxgl.app.MapFragment.onCreateView(MapFragment.java:55)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1786)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:920)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1206)
at android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2159)
at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:297)
at android.support.v7.app.ActionBarActivity.onCreateView(ActionBarActivity.java:547)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
            at android.support.v7.app.ActionBarActivityDelegateBase.setContentView(ActionBarActivityDelegateBase.java:228)
            at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:102)
            at com.mapbox.mapboxgl.app.MainActivity.onCreate(MainActivity.java:74)
            at android.app.Activity.performCreate(Activity.java:5933)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
            at android.app.ActivityThread.access$800(ActivityThread.java:144)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:135)
            at android.app.ActivityThread.main(ActivityThread.java:5221)
            at java.lang.reflect.Method.invoke(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:372)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

@ljbade
Copy link
Contributor

ljbade commented Jan 4, 2015

@Aminebr5 You need to enable the "Use host GPU" option in the emulator settings.

@Aminebr5
Copy link
Author

Aminebr5 commented Jan 4, 2015

i got it to work on Samsung Galaxy GT-I9500 Android 4.4.2(API19) using the Style correction used in #719 , but now when i want to zoom or move the map nothing happens and there is no problems in the logs no errors, when i double-tap on the screen nothing happen it's like i didn't tap

@ljbade
Copy link
Contributor

ljbade commented Jan 4, 2015

Does it draw the map?

@Aminebr5
Copy link
Author

Aminebr5 commented Jan 4, 2015

yes it draw the map ithe GPS works also but i don't have any control on the map i can't zoom and i can't move the map i don't know what's the problem

@ljbade
Copy link
Contributor

ljbade commented Jan 4, 2015

Hmm, that is really strange.

@ljbade
Copy link
Contributor

ljbade commented Jan 4, 2015

@Aminebr5 I am going to get @bleege to test the app on his Galaxy S4 once I get a new build ready.

@Aminebr5
Copy link
Author

Aminebr5 commented Jan 5, 2015

@ljbade if you want i can test it on my Galaxy S4 also

@Aminebr5
Copy link
Author

Aminebr5 commented Jan 5, 2015

the Zoom and control is working you had the GestureDetectorCompat as a comment is the MapView class in lib, but when i zoom in the brigth map it crash and i got this errors:

01-05 11:27:49.836 23944-24145/com.mapbox.mapboxgl.app A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 24145 (ox.mapboxgl.app)
01-05 11:27:49.911 23944-24145/com.mapbox.mapboxgl.app E/Crash﹕ Map::run() crash:
signal 11 (Address not mapped to object) at address 0

@bleege
Copy link
Contributor

bleege commented Jan 7, 2015

I just installed the build that @ljbade produced on a Samsung Galaxy S4 and was able to zoom and move the map as expected. The only (potential) issue that I'm having is that I don't see a location icon when I press the Find My Location button.

Perhaps the build that I've got is using code later than when you tried @Aminebr5?

@Aminebr5
Copy link
Author

Aminebr5 commented Jan 7, 2015

@bleege, i downloaded the project in about December the 29th, 2014 so i think it's the latest version of the project that being said, i got the zoom and control to work, the GestureDetectorCompat was between in /* / as a comment in the MapView class so i took off the / */ and it's working but as i said in my last comment, when i zoom in the Brigth map it crash and i got the error:

01-05 11:27:49.836 23944-24145/com.mapbox.mapboxgl.app A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 24145 (ox.mapboxgl.app)
01-05 11:27:49.911 23944-24145/com.mapbox.mapboxgl.app E/Crash﹕ Map::run() crash:
signal 11 (Address not mapped to object) at address 0

when i looked up the SIGSEGV i found that it's an error due to the native code, but no further information.

@ljbade
Copy link
Contributor

ljbade commented Jan 7, 2015

@Aminebr5 can you try this build on your phone: https://www.dropbox.com/s/rg13hvsecbolwoz/app-release.apk?dl=0

This is the same build that @bleege tested.

@Aminebr5
Copy link
Author

Aminebr5 commented Jan 8, 2015

@ljbade it's working even on my Lenovo, even me i made my version to work but the only difference is that i get the style .JSON files from the server as #719 did but i see that you got it from the local style folder what changes you did to get it??

@ljbade
Copy link
Contributor

ljbade commented Jan 8, 2015

Make sure you run git submodules update in the mapbox-gl-repo to pull in the git repository that holds the styles.

Then you need to run make android to ensure the styles get copied into the Android Studio project.

@Aminebr5
Copy link
Author

Aminebr5 commented Jan 8, 2015

nop, still not working i think that the URL for the style .JSON files in the code is wrong
mMapFragment.getMap().setStyleUrl("asset://styles/styles/bright-v6.json");
should i change it to the location of my JSON files in the project?

@ljbade
Copy link
Contributor

ljbade commented Jan 8, 2015

No that is a special URL that tells the framework to load the styles from Android's AssetManager, that URL is correct.

@ljbade
Copy link
Contributor

ljbade commented Jan 9, 2015

I judst realised you also need to run git submodule init before git submodule update

@ljbade
Copy link
Contributor

ljbade commented Jan 13, 2015

@Aminebr5 Did you have any more success with git submodule init and git submodule update?

@ljbade
Copy link
Contributor

ljbade commented Jan 19, 2015

Since I haven't heard an update on this I am going to close it.

Feel free to reopen if you wish to continue on this.

@ljbade ljbade closed this as completed Jan 19, 2015
@Aminebr5
Copy link
Author

Hello, sorry for the delay i had some issues and Congrats for the merge, i've tryed to run the last version but now i back to the first error that i posted in here the application get compiled successfully when i run Make android, but when i test it on the device it crash without starting, i runned it also in Android studio it's where i got the same error i first posted, did any one have any solution for this, thank you in advance

@ljbade
Copy link
Contributor

ljbade commented Feb 10, 2015

@Aminebr5 we changed the way the access token is set. You now need to set the MAPBOX_ACCESS_TOKEN environment variable. Are you on OSX or Linux?

From the readme:

For Android, gradle will take the value of MAPBOX_ACCESS_TOKEN and save it to android/java/app/src/main/res/raw/token.txt where the app will read it from.

@Aminebr5
Copy link
Author

I'm on Linux, for the token i created a token.txt and i pasted the token in it, i saw that the gradle will take the value of the token now, but what should i do now (should i creat a token.txt file or not)

@ljbade
Copy link
Contributor

ljbade commented Feb 10, 2015

You need to set MAPBOX_ACCESS_TOKEN variable with something like export MAPBOX_ACCESS_TOKEN =pk.access_token_here

I usually set it by appending export MAPBOX_ACCESS_TOKEN =pk.access_token_here to ~/.bashrc

@Aminebr5
Copy link
Author

still not working crashing on startup and still getting same error as the one i posted in this issue

@ljbade
Copy link
Contributor

ljbade commented Feb 10, 2015

@Aminebr5 I just realised I made a typo above with a space before the =. Can you retry it like above (now fixed) with no space before the =.

@Aminebr5
Copy link
Author

@ljbade i've tryed the gradle bring the token from the environment variable but same error, i don't understand i got the token.txt file created but it crash with the same error as in the first post which was because of the token at the first place, you have any idea about the problem?

@Aminebr5
Copy link
Author

@ljbade i've tryed the version that you just merged today, still same error and crash on startup

@ljbade
Copy link
Contributor

ljbade commented Jun 9, 2015

Haven't seen this for a long time

@ljbade ljbade closed this as completed Jun 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android crash
Projects
None yet
Development

No branches or pull requests

4 participants