深圳全飞鸿

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz

Android studio 的安装讨论, AS INSTALL

查看数: 787 | 评论数: 3 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2019-11-4 23:58

正文摘要:

本帖最后由 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\jdk ...

回复

zhgc 发表于 2019-12-30 23:31:46
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. }

复制代码


QQ|Archiver|手机版|小黑屋|nagomes  

GMT+8, 2025-6-29 08:49 , Processed in 0.059223 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表