博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ionic + cordova 配置和开发过程中的一些问题
阅读量:7095 次
发布时间:2019-06-28

本文共 1821 字,大约阅读时间需要 6 分钟。

1、Android sdk:ERROR: SWT folder '' does not exist.问题

 

在win x86系统中,如果运行的 sdk manager,会出现Android sdk:ERROR: SWT folder '' does not exist.问题,此sdk是google官网下的android-studio-bundle-135.1629389.exe安装后的原sdk,

 

需要找到安装后的sdk文件夹下的tools\lib\find_java.bat文件,找到第27行

  find /i "x86" > NUL && set arch_ext=32 || set arch_ext=64

改为

  find /i "x86" > NUL && set arch_ext=32|| set arch_ext=64

即把32后面的空格去掉

这样就能正确的定位到find_java32.exe而不是find_java32 .exe

来找匹配的.exe

 

2、ionic build android 错误:Could not resolve all dependencies for configuration

在Android Studio中执行 gradle clean或者编译项目的时候,会报如下的错误:

FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not find com.android.support:appcompat-v7:22.2.1.
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/support/appcompat-v7/22.2.1/appcompat-v7-22.2.1.pom
         https://jcenter.bintray.com/com/android/support/appcompat-v7/22.2.1/appcompat-v7-22.2.1.jar
         file:/D:/android-sdk/extras/android/m2repository/com/android/support/appcompat-v7/22.2.1/appcompat-v7-22.2.1.pom
         file:/D:/android-sdk/extras/android/m2repository/com/android/support/appcompat-v7/22.2.1/appcompat-v7-22.2.1.jar
         file:/D:/android-sdk/extras/google/m2repository/com/android/support/appcompat-v7/22.2.1/appcompat-v7-22.2.1.pom
         file:/D:/android-sdk/extras/google/m2repository/com/android/support/appcompat-v7/22.2.1/appcompat-v7-22.2.1.jar
     Required by:
         voicedemo:app:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

解决方法:是在 Studio中依次点击Tools -> Android -> Android SDK Manager,在"Extras"选项下更新如下两个文件即可。

Android Support Repository    , Android Support Library

转载于:https://www.cnblogs.com/wfblogs/p/6248431.html

你可能感兴趣的文章
oracle11g与oracle10g字符集子集与超集的对应关系表
查看>>
登录注册D
查看>>
deepin-wine-tim 字体发虚
查看>>
windows多线程没那么难
查看>>
ID3决策树算法原理及C++实现(其中代码转自别人的博客)
查看>>
linux之SQL语句简明教程---WHERE
查看>>
霍夫变换(hough transform),从直线到圆再到一般图形
查看>>
程序员技术练级攻略--练成这样,成神仙了!
查看>>
基金净值简介
查看>>
打开myeclipse出现这个错是为什么
查看>>
mongdb使用
查看>>
Hadoop Streaming框架使用(二)
查看>>
网站升级2.0回滚机制
查看>>
centos6.9 网络配置,防火墙,复制虚拟机20180127
查看>>
h3c防火墙的设置过程
查看>>
KMP + 求最小循环节 --- HUST 1010 - The Minimum Length
查看>>
<从优秀到卓越>读书笔记
查看>>
Python3 序列解包
查看>>
C/C++ —语言判断数字或字符的函数总结
查看>>
ParentalControl-SteadyState
查看>>