Androidスタジオの新機能です。私は新しいアクティビティを作成しました。私はグラデルを構築する際にエラーが発生しました。Androidスタジオのグラデルビルドエラー
私はプロジェクトを再構築してプロジェクトを開いていますが、まだ私の問題は解決していません。
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion '22.0.1'
defaultConfig {
applicationId "com.example.prakash.aclientzregistration"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:+'
compile 'com.android.support:design:22.0.1'
}
この私のイベントログエラー状態
Consult IDE log for more details (Help | Show Log)
4:01:04 AM NullPointerException: null
4:03:05 AM Executing tasks: [:app:generateDebugSources, :app:compileDebugSources]
4:03:06 AM Gradle build finished with 1 error(s) in 1s 162ms
4:03:06 AM NullPointerException: null
4:06:20 AM Gradle sync started
4:06:23 AM Gradle sync failed: Cause: failed to find target with hash string 'android-22' in: C:\Users\Prakash\AppData\Local\Android\Sdk
Consult IDE log for more details (Help | Show Log)
4:12:17 AM Gradle sync started
4:11:59 AM EmptyThrowable: Old dir was moved away, but new one failed to be moved into place. Trying to move old one back.
4:12:19 AM Gradle sync failed: Cause: failed to find target with hash string 'android-22' in: C:\Users\Prakash\AppData\Local\Android\Sdk
Consult IDE log for more details (Help | Show Log)
4:12:19 AM NullPointerException: null
4:13:04 AM Gradle sync started
4:13:06 AM Gradle sync failed: Cause: failed to find target with hash string 'android-22' in: C:\Users\Prakash\AppData\Local\Android\Sdk
Consult IDE log for more details (Help | Show Log)