2016-10-04 14 views
1

私は自分のbuild.gradleにエラーがあります。私はGithubプロジェクトにリンクしようとしましたが失敗しました。Gradleプロジェクトの同期が完了しました(同期できません)

build.gradle(プロジェクト:XXXX)

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

buildscript { 
    repositories { 
      //mavenCentral() 
     maven { url "https://maven/jjhesk" } 
     jcenter() 

    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:2.2.0' 

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

allprojects { 
    repositories { 
      mavenCentral() 
     maven { url "https://maven/jjhesk" } 
     jcenter() 

    } 
} 

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

build.gradle(モジュール:XXXX)

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 24 
    buildToolsVersion "24.0.2" 
    defaultConfig { 
     applicationId "com.google.testingtimer" 
     minSdkVersion 16 
     targetSdkVersion 24 
     versionCode 1 
     versionName "1.0" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    /* compile fileTree(include: ['*.jar'], dir: 'libs') 
     androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
      exclude group: 'com.android.support', module: 'support-annotations' 
     })*/ 
    //compile 'com.android.support:appcompat-v7:24.2.1' 
    compile 'com.github.pheynix:TimerView:660400fb64' 
    //androidTestCompile 'junit:junit:4.12' 
} 

私はこのウェブサイトにあるこれらの指示に従っしよう:

誰かが問題を解決するのに役立つでしょうか?

+0

エラーメッセージは何ですか? – sanastasiadis

+0

@sanastasiadisエラー(1,0)ルートプロジェクトの不明なプロパティ 'build'を取得できませんでした。 – Jane

+0

質問:ルートプロジェクトのbuild.gradleの最初の行に 'build.gradle(Project:XXXX)'がありますか?あなたはしないでください。 – sanastasiadis

答えて

0

今日は同じエラーが発生しました。それを修正するには、私はbuild.gradleファイルを開いたとの発生箇所置き換え:私の場合は

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

では

repositories { 
    jcenter() 
} 

を問題はプロキシによって引き起こされました。 httpsに問題があり、私はhttpの使用を強制しています。

関連する問題