当我为android构建一个新的离子应用程序时, 编译失败。 错误如下:
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:3.0.0.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:3.0.0.
> Could not get resource 'https://maven.google.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom'.
> Could not GET 'https://maven.google.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom'.
> Remote host closed connection during handshake
任何人都可以帮助我吗?我很困惑。
答案 0 :(得分:0)
好的,我知道如何解决这个问题。
第二步:Ansure有下载节点,verison是1.8 +;
第三步:下载android studio,在此步骤中将自动扰乱gradle和SDK;
完成以上三个步骤之后,你可以使用android studio创建一个新的空白Android应用程序和运行模拟器。
ANDROID_HOME E:\sdk (this is my computer setting)
SDK_HOME E:\sdk
路径 %SDK_HOME%\tools;%SDK_HOME%\platformtools;C:\Users\xxxxx\.gradle\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew\gradle-3.1
<强> 编辑: 强>
文件夹名称更正:platform-tools
%SDK_HOME%\tools;%SDK_HOME%\platform-tools;C:\Users\xxxxx\.gradle\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew\gradle-3.1