0
我想在我的android设备上构建和调试ionic 2 app
。 以下是控制台了看跌期权的细节,当我试图运行命令ionic run android
离子运行android-配置不运行应用程序的设备
#->ionic run android
∆ Compiling Sass to CSS
√ Matching patterns: app/theme/app.+(ios|md).scss
∆ Copying fonts
√ Matching patterns: node_modules/ionic-framework/fonts/**/*.+(ttf|woff|woff2)
∆ Copying HTML
√ Matching patterns: app/**/*.html
∆ Compiling and bundling with Webpack...
√ Using your webpack.config.js file
√ Sass compilation complete
√ HTML copied to www/build
√ Fonts copied to www/build/fonts
√ Compiling files complete.
Hash: 3239d7653edd2f88c126
Version: webpack 1.12.10
Time: 6745ms
Asset Size Chunks Chunk Names
app.bundle.js 2.68 MB 0 [emitted] main
[0] multi main 64 bytes {0} [built]
+ 362 hidden modules
√ Webpack complete
#->
我的应用程序Androidmanifest.xml
包含:
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="22" />
当我运行以下adb devices
命令我可以看到设备已连接。
List of devices attached
5b234380 device
以下是包安装在Android SDK Manager
截图:
而且这是我ionic
系统的informations
:
#->ionic info
Your system information:
Cordova CLI: 4.3.1
Ionic Version: 2.0.0-beta.1
Ionic CLI Version: 2.0.0-beta.17
Ionic App Lib Version: 2.0.0-beta.8
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X El Capitan
Node Version: v5.3.0
Xcode version: Not installed
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly suggested to install/upgrade the following:
Install ios-sim to deploy iOS applications. `npm install -g ios-sim` (may require sudo)
Install ios-deploy to deploy iOS applications to devices. `npm install -g ios-deploy` (may require sudo)
******************************************************
我只想在Android设备上运行,因此ios-sim
和ios-deploy
软件包未安装。
Update
当我尝试运行添加Android平台,它已经在说存在:
#->ionic platform add android
Running command: /Users/Piccaza/ionic-projects/fobs-v0.9.9/hooks/before_platform_add/init_directories.js /Users/Piccaza/ionic-projects/fobs-v0.9.9
Platform android already added.
什么可能是这里的问题,所以,我不能在设备上运行应用程序?我有点困难了2天,请帮忙。