inflating class com.glmapview.GLMapView
elluminati10 opened this issue · comments
Hello.
I am getting inflating class error when create GLMapView.
Binary XML file line #9: Error inflating class com.glmapview.GLMapView
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'com.glmapview.GLNativeObject$Reference com.glmapview.GLNativeObjectPool.addReference(java.lang.Object, long, com.glmapview.GLNativeObject$Type)' on a null object reference
Hi.
Looks like you did not initialize GLMap before start using it.To do this call GLMapManager.initialize(context, api_key, null);
. Best place to do it is onCreate
method in your Application
class.
Thank you for response.