android error java.lang.unsatisfiedLinkError: 无法加载 stlport_shared: findLibrary 返回空



我在使用 greendao 时遇到错误,并在 gradle 文件中正确导入了 sqlcipher 的依赖项,我还在其中导入了armeabi,armeabi-v7a和x86本机库,但无法弄清楚如何添加mips,因为我找不到它并且我的模拟器是mips系统映像 所以这个错误来了我想是的

请帮帮我

java.lang.UnsatisfiedLinkError: Couldn't load stlport_shared: findLibrary returned null
                                                             at java.lang.Runtime.loadLibrary(Runtime.java:365)
                                                             at java.lang.System.loadLibrary(System.java:535)
                                                             at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:173)
                                                             at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:169)
                                                             at org.greenrobot.greendao.database.DatabaseOpenHelper$EncryptedHelper.<init>(DatabaseOpenHelper.java:173)
                                                             at org.greenrobot.greendao.database.DatabaseOpenHelper.checkEncryptedHelper(DatabaseOpenHelper.java:120)
                                                             at org.greenrobot.greendao.database.DatabaseOpenHelper.getEncryptedWritableDb(DatabaseOpenHelper.java:132)
                                                             at com.sqltest.App.onCreate(App.java:19)
                                                             at com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:369)
                                                             at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:999)
                                                             at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4151)
                                                             at android.app.ActivityThread.access$1300(ActivityThread.java:130)
                                                             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1255)
                                                             at android.os.Handler.dispatchMessage(Handler.java:99)
                                                             at android.os.Looper.loop(Looper.java:137)
                                                             at android.app.ActivityThread.main(ActivityThread.java:4745)
                                                             at java.lang.reflect.Method.invokeNative(Native Method)
                                                             at java.lang.reflect.Method.invoke(Method.java:511)
                                                             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
                                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
                                                             at dalvik.system.NativeStart.main(Native Method)

应用.java

public class App extends Application {
/** A flag to show how easily you can switch from standard SQLite to the encrypted SQLCipher. */
public static final boolean ENCRYPTED = true;
private DaoSession daoSession;
@Override
public void onCreate() {
    super.onCreate();
    DevOpenHelper helper = new DevOpenHelper(this, ENCRYPTED ? "notes-db-encrypted" : "notes-db");
    Database db = ENCRYPTED ? helper.getEncryptedWritableDb("super-secret") : helper.getWritableDb();
    daoSession = new DaoMaster(db).newSession();
}
public DaoSession getDaoSession() {
    return daoSession;
 }
}

错误来了

Database db = ENCRYPTED ? helper.getEncryptedWritableDb("super-secret") : helper.getWritableDb();

请仔细检查绿道依赖项的版本。它必须是 3.0.1。

相关内容

  • 没有找到相关文章

最新更新