Tag Archives: n

Execution failed for task ‘:app:stripDebugDebugSymbols‘.

Android compilation error

Execution failed for task ‘:app:stripDebugDebugSymbols’.

Specific:

solve:

The solution is also given above, that is, an appropriate NDK version is required. Then you can specify the NDK version in build.gradle
 

android {

    ......


    ndkVersion "22.1.7171670"
} 

 

Then compile again and there will be no problem.

ps:

The key to this problem is that it can run normally a few days ago, but it can’t run now!

In retrospect, I upgraded NDK two days ago. It should be caused by this reason.

not found libc++.so

Problem: the installation of install depends on the APK with so library, so it can’t load so normally. Error: not found libc + +. So
for example: system. Loadlibrary (“inittest”);

analysis:

    on Android/prebuilds/tools/GCC SDK, run the following command:
    readelf – DW libinittest. So
    to view the dynamic dependency Library of libinittest. So. Since relying on libc + +. So Android n, Google has contracted the dependent permissions of so library. Only the application under system/APP system/priv app can be relied on. Some so libraries cannot be loaded by the installation application under data/APP
    the following/system/etc/public.libraries.txt is the white list of dynamically dependent libraries. Libc + +. So is not among them

    libandroid.so
    libaaudio.so
    libamidi.so
    libbinder_ndk.so
    libc.so
    libcamera2ndk.so
    libdl.so
    libEGL.so
    libGLESv1_CM.so
    libGLESv2.so
    libGLESv3.so
    libicui18n.so
    libicuuc.so
    libjnigraphics.so
    liblog.so
    libmediandk.so
    libm.so
    libnativewindow.so
    libneuralnetworks.so
    libOpenMAXAL.so
    libOpenSLES.so
    libRS.so
    libstdc++.so
    libsync.so
    libvulkan.so
    libwebviewchromium_plat_support.so
    libz.so
    

    Scheme 1:
    add libc + +. So to the white list

    Scheme 2:
    add the following configuration in the source code android.mk of libinittest.so:

    LOCAL_NDK_STL_VARIANT := c++_static
    LOCAL_SDK_VERSION := 8
    

    Scheme 3:
    copy libc + +. So to the same level directory of libinittest.so in your app to generate APK.