Error loading package (JNI) - cannot locate symbol “__aeabi_memcpy”

前端 未结 1 1938
梦谈多话
梦谈多话 2021-01-07 03:42

I am working on a sample app that I\'m trying to modify slightly (dlib). The sample uses a C++ library that is called using JNI (its a .so file). The library that comes with

相关标签:
1条回答
  • 2021-01-07 04:07

    This is a new BUG in android studio introduced by the brand new Nougat (24) SDK, if you Rollback everything to Marshmallow (23) all will be fine. until the Android Studio Team Fix that.

    Problem: If you compile With (24) And Targeting (24) and install the apk in a device with (23), the device will not found your library, BUT, if you install the apk in any other device version 2.33 to 5, and 7/Nougat ( except marshmallow ). all will work fine. TESTED.

    Solution: Compile With (23) and Targeting (23), and sit down&wait for the Fix. TESTED.

    My Environment: i made all Android Studio updates in the last week. ( NDK 13, Nougat and Marshmallow with latest Emulators, and real devices android 4, 5, 6.).

    Hope the Android Studio will hear about this problem, because if it is not fixed soon, will be a nightmare in the coming weeks in play store. for the marshmallow users.

    EDIT: After upgrading To Android Studio 2.2 (Build #AI-145.3276617 on september 15 2016) the day was released ( September 19 ). i was able to Compile with 24, targeting 24 and running in every device Android Gingerbread To Nougat. both, Emulated and Real. Just as it should be.

    0 讨论(0)
提交回复
热议问题