cundong / cundong/SmartAppUpdates

生成so库的时候报错

Open
#18 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
2.7k
Forks
820
Avg merge
41m
Merged PRs (30d)
1

Description

D:/Users/""/AppData/Local/Android/sdk/ndk-bundle/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: D:""\workspace-as\mvp\MyNewUpdatelib\app\build\intermediates\ndk\debug\obj/local/armeabi-v7a/objs/ApkPatchLibrary/D_""\workspace-as\mvp\MyNewUpdatelib\app\src\main\jni\bzip2\blocksort.o: multiple definition of 'BZ2_blockSort'
D:/Users/""/AppData/Local/Android/sdk/ndk-bundle/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: D:""\workspace-as\mvp\MyNewUpdatelib\app\build\intermediates\ndk\debug\obj/local/armeabi-v7a/objs/ApkPatchLibrary/D_""\workspace-as\mvp\MyNewUpdatelib\app\src\main\jni\com_cundong_utils_PatchUtils.o: previous definition here

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Android NDK linker output in the issue and inspect the native build inputs under app/src/main/jni. Compare blocksort.o and com_cundong_utils_PatchUtils.o, which both report a definition of BZ2_blockSort. Done means the armeabi-v7a shared-library build completes without the multiple-definition error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c
Domain
build-system, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.