Cant get rid of this error. I'm trying to build a mobile first app using cordova. Error: You must be in a MobileFirst project to execute this command
Cant get rid of this error. I'm trying to build a mobile first app using cordova. Error: You must be in a MobileFirst project to execute this command
似乎无法遵循使用 Mobile first 和 cordova 构建应用程序的教程。
我使用 mfp cordova create 创建了一个应用程序并将其命名为 Idealaketest。
输入应用名称:Idealaketest
输入包裹ID:com.ibm.Idealaketest
已完成以下代码。
请帮助解决方法或 link 到具有适当 tuts 的页面。
我现在正在关注这个。
D:\Mobilefirst_workspaces\workspace3>mfp cordova create
? Enter name of app: Idealaketest
? Enter the package ID: com.ibm.Idealaketest
? Enter the app version: 1.0.0
? Select platforms to be supported by your app: android
? The following plugins will be automatically added to your app:
cordova-plugin-mfp
org.apache.cordova.device
org.apache.cordova.dialogs
org.apache.cordova.geolocation
org.apache.cordova.globalization
org.apache.cordova.inappbrowser
org.apache.cordova.network-information
Please press enter to continue...
? Select additional plugins you would like to add:
? Enter a path to an app template to be added: cordova-hello-world-mfp
Embedded Cordova Command: cordova create "Idealaketest" "com.ibm.Idealaketest" "
Idealaketest" --copy-from="C:\Program Files\IBM\MobileFirst-CLI\mobilefirst-cli\
node_modules\cordovacmd\cordova\templates\cordova-hello-world-mfp"
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: com.ibm.Idealaketest
Name: Idealaketest
Android target: android-22
Copying template files...
Project successfully created.
Adding "cordova-plugin-mfp"
Installing "cordova-plugin-mfp" for android
Installing "org.apache.cordova.device" for android
Installing "org.apache.cordova.dialogs" for android
Installing "org.apache.cordova.geolocation" for android
Installing "org.apache.cordova.globalization" for android
Installing "org.apache.cordova.inappbrowser" for android
Installing "org.apache.cordova.network-information" for android
Plugin install completed
CordovaApp.java was renamed to MainActivity.original, if you made manual changes
to CordovaApp.java, you need to merge them with the current main activity file,
CordovaApp.java, in /platforms/android/src/[package_path]
Plugin "cordova-plugin-mfp" added successfully.
Preparing for push...
MFP App settings not found, configuring..
Embedded Cordova Command: cordova prepare android
D:\Mobilefirst_workspaces\workspace3\Idealaketest\mobilefirst\com_ibm_Idealakete
st-android-1.0.0.wlapp has been built.
Push Completed Successfully.
MFP Cordova project created successfully.
D:\Mobilefirst_workspaces\workspace3>mfp start
Cannot find the server configuration. Creating a new MobileFirst test server.
The development server is being created.
The development server has been successfully created with the following informat
ion:
Server Directory: C:/Users/guest/.ibm/mobilefirst/7.1.0.00.20160307-2032/server
/
URL: http://localhost:10080/
Error: You must be in a MobileFirst project to execute this command.
D:\Mobilefirst_workspaces\workspace3>cd Idealaketest
D:\Mobilefirst_workspaces\workspace3\Idealaketest>mfp start
Error: You must be in a MobileFirst project to execute this command.
D:\Mobilefirst_workspaces\workspace3\Idealaketest>mfp cordova preview
? Select how to preview your app: browser: Simple browser rendering
Preparing for push...
Verifying Server Configuration...
Error: There are no runtimes available on this server.
Run 'mfp help intro' for guidance.
Error: error code: 305
Error: There was an error with the server.
Error: MASTERPUSHSERVERFAILED
Error: Push has failed
你没有项目...
创建项目:
mfp create myproj
cd myproj
mfp start
创建 Cordova 项目:
cd ..
mfp cordova create myapp
cd myapp
mfp cordova platform add android
mfp push
mfp cordova run
似乎无法遵循使用 Mobile first 和 cordova 构建应用程序的教程。 我使用 mfp cordova create 创建了一个应用程序并将其命名为 Idealaketest。
输入应用名称:Idealaketest
输入包裹ID:com.ibm.Idealaketest
已完成以下代码。 请帮助解决方法或 link 到具有适当 tuts 的页面。 我现在正在关注这个。
D:\Mobilefirst_workspaces\workspace3>mfp cordova create
? Enter name of app: Idealaketest
? Enter the package ID: com.ibm.Idealaketest
? Enter the app version: 1.0.0
? Select platforms to be supported by your app: android
? The following plugins will be automatically added to your app:
cordova-plugin-mfp
org.apache.cordova.device
org.apache.cordova.dialogs
org.apache.cordova.geolocation
org.apache.cordova.globalization
org.apache.cordova.inappbrowser
org.apache.cordova.network-information
Please press enter to continue...
? Select additional plugins you would like to add:
? Enter a path to an app template to be added: cordova-hello-world-mfp
Embedded Cordova Command: cordova create "Idealaketest" "com.ibm.Idealaketest" "
Idealaketest" --copy-from="C:\Program Files\IBM\MobileFirst-CLI\mobilefirst-cli\
node_modules\cordovacmd\cordova\templates\cordova-hello-world-mfp"
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: com.ibm.Idealaketest
Name: Idealaketest
Android target: android-22
Copying template files...
Project successfully created.
Adding "cordova-plugin-mfp"
Installing "cordova-plugin-mfp" for android
Installing "org.apache.cordova.device" for android
Installing "org.apache.cordova.dialogs" for android
Installing "org.apache.cordova.geolocation" for android
Installing "org.apache.cordova.globalization" for android
Installing "org.apache.cordova.inappbrowser" for android
Installing "org.apache.cordova.network-information" for android
Plugin install completed
CordovaApp.java was renamed to MainActivity.original, if you made manual changes
to CordovaApp.java, you need to merge them with the current main activity file,
CordovaApp.java, in /platforms/android/src/[package_path]
Plugin "cordova-plugin-mfp" added successfully.
Preparing for push...
MFP App settings not found, configuring..
Embedded Cordova Command: cordova prepare android
D:\Mobilefirst_workspaces\workspace3\Idealaketest\mobilefirst\com_ibm_Idealakete
st-android-1.0.0.wlapp has been built.
Push Completed Successfully.
MFP Cordova project created successfully.
D:\Mobilefirst_workspaces\workspace3>mfp start
Cannot find the server configuration. Creating a new MobileFirst test server.
The development server is being created.
The development server has been successfully created with the following informat
ion:
Server Directory: C:/Users/guest/.ibm/mobilefirst/7.1.0.00.20160307-2032/server
/
URL: http://localhost:10080/
Error: You must be in a MobileFirst project to execute this command.
D:\Mobilefirst_workspaces\workspace3>cd Idealaketest
D:\Mobilefirst_workspaces\workspace3\Idealaketest>mfp start
Error: You must be in a MobileFirst project to execute this command.
D:\Mobilefirst_workspaces\workspace3\Idealaketest>mfp cordova preview
? Select how to preview your app: browser: Simple browser rendering
Preparing for push...
Verifying Server Configuration...
Error: There are no runtimes available on this server.
Run 'mfp help intro' for guidance.
Error: error code: 305
Error: There was an error with the server.
Error: MASTERPUSHSERVERFAILED
Error: Push has failed
你没有项目...
创建项目:
mfp create myproj
cd myproj
mfp start
创建 Cordova 项目:
cd ..
mfp cordova create myapp
cd myapp
mfp cordova platform add android
mfp push
mfp cordova run