Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
need help including googleplay services: exception UnsatisfiedLinkError from Eclipse — Gideros Forum

need help including googleplay services: exception UnsatisfiedLinkError from Eclipse

piepie Member
edited November 2015 in General questions
Hi,
I am still using gideros 2015.09 and I am trying to include google play services plugin but something fails (I am quite sure it's my fault, but I followed the instructions and the files provided in gideros root dir/All plugins/googleplay).

My app already had google-play-services_lib (taken from All Plugins\ads\dependency) included as it is required by ads interface (which was working).

At the end of googleplay install instructions I tried compiling my apk again but it fails:

debugging from eclipse:
Thread [<1> main] (Suspended (exception UnsatisfiedLinkError))	
	<VM does not provide monitor information>	
	Runtime.loadLibrary(String, ClassLoader) line: 365	
	System.loadLibrary(String) line: 535	
	myActivity.<clinit>() line: 32	
	Class.newInstanceImpl() line: not available [native method]	
	Class.newInstance() line: 1319	
	Instrumentation.newActivity(ClassLoader, String, Intent) line: 1068	
	ActivityThread.performLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 2025	
	ActivityThread.handleLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 2135	
	ActivityThread.access$700(ActivityThread, ActivityThread$ActivityClientRecord, Intent) line: 140	
	ActivityThread$H.handleMessage(Message) line: 1237	
	ActivityThread$H(Handler).dispatchMessage(Message) line: 99	
	Looper.loop() line: 137	
	ActivityThread.main(String[]) line: 4921	
	Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]	
	Method.invoke(Object, Object...) line: 511	
	ZygoteInit$MethodAndArgsCaller.run() line: 1027	
	ZygoteInit.main(String[]) line: 794	
	NativeStart.main(String[]) line: not available [native method]


I think it may come from line 32 of my activity
System.loadLibrary("gms");

this is the relevant portion of my activity file
{
		System.loadLibrary("gvfs");
		System.loadLibrary("lua");
		System.loadLibrary("gideros");
 
 
		System.loadLibrary("ads");
		System.loadLibrary("gms"); --this is myActivity line 32
 
		System.loadLibrary("luasocket");
		System.loadLibrary("lfs");
		System.loadLibrary("lsqlite3");
		System.loadLibrary("json");
		System.loadLibrary("bitop");
	}
 
	static private String[] externalClasses = {
		 "com.giderosmobile.android.plugins.ads.Ads",
		 "com.giderosmobile.android.plugins.googleplaygame.GGooglePlay"
	};

But I get also this error from com.google.android.gms , so it is loaded... no?
Could not find class 'android.telephony.CellInfoCdma', referenced from method com.google.android.gms.herrevad.h.m.c
any help is appreciated.
What should I try/check/update/enable?

[EDIT: update "gms" to "googleplay" in System.loadLibrary("gms"); and it seems to be ok. ]

Thank you :)

Comments

  • ar2rsawseenar2rsawseen Maintainer
    Accepted Answer
    Hello,
    how is the .so file called for google play services plugin?
  • piepie Member
    edited November 2015
    Hi,
    in each subdir of All Plugins\googleplay\bin\Android\libs
    libgoogleplay.so
    [UPDATE]
    I found this post
    http://giderosmobile.com/forum/discussion/comment/45543#Comment_45543
    and updated "gms" to "googleplay" in System.loadLibrary("gms"); and it seems to be ok.

    [UPDATE2]
    The app starts, now I have to test if google play services is ok (never used that before), however eclipse debugger continue to suspend app on another exception:
    Thread [<1> main] (Suspended (exception ClassNotFoundException))	
    	<VM does not provide monitor information>	
    	PathClassLoader(BaseDexClassLoader).findClass(String) line: 61	
    	PathClassLoader(ClassLoader).loadClass(String, boolean) line: 501	
    	PathClassLoader(ClassLoader).loadClass(String) line: 461	
    	GameHelper.createApiClientBuilder() line: 277	
    	GameHelper.setup(GameHelper$GameHelperListener) line: 322	
    	GGooglePlay$2.run() line: 200	
    	Handler.handleCallback(Message) line: 615	
    	Handler.dispatchMessage(Message) line: 92	
    	Looper.loop() line: 137	
    	ActivityThread.main(String[]) line: 4921	
    	Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]	
    	Method.invoke(Object, Object...) line: 511	
    	ZygoteInit$MethodAndArgsCaller.run() line: 1027	
    	ZygoteInit.main(String[]) line: 794	
    	NativeStart.main(String[]) line: not available [native method]
    Thank you
  • It seems that at least login and leaderboards base functionalities are working. I am still wondering why the debugger show those ClassNotFoundException, hope it won't be a problem later... :)
Sign In or Register to comment.