请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

用android studio3 无法打开ionic cordova platform android 生成的文件夹

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
huangyaodeMacBook-Pro:myApp huangyao$ sudo ionic cordova platform add android
Password:
> cordova platform add android --save
Using cordova-fetch for cordova-android@7.0.0
 
Adding android project...
 
Creating Cordova project for the Android platform:
 
        Path: platforms/android
        Package: io.ionic.starter
        Name: myApp
        Activity: MainActivity
 
        Android target: android-26
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@7.0.0
 
Android Studio project detected
 
Android Studio project detected
 
Installing "cordova-plugin-camera" for android
 
Plugin dependency "cordova-plugin-compat@1.2.0" already fetched, using that version.
 
Installing "cordova-plugin-compat" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 7.0.0, failed version requirement:
      <6.3.0
Skipping 'cordova-plugin-compat' for android
 
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-compat" for android
 
Plugin doesn't support this project's cordova-android version. cordova-android: 7.0.0, failed version requirement:
      <6.3.0
 
Skipping 'cordova-plugin-compat' for android
 
Installing "cordova-plugin-device" for android
 
Installing "cordova-plugin-file" for android
 
Plugin dependency "cordova-plugin-compat@1.2.0" already fetched, using that version.
 
Installing "cordova-plugin-compat" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 7.0.0, failed version requirement:
      <6.3.0
 
Skipping 'cordova-plugin-compat' for android
 
 
The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.
 
If this is a new application no changes are required.
 
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
 
      "<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
 
to config.xml in order for the application to find previously stored files.
 
 
Installing "cordova-plugin-file-transfer" for android
Plugin dependency "cordova-plugin-file@4.3.3" already fetched, using that version.
 
Dependent plugin "cordova-plugin-file" already installed on android.
 
Installing "cordova-plugin-filepath" for android
 
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-ionic-keyboard" for android
 
Installing "cordova-plugin-ionic-webview" for android
 
Installing "cordova-plugin-splashscreen" for android
 
Installing "cordova-plugin-whitelist" for android
 
 
               This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
 
 
--save flag or autosave detected
 
Saving android@~7.0.0 into config.xml file ...

环境参数如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
cli packages: (/usr/local/lib/node_modules)
 
    @ionic/cli-utils  : 1.19.1
    ionic (Ionic CLI) : 3.19.1
 
global packages:
 
    cordova (Cordova CLI) : 8.0.0
 
local packages:
 
    @ionic/app-scripts : 3.1.8
    Cordova Platforms  : android 7.0.0
    Ionic Framework    : ionic-angular 3.9.2
 
System:
 
    Node  : v8.9.3
    npm   : 5.5.1
    OS    : macOS High Sierra
    Xcode : Xcode 9.2 Build version 9C40b
 
Environment Variables:
 
    ANDROID_HOME : not set
 
Misc:
 
    backend : pro


正在回答 回答被采纳积分+3

插入代码

1回答

Parry 2018-02-23 21:56:08

是导入,不是打开,报错了吗?

0 回复 有任何疑惑可以回复我~
  • 提问者 huangyao #1
    import project  ,没有报错, 就是没反应,什么弹窗都没有,用课件里的代码就可以import成功!
    回复 有任何疑惑可以回复我~ 2018-02-24 17:11:38
  • 提问者 huangyao #2
    老师,是什么原因啊!?
    回复 有任何疑惑可以回复我~ 2018-03-06 10:42:55
  • Parry 回复 提问者 huangyao #3
    可以截个图吗?我帮你看看。
    回复 有任何疑惑可以回复我~ 2018-03-07 09:55:03
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号