Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Android Plugin Version: 2.2.3
Version of Gradle: 2.14.1
OS: mac and win
When a native library is build with cmake with ANDROID_STL as c++_shared.so then after libraries are built at desired output location, exception is thrown that libc++_shared.so not found. It is because android studio tries to copy libc++_shared.so from ndk's location to default output directory for native libs.
And since I have changed output directory through cmake variable(CMAKE_LIBRARY_OUTPUT_DIRECTORY), it doesn’t find this default directory to copy the libc++_shared.so into. This issue occurs both on mac and windows.
After further investigation I found that this issue did not exist for android plugin version: 2.2.0
But for its higher version this issue exists. I think its due to the recent change in Android Studio so as to package the standard shared libs into the APK
Below is the failure output
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:externalNativeBuildDebug'.
> java.io.FileNotFoundException:
../androidstudio2/app/build/intermediates/cmake/debug/obj/arm64-v8a/libc++_shared.so (No such file or directory)