所有项目都成功构建,但当我尝试运行或调试项目时,我会收到此错误。error:
Android资源链接失败W/ziparchive(6524):Zip:didn 't find signature at start of lfh,offset=41550366 error:failed to open APK:Invalid offset.
我确实尝试过构建,清理,重建无效现金重新启动与Gradle文件同步项目更新Gradle,android studio到最新版本
我的Build.gradle应用程序:
apply plugin: 'com.android.application'
android {
defaultConfig {
applicationId "com.geesdsada.app"
minSdkVersion 17
targetSdkVersion 28
versionCode 4
versionName "4.0"
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
defaultConfig {
multiDexEnabled true
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileSdkVersion 28
buildToolsVersion '28.0.3'
}
dependencies {
//fonts
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
//CounterFAB
implementation 'com.github.andremion:counterfab:1.0.1'
//
implementation 'com.github.jd-alexander:android-flat-button:v1.1'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.stripe:stripe-android:6.1.2'
implementation 'com.google.android.gms:play-services-base:16.1.0'
implementation 'com.google.android.gms:play-services-analytics:16.0.8'
implementation 'com.google.firebase:firebase-database:16.1.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.squareup.okhttp3:okhttp:3.0.1'
implementation 'com.github.d-max:spots-dialog:0.7@aar'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'io.paperdb:paperdb:2.1'
//add libraries
implementation 'me.zhanghai.android.materialratingbar:library:1.3.2'
implementation 'com.stepstone.apprating:app-rating:2.0.0'
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'io.paperdb:paperdb:2.1'
implementation 'com.github.rey5137:material:1.2.4'
implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1'
implementation 'com.parse:parse-android:1.16.3'
//update version to the latest one
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.google.firebase:firebase-auth:16.2.1'
implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-database:16.1.0'
implementation 'com.firebaseui:firebase-ui-database:1.2.0'
implementation 'com.cepheuen.elegant-number-button:lib:1.0.2'
implementation 'com.squareup.picasso:picasso:2.5.0'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
字符串
所有的代码都写得很好,运行良好,但突然出现了这个错误。
1条答案
按热度按时间tvz2xvvm1#
我在Android Studio中得到了这个,我所做的就是去“构建”>“清理项目”,它就工作了。现在重建(构建->重建)你的项目。