java.lang.NoClassDefFoundError:org / bouncycastle / jce / provider / BouncyCastleProvider

时间:2018-07-13 03:32:23

标签: android android-gradle

当我使用gradle命令行构建android项目时,出现以下错误。

出了什么问题

  

评估项目‘时发生问题。   org / bouncycastle / jce / provider / BouncyCastleProvider

这是stacktrace

  

原因:java.lang.NoClassDefFoundError:org / bouncycastle / jce / provider / BouncyCastleProvider       在com.android.build.gradle.internal.dsl.SigningConfigFactory.create(SigningConfigFactory.java:47)       在com.android.build.gradle.internal.dsl.SigningConfigFactory.create(SigningConfigFactory.java:32)       在org.gradle.api.internal.FactoryNamedDomainObjectContainer.doCreate(FactoryNamedDomainObjectContainer.java:100)       在org.gradle.api.internal.AbstractNamedDomainObjectContainer.create(AbstractNamedDomainObjectContainer.java:67)       在org.gradle.api.internal.AbstractNamedDomainObjectContainer.create(AbstractNamedDomainObjectContainer.java:50)       在com.android.build.gradle.internal.variant.LibraryVariantFactory.createDefaultComponents(LibraryVariantFactory.java:156)       在com.android.build.gradle.BasePlugin.configureExtension(BasePlugin.java:496)       在com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:81)       在com.android.build.gradle.BasePlugin.apply(BasePlugin.java:271)       在com.android.build.gradle.LibraryPlugin.apply(LibraryPlugin.java:136)       在com.android.build.gradle.LibraryPlugin.apply(LibraryPlugin.java:47)       在org.gradle.api.internal.plugins.ImperativeOnlyPluginTarget.applyImperative(ImperativeOnlyPluginTarget.java:42)       在org.gradle.api.internal.plugins.RuleBasedPluginTarget.applyImperative(RuleBasedPluginTarget.java:50)       在org.gradle.api.internal.plugins.DefaultPluginManager.addPlugin(DefaultPluginManager.java:163)       在org.gradle.api.internal.plugins.DefaultPluginManager.access $ 200(DefaultPluginManager.java:46)       在org.gradle.api.internal.plugins.DefaultPluginManager $ AddPluginBuildOperation.run(DefaultPluginManager.java:251)       在org.gradle.internal.operations.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:317)处       在org.gradle.internal.operations.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:309)处       在org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:185)       在org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:97)       在org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)       在org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:143)       在org.gradle.api.internal.plugins.DefaultPluginManager.apply(DefaultPluginManager.java:124)       在org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyType(DefaultObjectConfigurationAction.java:120)       在org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.access $ 200(DefaultObjectConfigurationAction.java:38)       在org.gradle.api.internal.plugins.DefaultObjectConfigurationAction $ 3.run(DefaultObjectConfigurationAction.java:86)       在org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.execute(DefaultObjectConfigurationAction.java:143)       在org.gradle.api.internal.project.AbstractPluginAware.apply(AbstractPluginAware.java:46)       在org.gradle.api.internal.project.ProjectScript.apply(ProjectScript.java:34)       在org.gradle.api.Script $ apply.callCurrent(未知来源)       在build_738plxtpbxz7s84gfir5eon4g.run(/var/lib/jenkins/workspace/SmartHome-DB/SmartHome/aftercrashprocessor/build.gradle:1)       在org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory $ ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:90)

0 个答案:

没有答案