Forums: 

I have download official demo and its work fine in seperate project but when i am trying to integrate same in my project i am getting following errors

WARNING: Could not load libgabi++_shared.soWARNING:

Could not load libgnsdk_java_marshal.2.4.1.sojava.lang.

UnsatisfiedLinkError: No implementation found for void com.gracenote.gnsdk.gnsdk_javaJNI.swig_module_init() 

 

Even i have added all .so file in jniLibs folder,

 

Please suggest me what could be the issue.

Hello.

I don't know if you have fix your problem, but if is useful yet, what I did to fix the same problem was:

1. Download the lastest version of GNDK, currently while I type this,is 1.3.1.5172.

2. Extract the files.

3. Once you have extracted the content of zip files, copy the libraries from "gn-mobile-android-1.3.1.5172/preload/" to your corresponding folders in your project, I mean, libs folder to your libs folder, and jniLibs to your jniLibs.

4. Be sure to initialize correctly the API in your code, I did in this way(I did in static method because I initialized the API from splash screen, then I use in my main activity):

    static void initializeAPI(){
        new Thread(new Runnable() {
            @Override
            public void run() {

                //We initialize the necessary objects for using the GNSDK API in a different thread for not blocking the UI
                try {
                    gnManager =  new GnManager(context,gnsdkLicenseString, GnLicenseInputMode.kLicenseInputModeString);
                    gnUser = new GnUser(new GnUserStore(context),gnsdkClientId,gnsdkClientTag,appString);
                    gnLocale = new GnLocale(GnLocaleGroup.kLocaleGroupMusic, GnLanguage.kLanguageSpanish, GnRegion.kRegionGlobal, GnDescriptor.kDescriptorDetailed,gnUser);
                    gnLocale.setGroupDefault();
                    apiInitialized = true;

                    //This handler can update UI, getting the main looper first
                    new Handler(Looper.getMainLooper()).post(new Runnable() {
                        @Override
                        public void run() {
                            Toast toast = Toast.makeText(context,"API de reconocimiento inicializada.",Toast.LENGTH_SHORT);
                            toast.setGravity(Gravity.CENTER,0,0);
                            toast.show();
                        }
                    });

                } catch (GnException e) {
                    e.printStackTrace();
                }
            }
        }).start();
    }

5. Clean your project.

6. Finally try to run again your project.

 

Hope this helps.

http://ralive.de/19742

http://wntdco.mx/62426

http://c.or.at/49294

http://jnl.io/89068

http://c.or.at/86153

http://goto.iamaws.com/42648

http://go.fireontherim.com/32353

https://xxs.yt/84840

http://tropaadet.dk/90776

http://goto.iamaws.com/33613

http://go.fireontherim.com/51521

http://www.abcagency.se/63073

http://www.lookweb.it/56769

http://corta.co/65041

http://www.abcagency.se/50957

http://www.xn--277c.com/60764

http://yourls.site/30590

http://perkele.ovh/35503

https://xxs.yt/95859

https://arill.us/51354

http://webhop.se/14663

http://yourls.site/40591

http://ralive.de/79840

http://www.short4free.us/52528

http://go.fireontherim.com/73288

http://www.vkvi.net/20001

http://rih.co/32126

http://freest.at/61057

https://xxs.yt/49608

http://yourls.site/80441

http://valeriemace.co.uk/37993

http://www.short4free.us/80758

http://www.short4free.us/98341

http://jnl.io/52051

http://rih.co/21627

https://e13.co/80872

http://freest.at/56379

http://www.lookweb.it/80101

http://rih.co/55937

https://aaa.moda/91951

http://awalsh.com/45038

http://www.short4free.us/19537

http://c.or.at/80243

https://e13.co/17921

http://999.sh/24484

http://yourls.site/55370

http://www.abcagency.se/35001

http://www.short4free.us/61516

https://arill.us/85180

https://aaa.moda/56851

http://rih.co/27924

http://ralive.de/56731

http://yourls.site/70967

http://www.short4free.us/13341

http://www.xn--277c.com/19358

http://goto.iamaws.com/85156

https://arill.us/96580

https://aaa.moda/27336

https://atho.me/3T9Z

http://awalsh.com/60430

http://www.abcagency.se/81408

http://www.short4free.us/46593

https://lil.ink/29610

https://aaa.moda/75361

http://corta.co/73457

https://atho.me/3T9L

http://www.short4free.us/10069

https://e13.co/36275

http://www.xn--277c.com/83982

http://ralive.de/35644

https://atho.me/3SOj

http://freest.at/15537

http://www.abcagency.se/70506

http://goto.iamaws.com/92847

http://webhop.se/63011

http://www.lookweb.it/73332

http://ralive.de/77409

https://xxs.yt/72176

https://atho.me/3SPU

http://www.short4free.us/56527

http://tropaadet.dk/85913

http://webhop.se/15049

https://aaa.moda/36326

https://aaa.moda/89139

http://tans.me/69110

https://aaa.moda/93003

http://www.vkvi.net/74628

http://awalsh.com/68879

http://tans.me/13053

http://goto.iamaws.com/10054

http://ralive.de/66752

https://aaa.moda/39654

http://tropaadet.dk/28280

https://e13.co/46176

http://freest.at/44167

http://perkele.ovh/38936

https://lil.ink/57626

https://aaa.moda/19015

http://yourls.site/31165

https://arill.us/83561

http://www.xn--277c.com/98980

http://999.sh/42783

http://tans.me/64342