我有一个最近停止在 Android 中运行的 Steroids 应用程序。我遇到了一个cloud-resources.js
在 iOS 和 Android 上都找不到的错误,但似乎只有 Android 正在尝试执行 404 响应 HTML,我认为这会破坏应用程序中的其余 JavaScript。我在浏览器检查器中遇到的错误是:
所以我按照教程让沙盒数据库运行起来,但它在我的应用程序中不起作用。(我设法让它在一个新的空类固醇应用程序中工作,该应用程序以相同的 404 错误开始,但不是这个已经完成大量开发工作的应用程序)。我在终端收到的消息是:
Jasons-MacBook-Pro:v3 Jason$ steroids data init --debug
[DEBUG] Thu May 12 2016 14:18:01 GMT+0100 (BST) requiring /Users/Jason/.nvm/versions/node/v0.12.14/lib/node_modules/steroids/package.json
[DEBUG] Thu May 12 2016 14:18:01 GMT+0100 (BST) package.json#version: 4.1.23
[DEBUG] Thu May 12 2016 14:18:01 GMT+0100 (BST) Updater: Looking for update: https://updates.appgyver.com/v1/steroids/latest.json?os=Darwin&version=4.1.23&from=data&user_id=21762&ionic=false&cordova=false
[DEBUG] Thu May 12 2016 14:18:01 GMT+0100 (BST) DATA: Initializing data for project
[DEBUG] Thu May 12 2016 14:18:01 GMT+0100 (BST) SANDBOXDB: Initializing Sandbox DB
[DEBUG] Thu May 12 2016 14:18:01 GMT+0100 (BST) SANDBOXDB: Reading configuration from file /Users/Jason/.Trash/earlystimulus-native.dev/v3/config/sandboxdb.yaml
[DEBUG] Thu May 12 2016 14:18:01 GMT+0100 (BST) SANDBOXDB: Configuration file /Users/Jason/.Trash/earlystimulus-native.dev/v3/config/sandboxdb.yaml was missing
[DEBUG] Thu May 12 2016 14:18:01 GMT+0100 (BST) SANDBOXDB: Sandbox DB not created, creating a new one.
[DEBUG] Thu May 12 2016 14:18:01 GMT+0100 (BST) SANDBOXDB: Creating Sandbox DB
[DEBUG] Thu May 12 2016 14:18:01 GMT+0100 (BST) SANDBOXDB: Provisioning Sandbox DB
[DEBUG] Thu May 12 2016 14:18:01 GMT+0100 (BST) SANDBOXDB: POSTing data: {"appId":11905} to path: /v1/credentials/provision
[DEBUG] Thu May 12 2016 14:18:01 GMT+0100 (BST) Updater: updates.appgyver.com says that the latest version is 4.1.22
[DEBUG] Thu May 12 2016 14:18:10 GMT+0100 (BST) SANDBOXDB: Provisioning Sandbox DB returned failure: [object Object]
Steroids Error
Debug Log:
Thu May 12 2016 14:18:01 GMT+0100 (BST) requiring /Users/Jason/.nvm/versions/node/v0.12.14/lib/node_modules/steroids/package.json
Thu May 12 2016 14:18:01 GMT+0100 (BST) package.json#version: 4.1.23
Thu May 12 2016 14:18:01 GMT+0100 (BST) Updater: Looking for update: https://updates.appgyver.com/v1/steroids/latest.json?os=Darwin&version=4.1.23&from=data&user_id=21762&ionic=false&cordova=false
Thu May 12 2016 14:18:01 GMT+0100 (BST) DATA: Initializing data for project
Thu May 12 2016 14:18:01 GMT+0100 (BST) SANDBOXDB: Initializing Sandbox DB
Thu May 12 2016 14:18:01 GMT+0100 (BST) SANDBOXDB: Reading configuration from file /Users/Jason/.Trash/earlystimulus-native.dev/v3/config/sandboxdb.yaml
Thu May 12 2016 14:18:01 GMT+0100 (BST) SANDBOXDB: Configuration file /Users/Jason/.Trash/earlystimulus-native.dev/v3/config/sandboxdb.yaml was missing
Thu May 12 2016 14:18:01 GMT+0100 (BST) SANDBOXDB: Sandbox DB not created, creating a new one.
Thu May 12 2016 14:18:01 GMT+0100 (BST) SANDBOXDB: Creating Sandbox DB
Thu May 12 2016 14:18:01 GMT+0100 (BST) SANDBOXDB: Provisioning Sandbox DB
Thu May 12 2016 14:18:01 GMT+0100 (BST) SANDBOXDB: POSTing data: {"appId":11905} to path: /v1/credentials/provision
Thu May 12 2016 14:18:01 GMT+0100 (BST) Updater: updates.appgyver.com says that the latest version is 4.1.22
Thu May 12 2016 14:18:10 GMT+0100 (BST) SANDBOXDB: Provisioning Sandbox DB returned failure: [object Object]
Error with: steroids data
ProvisionError
at Request._callback (/Users/Jason/.nvm/versions/node/v0.12.14/lib/node_modules/steroids/src/steroids/data/SandboxDB.coffee:147:27)
at Request.self.callback (/Users/Jason/.nvm/versions/node/v0.12.14/lib/node_modules/steroids/node_modules/request/request.js:344:22)
at Request.emit (events.js:110:17)
at Request.<anonymous> (/Users/Jason/.nvm/versions/node/v0.12.14/lib/node_modules/steroids/node_modules/request/request.js:1239:14)
at Request.emit (events.js:129:20)
at IncomingMessage.<anonymous> (/Users/Jason/.nvm/versions/node/v0.12.14/lib/node_modules/steroids/node_modules/request/request.js:1187:12)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickDomainCallback (node.js:381:11)
Runtime information:
platform: darwin node path: /Users/Jason/.nvm/versions/node/v0.12.14/bin/node
arch: x64 node version: v0.12.14
cwd: /Users/Jason/.Trash/earlystimulus-native.dev/v3
Please send the above output to contact@appgyver.com
(Also if possible, re-run the same command with --debug and please send that output too)
Jasons-MacBook-Pro:v3 Jason$
所以问题是,如何让我的应用在 Android 上运行?
任何帮助将不胜感激,TIA!
我正在使用 Steroids v4.1.23、节点 0.12.14 和 NPM 2.15.1。