我只启用Proguard(minifyEnabled true)...,当我尝试构建单个apk时出现错误:
原因:输入的CRC无效(预期为0x9aa3fedc,但得到0xfeb7201b)
处理任务java.io.IOException时发生异常:无法读取[D:\ AndroidStudio \ AndroidStudioSDK \ sdk \ platforms \ android-27 \ android.jar](无效的输入CRC(预期为0x9aa3fedc,但得到的是0xfeb7201b))< / p>
我的Gradle.app是:
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.test.app"
manifestPlaceholders = [manifestApplicationId : "${applicationId}",
onesignal_app_id : "*****-****-****-****-***********",
onesignal_google_project_number: "REMOTE"]
minSdkVersion 19
targetSdkVersion 27
versionCode 8
versionName "1.8"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes.each {
it.buildConfigField 'String', 'SERVER_URL', serverUrl
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//ANDROID API
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:animated-vector-drawable:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:customtabs:27.1.1'
implementation 'com.android.support:exifinterface:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:mediarouter-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:multidex:1.0.3'
//Google API
implementation 'com.google.android.gms:play-services-ads:17.1.2'
implementation 'com.google.android.gms:play-services-gcm:16.0.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-cast-framework:16.1.2'
implementation 'com.google.android.ads.consent:consent-library:1.0.7'
//Google Exo Player
implementation 'com.google.android.exoplayer:exoplayer:2.9.4'
implementation 'com.google.android.exoplayer:exoplayer-core:2.9.4'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.9.4'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.9.4'
implementation 'com.google.android.exoplayer:exoplayer-smoothstreaming:2.9.4'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.9.4'
//Google Firebase Api
implementation 'com.google.firebase:firebase-core:16.0.6'
//Other Libraries
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'me.relex:circleindicator:1.2.2@aar'
implementation 'com.github.ornolfr:rating-view:0.1.2@aar'
implementation 'cn.gavinliu.android.lib:ShapedImageView:0.8.4'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.mobsandgeeks:android-saripaar:2.0.2'
implementation 'com.github.ixiDev:GDPRChecker:v0.2'
implementation 'com.github.halilozercan:BetterVideoPlayer:1.1.0'
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
//OneSignal
implementation 'com.onesignal:OneSignal:3.9.1@aar'
//You Api
implementation files('libs/YouTubeAndroidPlayerApi.jar')
//Test Api
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
apply plugin: 'com.google.gms.google-services'
因此,我不会将 minifyEnabled 的任何内容从false更改为true,都会收到错误消息。
答案 0 :(得分:1)
df['date'] = pd.Timestamp(dt0) + pd.to_timedelta(df['hour'].eq(0).cumsum(), unit='D')
print(df)
# hour date
# 0 20 2019-02-01
# 1 21 2019-02-01
# 2 22 2019-02-01
# 3 23 2019-02-01
# 4 0 2019-02-02
# 5 1 2019-02-02
# 6 2 2019-02-02
# 7 3 2019-02-02
# 8 4 2019-02-02
# 9 5 2019-02-02
# 10 6 2019-02-02
# 11 7 2019-02-02
# 12 8 2019-02-02
# 13 9 2019-02-02
# 14 10 2019-02-02
表示文件已损坏。
您必须使用SDK管理器卸载并重新安装API级别27,以解决该问题。
并可能考虑购买新驱动器-或至少检查完整性,例如。与hddscan。