Git Product home page Git Product logo

Comments (5)

wangkunlin avatar wangkunlin commented on August 17, 2024

我的也编译不通过,使用 百度云下载的 apk 里面的 so 是 64 的,但是我要dump 的是 32 的程序,加载失败。过不去了

from dumpdex.

0xffc2 avatar 0xffc2 commented on August 17, 2024

我是这样解决的

build.gradle 注释的 ndk abiFilters 取消注释 改为
ndk { abiFilters "armeabi-v7a","arm64-v8a" }

CMakeLists.txt 后面增加

if(${ANDROID_ABI} STREQUAL "armeabi-v7a")
include_directories(${ANDROID_SYSROOT}/usr/include/arm-linux-androideabi)
elseif(${ANDROID_ABI} STREQUAL "arm64-v8a")
include_directories(${ANDROID_SYSROOT}/usr/include/aarch64-linux-android)
else()
include_directories(${ANDROID_SYSROOT}/usr/include/x86_64-linux-android)
endif()

from dumpdex.

wangkunlin avatar wangkunlin commented on August 17, 2024

找到解决办法了,把 app.gradle 里的

 ndk { // 注释解开
            abiFilters "armeabi", "armeabi-v7a","arm64-v8a"
        }

然后,在 CMakeLists.txt 增加下面的代码

if(${ANDROID_ABI} STREQUAL "armeabi-v7a")
    include_directories(${ANDROID_SYSROOT}/usr/include/arm-linux-androidabi)
elseif(${ANDROID_ABI} STREQUAL "arm64-v8a")
    include_directories(${ANDROID_SYSROOT}/usr/include/aarch64-linux-android)
else()
    include_directories(${ANDROID_SYSROOT}/usr/include/arm-linux-androidabi)
endif()

编译就能通过了。

from dumpdex.

wangkunlin avatar wangkunlin commented on August 17, 2024

@McPan 可以,估计我们看的是同一个文章解决的

from dumpdex.

wangkunlin avatar wangkunlin commented on August 17, 2024

参考链接

from dumpdex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.