1
プロジェクトを実行したいが実行できませんでした。 は「イベントログ」です。タスクアンドロイドの実行時に "Gradle build completed 188 error(s)"が発生しました。依存関係
10:47 Executing tasks: [androidDependencies]
10:47 Gradle build finished with 188 error(s) in 5s 822ms
ここでは私のbuild.gradle(アプリ)です。
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
android {
compileSdkVersion 24
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "org.macho.beforeandafter"
minSdkVersion 21
targetSdkVersion 24
versionCode 5
versionName "1.4"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
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.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:support-v4:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'io.realm:android-adapters:1.2.1'
testCompile 'junit:junit:4.12'
}
私はプロジェクトをビルドしてプロジェクトをビルドできますが、プロジェクトは実行できません。 また、コマンドラインでタスク "androidDependencies"を実行できます。ここでは です。
Yuuki-no-MacBook-Air:BeforeAndAfter yukim$ ./gradlew androidDependencies
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /Users/yukim/Library/Android/sdk/ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
:app:androidDependencies
debug
+--- io.realm:realm-android-library:[email protected]
| +--- io.realm:realm-annotations:[email protected]
| \--- com.getkeepsafe.relinker:relinker:[email protected]
+--- io.realm:realm-annotations:[email protected]
+--- com.android.support:appcompat-v7:[email protected]
| +--- com.android.support:support-v4:[email protected]
| | +--- com.android.support:support-compat:[email protected]
| | | \--- com.android.support:support-annotations:[email protected]
| | +--- com.android.support:support-media-compat:[email protected]
| | | \--- com.android.support:support-compat:[email protected]
| | | \--- com.android.support:support-annotations:[email protected]
| | +--- com.android.support:support-core-utils:[email protected]
| | | \--- com.android.support:support-compat:[email protected]
| | | \--- com.android.support:support-
...
BUILD SUCCESSFUL
Total time: 15.079 secs
Yuuki-no-MacBook-Air:BeforeAndAfter yukim$
ありがとうございました。
ありがとうございます!私の変更をコミットした後、 'git reset -hard HEAD && git clean'を実行してくれました。あなたなしでそれを試していないだろう – lucidbrot