I tried to build FacebookLoginExample and got below build failed message on MAC sierra.
Build for IOS was successful with same sample.
and other all samples are successful except this one for android target.
KYUNGs-Mac:NativeFacebookLogin kyunghwankim$ uno build --target=Android -DGRADLE --run
Uno 0.46.1 (build 4840) OS X 10.12 i386 3caace9
Configuring
Target is up-to-date – stopping build (pass --force to override)
Building Android app
2/2: FacebookLoginExample.apk
CMake Error at CMakeLists.txt:1632 (target_link_libraries):
Cannot specify link libraries for target “FacebookLoginExample” which is
not built by this project.
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:app:generateJsonModelDebug’.
Build command failed.
Error while executing ‘/Users/kyunghwankim/Library/Android/sdk/cmake/3.6.3155560/bin/cmake’ with arguments {-H/Users/kyunghwankim/Desktop/NativeFacebookLogin/build/Android/Debug -B/Users/kyunghwankim/Desktop/NativeFacebookLogin/build/Android/Debug/FacebookLoginExample/app/.externalNativeBuild/cmake/debug/armeabi-v7a -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi-v7a -DANDROID_NDK=/Users/kyunghwankim/Library/Android/sdk/ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/kyunghwankim/Desktop/NativeFacebookLogin/build/Android/Debug/FacebookLoginExample/app/.externalNativeBuild/cmake/debug/obj/armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/Users/kyunghwankim/Library/Android/sdk/cmake/3.6.3155560/bin/ninja -DCMAKE_TOOLCHAIN_FILE=/Users/kyunghwankim/Library/Android/sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=19}
– CMAKE_C_FLAGS: -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,–noexecstack -Wformat -Werror=format-security
– CMAKE_CXX_FLAGS: -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -Wa,–noexecstack -Wformat -Werror=format-security
– Configuring incomplete, errors occurred!
See also “/Users/kyunghwankim/Desktop/NativeFacebookLogin/build/Android/Debug/FacebookLoginExample/app/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeOutput.log”.
CMake Error at CMakeLists.txt:1632 (target_link_libraries):
Cannot specify link libraries for target “FacebookLoginExample” which is
not built by this project.
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
2/2: FacebookLoginExample.apk
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2500Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72500Library UP-TO-DATE
:app:prepareComAndroidSupportCardviewV72500Library UP-TO-DATE
:app:prepareComAndroidSupportCustomtabs2500Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2340Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72340Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCompat2500Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCoreUi2500Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCoreUtils2500Library UP-TO-DATE
:app:prepareComAndroidSupportSupportFragment2500Library UP-TO-DATE
:app:prepareComAndroidSupportSupportMediaCompat2500Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42500Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2500Library UP-TO-DATE
:app:prepareComFacebookAndroidFacebookAndroidSdk4170Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:app:compileDebugJavaWithJavac UP-TO-DATE
:app:generateJsonModelDebug FAILED
BUILD FAILED
Total time: 9.03 secs
(unknown): E0200: Android build failed
(9.9 s)
Build completed in 10.14 seconds
1 error