Status Update
Comments
da...@google.com <da...@google.com>
jo...@google.com <jo...@google.com> #2
can you share your android studio version
jo...@google.com <jo...@google.com> #4
Note: This worked for me on Windows 7 Pro 32-bit (with Android Studio 2.3.3). Seems like an issue with adt-branding module (which should contain the "/idea/AndroidStudioApplicationInfo.xml" resource).
vi...@adobe.com <vi...@adobe.com> #5
Hi, also happened on Mac Book Pro 15 retina mi-2015
MacOs Sierra 10.12.6
Android Studio 2.3.3
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
MacOs Sierra 10.12.6
Android Studio 2.3.3
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
ar...@gmail.com <ar...@gmail.com> #6
Thank you for this feedback. Your feedback helps make sure Android development tools are great! Given your issues has been resolved I am closing this issue.
Description
externalNativeBuild { cmake { arguments "-DANDROID_STL=c++_shared" } }
...executing gradlew ExternalNativeBuildDebug (or building from Android Studio) will compile and link the code and will then copy the requested STL to the lib-directory. Using --info shows
externalNativeBuildDebug: check expected build outputs
externalNativeBuildDebug: copy STL shared object files
externalNativeBuildDebug: copy file /Users/<user>/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/x86/libc++_shared.so to <dir>/build/intermediates/cmake/debug/obj/x86/libc++_shared.so
However, the copying fails if the target directory does not exist! This can happen if I use "set_target_properties( <target> PROPERTIES LIBRARY_OUTPUT_DIRECTORY <dir> )" within my CMakeLists.txt to write my libs to another dir. Unfortunately, the failed copying then breaks the full build!
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':<module>:externalNativeBuildDebug'.
> java.io.FileNotFoundException: <dir>/build/intermediates/cmake/debug/obj/x86/libc++_shared.so (No such file or directory)
If I create the build/intermediates/cmake/debug/obj/x86-dir manually, the build completes. The ExternalNativeBuild-task should create missing directories when copying the <STL>.so file.
Environment Details:
Android Studio 2.3, Build #AI-162.3764568, built on February 24, 2017, JRE: 1.8.0_112-release-b06 x86_64, JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
NDK Version: V14.0.3770861
Build system: gradle 3.3, Android plugin 2.3.0, SDK tools 25.0.2
Compile Sdk Version: API 25
Build tools version: 25.0.2
Host OS: Mac