2017年7月19日水曜日

Android Studio 新規プロジェクト作成でいきなりERROR

新規Android Studi プロジェクトn開始 空のアクティビティーを追加してビルドをかけるとエラー。

エラー:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugUnitTestApkCopy'.
   > Could not resolve junit:junit:4.12.
     Required by:
         project :app
      > Could not resolve junit:junit:4.12.
         > Could not get resource 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.
               > jcenter.bintray.com



Android → Gradle スクリプト→build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        jcenter()  →  jcenter { url "http://jcenter.bintray.com" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
        // NOTE: Do not place your application dependencies here; they belong        // in the individual module build.gradle files    }
}

allprojects {
    repositories {
        jcenter()  → jcenter { url "http://jcenter.bintray.com" }
    }
}

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

1 件のコメント:

  1. こんばんは。

    すぐにできないこと、多いですよね。

    返信削除

シャットダウン時の後処理 (shutdown)

# vi /etc/systemd/system/drop.service [Unit] Description= stop httpgwd DefaultDependencies=no Before=shutdown.target RefuseManualStart=true ...