Forums: 

hi I am using GN_Music_SDK.jar ( in android app) file in my libs folder  and when i run te app i got following errors . i'll post my code and errors
public class MainActivity extends Activity {
    private GNConfig config;
    private TextView song_info;
 
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
 
        try {//15107328-58B83FDB921CA5AFDD161404C26D6FFF
            //16072960-FF9781ED0708966A31B940EEA9F5259B
            config = GNConfig.init("16072960-FF9781ED0708966A31B940EEA9F5259B",this.getApplicationContext());
 
            RecognizeFromMic task = new RecognizeFromMic();
            task.doFingerprint();
        } catch (Exception e) {
            // TODO Auto-generated catch block
            Log.e("Exception", e.toString());
        }
    }
 
 
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
 
    class RecognizeFromMic implements GNSearchResultReady {
        public void doFingerprint(){
            GNOperations.recognizeMIDStreamFromMic(this,config);
        }
        public void GNResultReady(GNSearchResult result) {
            try {
                song_info = (TextView) findViewById(R.id.song_info);
                if (result.isFingerprintSearchNoMatchStatus()) {
                    song_info.setText("no match");
                } else {
                    GNSearchResponse response = result.getBestResponse();
                    song_info.setText(response.getTrackTitle() + " by " + response.getArtist());
                }
                RecognizeFromMic task = new RecognizeFromMic();
                task.doFingerprint();
            } catch (Exception e) {
                // TODO Auto-generated catch block
                Log.e("Exceptionssss", e.toString());
            }
        }
    }
}

 

11-01 14:15:44.318: E/AndroidRuntime(17994): Process: com.example.gracenote, PID: 17994

11-01 14:15:44.318: E/AndroidRuntime(17994): java.lang.UnsatisfiedLinkError: Couldn't load gnlocal_lookup.3.2.1.3 from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.gracenote-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.gracenote-2, /vendor/lib, /system/lib]]]: findLibrary returned null

11-01 14:15:44.318: E/AndroidRuntime(17994): at java.lang.Runtime.loadLibrary(Runtime.java:358)

11-01 14:15:44.318: E/AndroidRuntime(17994): at java.lang.System.loadLibrary(System.java:526)

11-01 14:15:44.318: E/AndroidRuntime(17994): at com.gracenote.mmid.MobileSDK.GNLocalLookUp.(GNLocalLookUp.java:93)

11-01 14:15:44.318: E/AndroidRuntime(17994): at com.gracenote.mmid.MobileSDK.GNConfig.(GNConfig.java:402)

11-01 14:15:44.318: E/AndroidRuntime(17994): at com.gracenote.mmid.MobileSDK.GNConfig.init(GNConfig.java:551)

 

me too any progress?

what's the solution?

 

Forum Discussions