Adding MuseLibrary Android Studio


#1

Hi Experts, I am creating a new Android Studio project and ran into issues. I followed the instruction entirely on http://developer.choosemuse.com/android/making-your-own-application but it doesn’t work. I hope someone could help point me the right direction.

I downloaded Muse 6.0.2 on windows
Created new Android application
Copied armeabi-v7a to D:\Development\AndroidStudio\Musetest\app\src\main\jniLibs
Copied libmuse_android.jar to D:\Development\AndroidStudio\Musetest\app\libs
Added compile files(‘libs/libmuse_android.jar’) to the module:app gradle.

Added these to the mainactivity

private MuseManagerAndroid manager;
manager = MuseManagerAndroid.getInstance();
manager.setContext(this);

Once the app launches, it crashes with this error.

V/MUSE: Failed to load libmuse_android.so. Make sure the jni symbols are accessible somehow.
E/art: No implementation found for com.choosemuse.libmuse.LogManager com.choosemuse.libmuse.LogManager.instance() (tried Java_com_choosemuse_libmuse_LogManager_instance and Java_com_choosemuse_libmuse_LogManager_instance__)
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.zhijie.musetest, PID: 6536
java.lang.UnsatisfiedLinkError: No implementation found for com.choosemuse.libmuse.LogManager com.choosemuse.libmuse.LogManager.instance() (tried Java_com_choosemuse_libmuse_LogManager_instance and Java_com_choosemuse_libmuse_LogManager_instance__)
at com.choosemuse.libmuse.LogManager.instance(Native Method)
at com.choosemuse.libmuse.MuseManagerAndroid.(MuseManagerAndroid.java:91)
at com.choosemuse.libmuse.MuseManagerAndroid.getInstance(MuseManagerAndroid.java:82)
at com.zhijie.musetest.MainActivity.onCreate(MainActivity.java:22)
at android.app.Activity.performCreate(Activity.java:6757)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2703)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2811)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1528)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6316)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
Application terminated.

I hope someone could help point me to the right direction! Thank you!


#2

Any leads currently? I encountered the same problem after updating android studio. It was working very fine before. Now it’s the same error with all app versions.


#3

java.lang.UnsatisfiedLinkError: No implementation found for com.choosemuse.libmuse.LogManager com.choosemuse.libmuse.LogManager.instance() (tried Java_com_choosemuse_libmuse_LogManager_instance and Java_com_choosemuse_libmuse_LogManager_instance__)
at com.choosemuse.libmuse.LogManager.instance(Native Method)
at com.choosemuse.libmuse.MuseManagerAndroid.(MuseManagerAndroid.java:91)
at com.choosemuse.libmuse.MuseManagerAndroid.getInstance(MuseManagerAndroid.java:82)

.so and .jar files are as suggested in the This is the full version of the error, I am encountering. Would love to have help from the Muse Team.