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

Duplicate resources #12

Open
xfront opened this issue Jun 8, 2024 · 4 comments
Open

Duplicate resources #12

xfront opened this issue Jun 8, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@xfront
Copy link

xfront commented Jun 8, 2024

Xmake Version

1.1.6

Operating System Version and Architecture

linux mint 21.3

Describe Bug

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':netvpn:mergeDebugJniLibFolders'.

[arm64-v8a/libnetvpn.so] /work/work/netvpn/libs/arm64-v8a/libnetvpn.so [arm64-v8a/libnetvpn.so] /work/work/netvpn/libs/arm64-v8a/libnetvpn.so: Error: Duplicate resources

Expected Behavior

no error

Project Configuration

gradle-8.6
ndk 26.3

Additional Information and Error Logs

Task :netvpn:mergeDebugJniLibFolders FAILED
AGPBI: {"kind":"error","text":"Duplicate resources","sources":[{"file":{"description":"arm64-v8a/libnetvpn.so","path":"/work/work/netvpn/libs/arm64-v8a/libnetvpn.so"}},{"file":{"description":"arm64-v8a/libnetvpn.so","path":"/work/work/netvpn/libs/arm64-v8a/libnetvpn.so"}}],"tool":"Resource and asset merger"}

@xfront xfront added the bug Something isn't working label Jun 8, 2024
@waruqi
Copy link
Member

waruqi commented Jun 8, 2024

please provide a minimal example project

@winter110
Copy link

winter110 commented Aug 28, 2024

please provide a minimal example project
我在android studio上也遇到同样的问题了,附件是我写的demo,我的系统是deepin linux v23,android studio版本是2024.1.1 patch1。
demo.zip

@ifarbod
Copy link
Contributor

ifarbod commented Nov 11, 2024

I also have encountered this issue recently - I think it only happens when building universal APKs

It happens with 1.2.0, but not with 1.1.8

Execution failed for task ':app:mergeDebugJniLibFolders'.
> [arm64-v8a/libmyapplicationcpp2.so] C:\Dev\ProjectsAuxiliary\example-xmake-android-project-new\app\libs\arm64-v8a\libmyapplicationcpp2.so     [arm64-v8a/libmyapplicationcpp2.so] C:\Dev\ProjectsAuxiliary\example-xmake-android-project-new\app\libs\arm64-v8a\libmyapplicationcpp2.so       [arm64-v8a/libmyapplicationcpp2.so] C:\Dev\ProjectsAuxiliary\example-xmake-android-project-new\app\libs\arm64-v8a\libmyapplicationcpp2.so       [arm64-v8a/libmyapplicationcpp2.so] C:\Dev\ProjectsAuxiliary\example-xmake-android-project-new\app\libs\arm64-v8a\libmyapplicationcpp2.so: Error: Duplicate resources
  [arm64-v8a/libmyapplicationcpp2.so] C:\Dev\ProjectsAuxiliary\example-xmake-android-project-new\app\libs\arm64-v8a\libmyapplicationcpp2.so     [arm64-v8a/libmyapplicationcpp2.so] C:\Dev\ProjectsAuxiliary\example-xmake-android-project-new\app\libs\arm64-v8a\libmyapplicationcpp2.so       [arm64-v8a/libmyapplicationcpp2.so] C:\Dev\ProjectsAuxiliary\example-xmake-android-project-new\app\libs\arm64-v8a\libmyapplicationcpp2.so       [arm64-v8a/libmyapplicationcpp2.so] C:\Dev\ProjectsAuxiliary\example-xmake-android-project-new\app\libs\arm64-v8a\libmyapplicationcpp2.so: Error: Duplicate resources
  [arm64-v8a/libmyapplicationcpp2.so] C:\Dev\ProjectsAuxiliary\example-xmake-android-project-new\app\libs\arm64-v8a\libmyapplicationcpp2.so     [arm64-v8a/libmyapplicationcpp2.so] C:\Dev\ProjectsAuxiliary\example-xmake-android-project-new\app\libs\arm64-v8a\libmyapplicationcpp2.so       [arm64-v8a/libmyapplicationcpp2.so] C:\Dev\ProjectsAuxiliary\example-xmake-android-project-new\app\libs\arm64-v8a\libmyapplicationcpp2.so       [arm64-v8a/libmyapplicationcpp2.so] C:\Dev\ProjectsAuxiliary\example-xmake-android-project-new\app\libs\arm64-v8a\libmyapplicationcpp2.so: Error: Duplicate resources

@ifarbod
Copy link
Contributor

ifarbod commented Nov 11, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants