作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我无法使用签名构建 APK,但可以运行应用程序并构建 APK 版本
所有的办公室都发生了我搜索了很多解决方案,但找不到结果请帮助你们如果您需要,我会发送更多详细信息
Warning:okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.OpenSSLProvider
Warning:okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt
Warning:there were 11 unresolved references to classes or interfaces.
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
Error:java.lang.RuntimeException: Job failed, see logs for details
Error:java.io.IOException: Please correct the above warnings first.
build.gradle
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
ext {
supportLibVersion = '27.1.1'
firebaseLipVersion = '15.0.0'
playServiceVersion = '15.0.0'
}
android {
signingConfigs {
config {
}
}
compileSdkVersion 27
defaultConfig {
applicationId "com.myappk.english"
minSdkVersion 15
targetSdkVersion 27
versionCode 4
versionName "Version 4"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation('com.crashlytics.sdk.android:crashlytics:2.9.2@aar') {
transitive = true
}
implementation files('libs/YouTubeAndroidPlayerApi.jar')
//noinspection GradleCompatible
implementation "com.android.support:appcompat-v7:$supportLibVersion"
implementation "com.android.support:design:$supportLibVersion"
implementation "com.android.support:support-v4:$supportLibVersion"
implementation "com.android.support:recyclerview-v7:$supportLibVersion"
implementation "com.android.support:support-emoji:$supportLibVersion"
implementation "com.android.support:support-emoji-appcompat:$supportLibVersion"
implementation "com.android.support:support-emoji-bundled:$supportLibVersion"
implementation "com.android.support:support-annotations:$supportLibVersion"
//noinspection GradleCompatible
implementation "com.google.firebase:firebase-messaging:15.0.2"
implementation "com.google.firebase:firebase-core:15.0.2"
implementation "com.google.firebase:firebase-crash:15.0.2"
implementation "com.google.firebase:firebase-ads:15.0.1"
implementation "com.google.firebase:firebase-invites:15.0.1"
implementation "com.google.firebase:firebase-auth:15.1.0"
implementation "com.google.firebase:firebase-appindexing:15.0.1"
implementation "com.google.android.gms:play-services-ads:15.0.1"
implementation "com.google.android.gms:play-services-analytics:15.0.2"
implementation "com.google.android.gms:play-services-auth:15.0.1"
implementation "com.google.android.gms:play-services-drive:15.0.1"
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.android.volley:volley:1.0.0'
implementation 'com.android.billingclient:billing:1.0'
implementation 'com.intuit.sdp:sdp-android:1.0.3'
implementation 'org.jetbrains:annotations-java5:15.0'
implementation 'com.github.medyo:android-about-page:1.2.4'
implementation 'com.squareup.picasso:picasso:2.71828'
testImplementation 'com.squareup.okhttp3:mockwebserver:3.10.0'
testImplementation 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
谁有办法解决这个问题完成这些令人筋疲力尽的工作后,我感到很沮丧
最佳答案
这是 Android Studio 版本 3.1.0 和 Gradle 版本 4.4 的问题。
在您的 proguard-rules.pro
文件中添加以下行以解决此问题。
-dontwarn okhttp3.internal.platform.*
关于android - 警告 :okhttp3. internal.platform.ConscryptPlatform : can't find referenced class org. concrypt.OpenSSLProvider,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50193653/
我无法使用签名构建 APK,但可以运行应用程序并构建 APK 版本 所有的办公室都发生了我搜索了很多解决方案,但找不到结果请帮助你们如果您需要,我会发送更多详细信息 Warning:okhttp3.i
我是一名优秀的程序员,十分优秀!