FacebookLoginExample build error

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

Hi, first off thanks for reporting this. This helped us find a bug in how we are generating the CMakeLists file. I’m going to get a hotfix made so we can get this into the next release.

The temporary workaround is to remove this line "Activity": "MainActivity", from your the unoproj

Thanks again!

I’ve tried it again after removing above line and got below error.

KYUNGs-Mac:NativeFacebookLogin kyunghwankim$ uno build --target=Android -DGRADLE --run
Uno 0.46.1 (build 4840) OS X 10.12 i386 3caace9

Configuring (0.9 s)
Compiling syntax tree (2.9 s)
Generating code and data (11.1 s)
Building Android app
2/2: FacebookLoginExample.apk
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
ninja: error: ‘/Users/kyunghwankim/Library/Application’, needed by ‘…/obj/armeabi-v7a/libFacebookLoginExample.so’, missing and no known rule to make it

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:externalNativeBuildDebug’.

Build command failed.
Error while executing ‘/Users/kyunghwankim/Library/Android/sdk/cmake/3.6.3155560/bin/cmake’ with arguments {–build /Users/kyunghwankim/Desktop/NativeFacebookLogin/build/Android/Debug/FacebookLoginExample/app/.externalNativeBuild/cmake/debug/armeabi-v7a --target FacebookLoginExample}
ninja: error: ‘/Users/kyunghwankim/Library/Application’, needed by ‘…/obj/armeabi-v7a/libFacebookLoginExample.so’, missing and no known rule to make it

  • 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
:app:prepareComAndroidSupportAppcompatV72500Library
:app:prepareComAndroidSupportCardviewV72500Library
:app:prepareComAndroidSupportCustomtabs2500Library
:app:prepareComAndroidSupportDesign2340Library
:app:prepareComAndroidSupportRecyclerviewV72340Library
:app:prepareComAndroidSupportSupportCompat2500Library
:app:prepareComAndroidSupportSupportCoreUi2500Library
:app:prepareComAndroidSupportSupportCoreUtils2500Library
:app:prepareComAndroidSupportSupportFragment2500Library
:app:prepareComAndroidSupportSupportMediaCompat2500Library
:app:prepareComAndroidSupportSupportV42500Library
:app:prepareComAndroidSupportSupportVectorDrawable2500Library
:app:prepareComFacebookAndroidFacebookAndroidSdk4180Library
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
:app:processDebugManifest
:app:processDebugResources
:app:generateDebugSources
:app:incrementalDebugJavaCompilationSafeguard
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
:app:generateJsonModelDebug
:app:externalNativeBuildDebug
building /Users/kyunghwankim/Desktop/NativeFacebookLogin/build/Android/Debug/FacebookLoginExample/app/.externalNativeBuild/cmake/debug/obj/armeabi-v7a/libFacebookLoginExample.so
:app:externalNativeBuildDebug FAILED

BUILD FAILED

Total time: 27.805 secs
(unknown): E0200: Android build failed
(27.5 s)

Build completed in 42.42 seconds
1 error

That’s sadly a separate bug. It is fixed in the next release. For now the workaround is here: https://github.com/cbaggers/Fuse.Firebase/issues/36

Thanks for your patience with this, it’s been a tricky transition.

rakes