gpt4 book ai didi

java - 无法加载类 'org.bouncycaSTLe.jce.provider.BouncyCaSTLeProvider'

转载 作者:行者123 更新时间:2023-12-03 05:56:49 32 4
gpt4 key购买 nike

昨天一切运行顺利,但是今天早上我收到了这个错误。我不认为这与我的gradle文件有任何关系,因为在我所有的项目中都发生了此错误。
我收到此错误:

Unable to load class 'org.bouncycastle.jce.provider.BouncyCastleProvider'.

Possible causes for this unexpected error include:Gradle's dependencycache may be corrupt (this sometimes occurs after a network connectiontimeout.)

The state of a Gradle build process (daemon) may be corrupt. Stoppingall Gradle daemons may solve this problem.

Your project may be using a third-party plugin which is not compatiblewith the other plugins in the project or the version of Gradlerequested by the project.


我曾尝试过离线,但似乎无法正常工作。我也尝试过
“无效的缓存并重新启动”。
谁能告诉我解决方案是什么?
编辑:应用程序级别gradle文件
 apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "in.dreamloft.cplgame2"
minSdkVersion 19
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}


}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})

compile 'com.google.android.gms:play-services-auth:10.0.1'
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.android.support:cardview-v7:25.2.0'
compile 'com.android.support.constraint:constraint-layout:1.0.1'
compile 'com.android.support:design:25.2.0'
compile 'com.google.firebase:firebase-crash:10.0.1'
compile 'io.github.jeancsanchez.jcplayer:jcplayer:2.6.0-alpha'
compile 'com.github.championswimmer:Android-SocialButtons:1.0'
compile 'com.android.volley:volley:1.0.0'
compile 'com.nightonke:boommenu:2.0.9'
compile 'com.jakewharton:butterknife:8.5.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.google.firebase:firebase-storage:10.0.1'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.opentok.android:opentok-android-sdk:2.11.0'
testCompile 'junit:junit:4.12'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1' }

repositories {
flatDir {
dirs 'libs'
} }


apply plugin: 'com.google.gms.google-services'

最佳答案

gradle文件没有错。我必须将分发URL更新为gradle-wrapper.properties文件中的最新版本,以解决该问题。

关于java - 无法加载类 'org.bouncycaSTLe.jce.provider.BouncyCaSTLeProvider',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44405311/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com