我想將我的 ionic 應(yīng)用程序與數(shù)據(jù)庫相關(guān)聯(lián),但出現(xiàn)了一些錯(cuò)誤。我正在使用 google chrome DevTools 在 android 設(shè)備中運(yùn)行該應(yīng)用程序,以查看背后發(fā)生了什么??纯?createDatabase() 函數(shù)和我得到的錯(cuò)誤。createDatabase() { this.plt.ready().then(() => { if (this.plt.is('cordova')) { this.sqlite = new SQLite(); this.sqlite.create({ name: 'ocp_database_fuits.db', location: 'default' }).then((db: SQLiteObject) => { this.database = db; this.createTables(); }).catch(e => { console.log(e); }); } }); }打開數(shù)據(jù)庫:ocp_database_fuits.dbSQLitePlugin.js:197 打開數(shù)據(jù)庫:ocp_database_fuits.db失敗,中止任何掛起的事務(wù) main.js:686 錯(cuò)誤:無法打開數(shù)據(jù)庫 at newSQLError (SQLitePlugin.js:26) at SQLitePlugin.js:199 at Object.callbackFromNative (cordova.js:290) at <anonymous>:1:9
離子 SQLite ; 無法打開數(shù)據(jù)庫
蕪湖不蕪
2021-08-20 19:06:20