2017-07-03 3 views
0

アンドロイドスタジオを使用して2.3.3私はGradle Build Runningに立ち往生しました。 私は自分のプロジェクトで何が起こったのか分かりません。最近Zoom Login Application Sampleをコンパイルしてから、これを慎重にこのlinkからコンパイルしたいと考えています。ここでアンドロイドスタジオ2.3.3 Gradle Build Runningにぶら下がって

は、Android Studioのバージョンは以下のとおりです。イベントログには

Android Studio 2.3.3 
Build #AI-162.4069837, built on June 6, 2017 
JRE: 1.8.0_31-b13 x86 
JVM: Java HotSpot(TM) Server VM by Oracle Corporation 

、グレードは、私がするように設定Global Gradle Setting

  1. にしようとしたこのタスクに

    Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies] 
    

    を完了するために努力しているようですOffline Workこれに続いてsolution

  2. solutionのようなgoogle playサービスを使用していません。
  3. プロキシを使用しないC:\Users\<username>\.gradle\gradle.propertiesgradle.propertiesプロジェクト
  4. org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8org.gradle.parallel=trueを追加org.gradle.daemon=trueorg.gradle.parallel=true

に私が試みたが、誰もがうまく機能していないすべてのソリューションを、この行を追加します。これは馬鹿馬鹿しくてばかげて、一晩中もビルドフェーズを完了することはできません。 、私はこのログを得たgradlewコマンドラインgradlew -d assembleDebugから構築しようとした後

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

buildscript { 
    repositories { 
     jcenter() 
    } 

    dependencies { 
     classpath 'com.android.tools.build:gradle:2.3.0' 

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

allprojects { 
    repositories { 
     jcenter() 

     maven { 
      url 'https://maven.facialnetwork.com/maven2' 
      credentials { 
       username '***' 
       password '***' 
      } 
      authentication { 
       basic(BasicAuthentication) 
      } 
     } 

     // Reference local .aar file if it doesn't exist in maven 
     flatDir{ dirs '../../../' } 
    } 
} 

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

、ここmodule build.gradle

buildscript { 

} 
apply plugin: 'com.android.application' 

android { 
    if (project.hasProperty("zoom_keystore")) { 
     signingConfigs { 
      release { 
       storeFile file(zoom_keystore) 
       storePassword zoom_keystore_password 
       keyAlias zoom_key_alias 
       keyPassword zoom_key_password 
      } 
     } 
    } 

    compileSdkVersion 25 
    buildToolsVersion '25.0.3' 
    defaultConfig { 
     applicationId "com.facetec.zoom.sampleapp" 
     minSdkVersion 18 
     targetSdkVersion 25 
     versionCode 1 
     versionName "1.0" 
     buildConfigField("String", "ZOOM_APP_TOKEN", System.getProperty("zoom_app_token", "\"\"")) 
     resConfigs "en" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
      if (signingConfigs.hasProperty('release')) { 
       signingConfig signingConfigs.release 
      } 
     } 
     debug { 
      debuggable true 
      jniDebuggable true 
     } 
    } 

    compileOptions { 
     sourceCompatibility JavaVersion.VERSION_1_7 
     targetCompatibility JavaVersion.VERSION_1_7 
    } 
} 

dependencies { 
    compile 'com.android.support:appcompat-v7:25.+' 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    compile 'com.facetec:zoom-authentication:[email protected]' 
    compile project(':zoom-authentication-5.1.1') 
} 

、 多分私の問題の特定に役立つことができます:ここで

project build.gradleある

09:08:19.942 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock 
acquired. 
09:08:19.942 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Relea 
sing lock on daemon addresses registry. 
> Building 62% > :app:compileDebugJavaWithJavac 

そのタスク:app:compileDebugJavaWithJavac

に付着した私は、私はそれを把握することはできませんC:\Users\<username>\.gradle\caches上のキャッシュを削除し、まだ:app:compileDebugJavaWithJavacプロセス

にハングアップしようとしました。何か案が?私が逃したのは何ですか?おかげさまで

+0

は、コマンドラインからプロジェクトをビルドしてみます。またハングアップしている場合は、 '-d'を追加して、ハングアップしている場所を正確に確認してください。あなた自身でそれを解釈できない場合は、ヘルパーがレビューするための結果を投稿するかもしれません。 – Vampire

+0

@Vampireコマンドラインからビルドしようとしました。私は私の質問を更新しました。プロセス ':app:compileDebugJavaWithJavac'に固執しているようです。何か案が? – NPE

+0

' /。gradle'を削除してみてください。しかし、私はそれが助けになるとは思っていない。他のアイデアは、申し訳ありません。 – Vampire

答えて

0

これは私の作品:

CTRL + Shift + Escキー - >プロセス - >のjava.exeを殺す - >リビルド

関連する問題