アンドロイドスタジオを使用して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
- にしようとしたこのタスクに
Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies]
を完了するために努力しているようです
Offline Work
これに続いてsolution - solutionのようなgoogle playサービスを使用していません。 は
- プロキシを使用しない
C:\Users\<username>\.gradle\gradle.properties
でgradle.properties
プロジェクト - 上
org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
とorg.gradle.parallel=true
を追加org.gradle.daemon=true
とorg.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
プロセス
にハングアップしようとしました。何か案が?私が逃したのは何ですか?おかげさまで
は、コマンドラインからプロジェクトをビルドしてみます。またハングアップしている場合は、 '-d'を追加して、ハングアップしている場所を正確に確認してください。あなた自身でそれを解釈できない場合は、ヘルパーがレビューするための結果を投稿するかもしれません。 – Vampire
@Vampireコマンドラインからビルドしようとしました。私は私の質問を更新しました。プロセス ':app:compileDebugJavaWithJavac'に固執しているようです。何か案が? – NPE
' /。gradle'を削除してみてください。しかし、私はそれが助けになるとは思っていない。他のアイデアは、申し訳ありません。 –
Vampire