エラー :app:compileDebugJavaWithJavac error: error reading C:\ .... \.android\build-cache\167256a7a343274ac6d230f06a5526cf83b55ac4\output\jars\classes.jar; error in opening zip file
とも同じですが、エンディングcannot read zip file
で
は、アプリケーションの実行時に発生します。その後、package android.support.v7.app does not exist
などの様々な間違いがあります。
などのクリーニング、修理、クリーニングは一切致しませんでした。私はここで提供された他の回答も見てきましたが、誰もこの問題を修正しませんでした。
私はJDK
としてjdk1.8.0_40実行しています。これは、私の一番上のGradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.google.gms:google-services:3.0.0'
}
}
allprojects {
repositories {
jcenter()
mavenLocal()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
と私のアプリのGradleの:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "es.sample.android.myoffice"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
}
repositories {
mavenLocal()
flatDir {
dirs 'libs'
}
}
apply plugin: 'android-apt'
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:palette-v7:25.3.1'
compile 'com.google.firebase:firebase-config:10.0.1'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.google.android.gms:play-services-auth:10.0.1'
compile 'com.google.android.gms:play-services-appinvite:10.0.1'
compile 'com.firebase:firebase-jobdispatcher:0.5.2'
compile 'com.jakewharton:butterknife:8.4.0'
apt 'com.jakewharton:butterknife-compiler:8.4.0'
compile 'com.squareup.okhttp3:okhttp:3.6.0'
}
apply plugin: 'com.google.gms.google-services'
ありがとう!
NEW EDIT
どうやらのみに影響を与えている:クレイジー行くと私は、私は解決策を考え出した可能性があり、すべてを試した後
Error:(18, 30) error: package android.support.v7.app does not exist
を実行して無効化キャッシュ/再起動 –
あなたはアンドロイドのスタジオでJDKのディレクトリを設定したのみては? – rafsanahmad007
私はそれを既に試みたが、何もしなかった。そして、JDKディレクトリはok:C:\ Program Files \ Java \ jdk1.8.0_40に設定されています。まだ働いていません:( – Javi