Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uni app 打包失败 #15

Open
marvin436 opened this issue Oct 12, 2021 · 10 comments
Open

uni app 打包失败 #15

marvin436 opened this issue Oct 12, 2021 · 10 comments

Comments

@marvin436
Copy link

应该是HBuilderX升级后的原因 不知道官方是否也能同步升级下引用的第三方库至com.google.code.findbugs:jsr305:3.0.1

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkReleaseDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class javax.annotation.CheckForNull found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.CheckForSigned found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.CheckReturnValue found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.Detainted found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.MatchesPattern found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.MatchesPattern$Checker found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.Nonnegative found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.Nonnegative$Checker found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.Nonnull found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.Nonnull$Checker found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.Nullable found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.OverridingMethodsMustInvokeSuper found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.ParametersAreNonnullByDefault found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.ParametersAreNullableByDefault found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.PropertyKey found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.RegEx found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.RegEx$Checker found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.Signed found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.Syntax found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.Tainted found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.Untainted found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.WillClose found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.WillCloseWhenClosed found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.WillNotClose found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.concurrent.GuardedBy found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.concurrent.Immutable found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.concurrent.NotThreadSafe found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.concurrent.ThreadSafe found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.meta.Exclusive found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.meta.Exhaustive found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.meta.TypeQualifier found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.meta.TypeQualifierDefault found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.meta.TypeQualifierNickname found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.meta.TypeQualifierValidator found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)
Duplicate class javax.annotation.meta.When found in modules jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 (com.google.code.findbugs:jsr305:3.0.1)

@llt3677
Copy link

llt3677 commented Oct 25, 2021

遇到了同样的问题,请问你是怎么解决的?

@QWK-001
Copy link

QWK-001 commented Oct 25, 2021

打包使用的是云打包还是本地打包?本地打包目前还没有测试过。可优先考虑云打包

@marvin436
Copy link
Author

就是使用的云打包,目前发现在3.2.2版本中可以正常打包,3.2.11-alpha今天测试也可以打包。就目前的版本3.2.9打包失败

@QWK-001
Copy link

QWK-001 commented Oct 25, 2021

好的,我们近期关注一下这个问题

@jackbuy
Copy link

jackbuy commented Nov 10, 2021

遇到了同样的问题,安卓包无法 云打包成功,ios 却能打包成功。试过了很多个builderx 版本(3.1.9、3.2.2、3.2.3、3.2.9、3.2.12)都不行。都是报 jetified-jsr305-3.0 (jsr305-3.0.0.jar) and jetified-jsr305-3.0.1 这样的错。目前严重影响到了项目开发,希望尽快给出一个解决方案啊

@QWK-001
Copy link

QWK-001 commented Nov 10, 2021

遇到了同样的问题,安卓包无法云打包成功,ios却能打包成功。试过了很多builderx版本(3.1.9、3.2.2、3.2.3、3.2.9、3.2.12)都不行。都是报jetified-jsr305-3.0(jsr305-3.0.0.jar)和jetified-jsr305-3.0.1这样的错误。当前严重影响到了项目开发,希望尽快给出一个解决方案啊

用的什么版本的sdk?

@jackbuy
Copy link

jackbuy commented Nov 10, 2021

最开始 用的 wxsdk3.4.1-beta.js,现在用的 uni_sdk4.0.0.js 都不行了

@QWK-001
Copy link

QWK-001 commented Nov 10, 2021

那麻烦先使用 sdk3.6.3 的稳定版本

最开始 用的 wxsdk3.4.1-beta.js,现在用的 uni_sdk4.0.0.js 都不行了

@jy-yd-123
Copy link

遇到了同样的问题,ios却能成功解决问题。安卓版本成功启动了很多个(3.1.9、3.2.2、3.2.3、3.2.9、3.2.12)个builderx。都是报jetified-jsr305-3.0(jsr305-3.0.0.jar)和jetified-jsr305-3.0.1这样的错误。目前影响到了项目的开发,希望尽快提出一个解决方案啊

+1

@jy-yd-123
Copy link

遇到了同样的问题,ios却能成功解决问题。安卓版本成功启动了很多(3.1.9、3.2.2、3.2.3、3.2.9、3.2.12)个builderx。都是报jetified-jsr305 -3.0(jsr305-3.0.0.jar)和jetified-jsr305-3.0.1这样的错误。目前影响项目的开发啊,希望尽快提出解决方案

+1

打包一直失败,自定义基座也是

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants