Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Problem in Using flurry — Gideros Forum

Problem in Using flurry

e2000e2000 Member
edited July 2016 in General questions
Hi, i want to use flurry in my android studio project.

i followed :
Download Flurry SDK and include it in your project.

Put libflurry.so files to according directories of your exported Gideros project (libs/armeabi and libs/armeabi-v7a)

Put Flurry.java inside "src/com/giderosmobile/android"

Open your main activity in "src/com/giderosmobile/android"

Add "System.loadLibrary("flurry");"

Add Flurry class inside externalClasses using "com.giderosmobile.android.Flurry" string.

now when i run the app on android device, i get force stop and this error :
java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_relocate(linker.cpp:987): cannot locate symbol "lua_getfield" referenced by "libflurry.so"...
Help me please , Thanks!

Comments

  • hgy29hgy29 Maintainer
    Somehow flurry miss liblua.so when loading, did you add your loadLibrary after loading Lua library ? Ideally you should add your load at the end of all System.loadLibrary existing calls.

    Likes: simwhi

    +1 -1 (+1 / -0 )Share on Facebook
  • e2000e2000 Member
    edited July 2016
    Yes, my flurry loadLibrary was added after loading Lua library :
    System.loadLibrary("gvfs");
    System.loadLibrary("lua");
    System.loadLibrary("gideros");

    System.loadLibrary("luasocket");
    System.loadLibrary("lfs");
    System.loadLibrary("lsqlite3");
    System.loadLibrary("json");
    System.loadLibrary("bitop");
    System.loadLibrary("iab");
    System.loadLibrary("flurry");
    what i do now ?
  • hgy29hgy29 Maintainer
    is your libflurry.so alongside liblua.so, in the same directory ?
  • e2000e2000 Member
    edited July 2016
    yes, there are in armeabi-v7a and armeabi folder, together
  • SinisterSoftSinisterSoft Maintainer
    (and also the x86 .so ?)

    Likes: hgy29

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+1 / -0 )Share on Facebook
  • hgy29hgy29 Maintainer
    Ok, I've asked everything that came to my mind, I give up... Anyone else have an idea ?
  • SinisterSoftSinisterSoft Maintainer
    I use flurry and have the latest Gideros - no problems.

    I use FlurryAnalytics-5.5.0.jar (in libs)

    I have the flurry plugin in src>com>android>plugins>flurry>GFlurry.java

    I have the libs in libs (armeabi, armeabi-v7a, x86)

    Here is the beginning of the activity...
    package com.giderosmobile.android;
     
    import java.lang.reflect.Method;
     
    import javax.microedition.khronos.egl.EGLConfig;
    import javax.microedition.khronos.opengles.GL10;
     
    import android.annotation.TargetApi;
    import android.app.Activity;
    import android.content.Context;
    import android.content.Intent;
    import android.opengl.GLSurfaceView;
    import android.os.Build;
    import android.os.Bundle;
    import android.view.KeyEvent;
    import android.view.MotionEvent;
    import android.view.View;
    import android.view.View.OnTouchListener;
     
    import com.giderosmobile.android.plugins.controller.GControllerDefault;
    import com.giderosmobile.android.player.*;
     
    public class CalypsoActivity extends Activity implements OnTouchListener
    {
    	static
    	{
    		System.loadLibrary("gvfs");
    		System.loadLibrary("lua");
    		System.loadLibrary("gideros");
     
    		System.loadLibrary("luasocket");
    		System.loadLibrary("lfs");
    		System.loadLibrary("lsqlite3");
    		System.loadLibrary("json");
    		System.loadLibrary("flurry");
    		System.loadLibrary("ads");
    		System.loadLibrary("controller");
    	}
     
    	static private String[] externalClasses = {
    		"com.giderosmobile.android.plugins.flurry.GFlurry",
    		"com.giderosmobile.android.plugins.ads.Ads",
    		"com.giderosmobile.android.plugins.controller.GControllerManager",
    	};
     
    	private GLSurfaceView mGLView;
     
    	private boolean mHasFocus = false;
    	private boolean mPlaying = false;
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • SinisterSoftSinisterSoft Maintainer
    edited July 2016
    This is where the problem may be?
    "com.giderosmobile.android.plugins.flurry.GFlurry",
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • e2000e2000 Member
    (and also the x86 .so ?)
    I'm using gideros plugin from here :
    github.com/ar2rsawseen/GiderosFlurryAndroid

    and there is no x86 .so for flurry in it.
  • hgy29hgy29 Maintainer
    Accepted Answer
    Why don't you use the one in 'All Plugins' folder in your gideros installation ?
  • e2000e2000 Member
    Why don't you use the one in 'All Plugins' folder in your gideros installation ?
    :)) , Yes , that was a silly problem. Thanks.
    +1 -1 (+3 / -0 )Share on Facebook
Sign In or Register to comment.