本文介绍了在Android Studio 3.1中构建失败,gradle 4.4类签名者信息与同一包中其他类的签名者信息不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用libgdx在Android Studio 3.1中创建一个项目,我无法构建我的项目,因为它说:

I'm making a project in Android Studio 3.1 with libgdx and i can't build my project because it says:

class "org.bouncycastle.jcajce.provider.symmetric.IDEA$Mappings"'s signer information does not match signer information of other classes in the same package

但我不使用bouncycastle或某些东西
我检查了很多关于这个问题的页面和主题,但我没有找到任何解决方案。此外,我没有任何jar文件,我从来没有尝试签署的东西,我只是想建立我的项目
请帮助我们,我真的坚持它

But i don't use "bouncycastle" or somethingI checked a lot pages and topics about this problem but i didn't find any solutions for this. Also i haven't any jar files and i never tried to sign something, i'm only trying to build my projectPlease help me guys, i really stuck at it

推荐答案

更新:Java 10.0.2遇到GDX 1.9.8问题所以我降级到Java 8,一切都按预期工作。如果您安装了最新的Java 10,请卸载并下载并安装java 8版本。

Update: Java 10.0.2 was having issues with GDX 1.9.8 so I downgraded to Java 8 and everything is working as expected. If you installed the latest Java 10, uninstall and download and install the java 8 version.

旧评估:

我最近遇到了android 3.1.4和当前版本的libgdx(jar下载于09 / xx / 2018)的这个问题。

I've recently encountered this issue with android 3.1.4 and a current version of libgdx(jar downloaded on 09/xx/2018).

环境:新安装的Windows 7 Ultimate + sp1 +便捷汇总,gdx-setup.jar(九月xx,2018),+ Android Studio 3.1.4(全新安装) ,java 10.0.2。

Environment: Freshly installed Windows 7 Ultimate + sp1 + convenience rollup, gdx-setup.jar(September xx, 2018), + Android Studio 3.1.4(clean install), java 10.0.2.

问题转载:gdx-setup.jar用我更新的build-tools+api制作了一个项目,但项目没有在Android Studio中编译并产生最初发布的错误。

Problem reproduced: gdx-setup.jar with my updated "build-tools" + "api" produced a project, but the project did not compile in Android Studio and produced the error originally posted.

进程:gdx-setup.jar及其默认构建工具(27.0.3)和默认api(27)将产生关于不正确的api 28> 27的错误,这可能与某些不相关,但Android Studio 3.1.4的新安装可能会遇到此问题。使用Android studio sdk-manager(工具选项卡)并下载了27.0.3 build-tools和sdk-tools(确保检查显示包详细信息的可见性)。安装上面的内容并在默认情况下重新运行gdx-set.jar后,我就可以生成项目,甚至可以在Android工作室上编译/运行。

Process: gdx-setup.jar with its default build-tools(27.0.3) and default api(27) will produce an error about incorrect api 28 > 27, which may not be relevant to some, but new installations of Android Studio 3.1.4 may encounter this. Used Android studio sdk-manager(tools tab) and downloaded 27.0.3 build-tools and sdk-tools (make sure the "Show package details" is checked for visibility). After installing the above and rerunning gdx-set.jar on defaults, I was able to produce the project and even compile/run on Android studio.

GDX的临时解决方案( 2018年9月):确保Android Studio具有:build-tools 27.0.3 + sdk-tools 27,并使用工具的默认值创建gdx项目(创建gdx项目时两个提示都没有。)

Temporary Solution for GDX(September 2018): Ensure Android Studio has: build-tools 27.0.3 + sdk-tools 27, and create the gdx project using defaults for tools (No to both prompts when creating gdx project).

这篇关于在Android Studio 3.1中构建失败,gradle 4.4类签名者信息与同一包中其他类的签名者信息不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-01 20:46