深圳全飞鸿

标题: Android studio 的安装讨论, AS INSTALL [打印本页]

作者: zhgc    时间: 2019-11-4 23:58
标题: Android studio 的安装讨论, AS INSTALL
本帖最后由 zhgc 于 2020-10-25 19:37 编辑

在win10 64上的成功安装,安装文件已收录到:
tools.syant\android.syant\WIN10-64-INSTALL-OK目录

C:\Users\john>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.8.0_171


C:\Users\john>echo %CLASSPATH%
C:\Program Files\Java\jdk1.8.0_171\lib\tools.jar;C:\Program Files\Java\jdk1.8.0_171\lib\dt.jar

到底是CLASSPATH还是CLSSS_PATH?
改为
C:\Program Files\Java\jdk1.8.0_171\lib\tools.jar;C:\Program Files\Java\jdk1.8.0_171\lib\dt.jar;.


Path:增加jdk的bin路径。在path原有内容的后面增加;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
这步没有做,似乎也没有问题!




作者: zhgc    时间: 2019-12-30 22:51
The selected Jdk could not run on current OS.


看下这里的jdk 是不是路径写错




作者: zhgc    时间: 2019-12-30 23:31
android studio gradle:download http://jcenter 卡住解决办法


  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.

  2. buildscript {
  3.     repositories {
  4.         maven { url "https://jitpack.io" }
  5.         maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  6.         maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
  7.         maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
  8.         maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
  9.         jcenter()
  10.         google()
  11.     }
  12.     dependencies {
  13.         classpath 'com.android.tools.build:gradle:3.4.1'

  14.         // NOTE: Do not place your application dependencies here; they belong
  15.         // in the individual module build.gradle files
  16.     }
  17. }

  18. allprojects {
  19.     repositories {
  20.         maven { url "https://jitpack.io" }
  21.         maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  22.         maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
  23.         maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
  24.         maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
  25.         jcenter()
  26.         google()
  27.     }
  28. }

  29. task clean(type: Delete) {
  30.     delete rootProject.buildDir
  31. }

复制代码



作者: zhgc    时间: 2019-12-31 10:08
Android studio Error occurred during initialization of VM 问题解决


报错:



解决办法:






欢迎光临 深圳全飞鸿 (http://www.nagomes.com/disc/) Powered by Discuz! X3.2