AndroidEmptyExample error

Hello I’m newbie trying to get familiar with android version of open frameworks.
I’m trying to build with android studio. And having trouble getting over below error.

  • I’m using master branch.
  • MacOS 10.10.5
  • Android Studio environment.

I’m getting compiler error even before I get to the main project.
It’s in task NDKSetup

Executing tasks: [clean, :]

Configuration on demand is an incubating feature.
ofNdkSetup
HOST_OS=Darwin
HOST_ARCH=x86_64
make: Entering directory /Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample' Compiling OF library for Debug /usr/local/adt-bundle-mac-x86_64/android-ndk-r10e/prebuilt/darwin-x86_64/bin/make -C/Users/y/Workspace/openFrameworks/libs/openFrameworksCompiled/project/ Debug PLATFORM_OS=Android ABIS_TO_COMPILE_DEBUG="armv7" HOST_OS=Darwin HOST_ARCH=x86_64 make[1]: Entering directory/Users/y/Workspace/openFrameworks/libs/openFrameworksCompiled/project’
HOST_OS=Darwin
HOST_ARCH=x86_64

HOST_OS=Darwin
HOST_ARCH=x86_64
Done!
make[1]: Leaving directory `/Users/y/Workspace/openFrameworks/libs/openFrameworksCompiled/project’

Compiling androidEmptyExample for Debug
HOST_OS=Darwin
HOST_ARCH=x86_64
make[1]: Entering directory /Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample' make[1]: Leaving directory/Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample’

HOST_OS=Darwin
HOST_ARCH=x86_64
make[1]: Entering directory `/Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample’
compressing and copying resources from bin/data into res
cd “/Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample”;
if [ -d “bin/data” ]; then
mkdir -p res/raw;
rm res/raw/ofdataresources.zip;
cd bin/data;
if [ “darwin-x86_64” = “windows” ]; then
echo “Windows Platform. Running Zip…”;
cmd //c …\…\…\…\…\libs\openFrameworksCompiled\project\android\windows\zip -r …/…/res/raw/ofdataresources.zip * && exit;
else
zip -r …/…/res/raw/ofdataresources.zip *;
fi;
cd …/…;
fi
zip warning: name not matched: *

zip error: Nothing to do! (try: zip -r …/…/res/raw/ofdataresources.zip . -i *)
copying debugging binaries for armv7
create gdb.setup for armeabi-v7a
creating Android.mk and Application.mk
#@echo updating ofAndroidLib project
#@cd/Users/y/Workspace/openFrameworks/addons/ofxAndroid/ofAndroidLib;
#if [ “darwin-x86_64” = “windows” ]; then
# cmd //c /tools/android.bat update project --target android-21 --path .;
#else
# /tools/android update project --target android-21 --path .;
#fi
#@echo updating current project
#@cd/Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample;
#if [ “darwin-x86_64” = “windows” ]; then
# cmd //c /tools/android.bat update project --target android-21 --path .;
#else
# /tools/android update project --target android-21 --path .;
#fi
make[1]: Leaving directory /Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample' make: Leaving directory/Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample’
rm: res/raw/ofdataresources.zip: No such file or directory
HOST_OS=Darwin
HOST_ARCH=x86_64
make: Entering directory /Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample' Compiling OF library for Release HOST_OS=Darwin HOST_ARCH=x86_64 make[1]: Entering directory/Users/y/Workspace/openFrameworks/libs/openFrameworksCompiled/project’
HOST_OS=Darwin
HOST_ARCH=x86_64
HOST_OS=Darwin
HOST_ARCH=x86_64
HOST_OS=Darwin
HOST_ARCH=x86_64

HOST_OS=Darwin
HOST_ARCH=x86_64
Done!
make[1]: Leaving directory `/Users/y/Workspace/openFrameworks/libs/openFrameworksCompiled/project’

Compiling androidEmptyExample for Release
HOST_OS=Darwin
HOST_ARCH=x86_64
make[1]: Entering directory /Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample' make[1]: Leaving directory/Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample’
HOST_OS=Darwin
HOST_ARCH=x86_64
make[1]: Entering directory /Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample' Linking libs/armeabi-v7a/libOFAndroidApp_neon.so for android/armeabi-v7a /usr/local/adt-bundle-mac-x86_64/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++ -o libs/armeabi-v7a/libOFAndroidApp_neon.so -s obj/android/neon/Release/src/main.o obj/android/neon/Release/src/ofApp.o/Users/y/Workspace/openFrameworks/addons/obj/android/neon/Release/ofxAndroid/src/ofAppAndroidWindow.o/Users/y/Workspace/openFrameworks/addons/obj/android/neon/Release/ofxAndroid/src/ofxAndroidAccelerometer.o/Users/y/Workspace/openFrameworks/addons/obj/android/neon/Release/ofxAndroid/src/ofxAndroidGPS.o/Users/y/Workspace/openFrameworks/addons/obj/android/neon/Release/ofxAndroid/src/ofxAndroidLogChannel.o/Users/y/Workspace/openFrameworks/addons/obj/android/neon/Release/ofxAndroid/src/ofxAndroidSoundPlayer.o/Users/y/Workspace/openFrameworks/addons/obj/android/neon/Release/ofxAndroid/src/ofxAndroidSoundStream.o/Users/y/Workspace/openFrameworks/addons/obj/android/neon/Release/ofxAndroid/src/ofxAndroidUtils.o/Users/y/Workspace/openFrameworks/addons/obj/android/neon/Release/ofxAndroid/src/ofxAndroidVibrator.o/Users/y/Workspace/openFrameworks/addons/obj/android/neon/Release/ofxAndroid/src/ofxAndroidVideoGrabber.o/Users/y/Workspace/openFrameworks/addons/obj/android/neon/Release/ofxAndroid/src/ofxAndroidVideoPlayer.o/Users/y/Workspace/openFrameworks/addons/obj/android/neon/Release/ofxAccelerometer/src/ofxAccelerometer.o/Users/y/Workspace/openFrameworks/libs/openFrameworksCompiled/lib/android/neon/libopenFrameworks.a --sysroot=/usr/local/adt-bundle-mac-x86_64/android-ndk-r10e/platforms/android-19/arch-arm/ -nostdlib -L"/usr/local/adt-bundle-mac-x86_64/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a" -Wl,--fix-cortex-a8 -shared -Wl,--no-undefined -Wl,--as-needed -Wl,--gc-sections -Wl,--exclude-libs,ALL/Users/y/Workspace/openFrameworks/libs/FreeImage/lib/android/armeabi-v7a/libfreeimage.a/Users/y/Workspace/openFrameworks/libs/boost/lib/android/armeabi-v7a/libboost_filesystem.a/Users/y/Workspace/openFrameworks/libs/boost/lib/android/armeabi-v7a/libboost_system.a/Users/y/Workspace/openFrameworks/libs/freetype/lib/android/armeabi-v7a/libfreetype.a/Users/y/Workspace/openFrameworks/libs/glu/lib/android/armeabi-v7a/libGLU.a/Users/y/Workspace/openFrameworks/libs/tess2/lib/android/armeabi-v7a/libtess2.a /Users/y/Workspace/openFrameworks/libs/poco/lib/android/armeabi-v7a/libPocoNetSSL.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/armeabi-v7a/libPocoNet.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/armeabi-v7a/libPocoCrypto.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/armeabi-v7a/libPocoJSON.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/armeabi-v7a/libPocoMongoDB.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/armeabi-v7a/libPocoDataSQLite.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/armeabi-v7a/libPocoData.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/armeabi-v7a/libPocoUtil.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/armeabi-v7a/libPocoXML.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/armeabi-v7a/libPocoFoundation.a/Users/y/Workspace/openFrameworks/libs/openssl/lib/android/armeabi-v7a/libssl.a/Users/y/Workspace/openFrameworks/libs/openssl/lib/android/armeabi-v7a/libcrypto.a -lOpenSLES -lsupc++ -lz -lGLESv1_CM -lGLESv2 -llog -ldl -lm -lc -lgnustl_static -lgcc make[1]: Leaving directory/Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample’
HOST_OS=Darwin
HOST_ARCH=x86_64
make[1]: Entering directory /Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample' Linking libs/x86/libOFAndroidApp_x86.so for android/x86 /usr/local/adt-bundle-mac-x86_64/android-ndk-r10e/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-g++ -o libs/x86/libOFAndroidApp_x86.so -s obj/android/x86/Release/src/main.o obj/android/x86/Release/src/ofApp.o/Users/y/Workspace/openFrameworks/addons/obj/android/x86/Release/ofxAndroid/src/ofAppAndroidWindow.o/Users/y/Workspace/openFrameworks/addons/obj/android/x86/Release/ofxAndroid/src/ofxAndroidAccelerometer.o/Users/y/Workspace/openFrameworks/addons/obj/android/x86/Release/ofxAndroid/src/ofxAndroidGPS.o/Users/y/Workspace/openFrameworks/addons/obj/android/x86/Release/ofxAndroid/src/ofxAndroidLogChannel.o/Users/y/Workspace/openFrameworks/addons/obj/android/x86/Release/ofxAndroid/src/ofxAndroidSoundPlayer.o/Users/y/Workspace/openFrameworks/addons/obj/android/x86/Release/ofxAndroid/src/ofxAndroidSoundStream.o/Users/y/Workspace/openFrameworks/addons/obj/android/x86/Release/ofxAndroid/src/ofxAndroidUtils.o/Users/y/Workspace/openFrameworks/addons/obj/android/x86/Release/ofxAndroid/src/ofxAndroidVibrator.o/Users/y/Workspace/openFrameworks/addons/obj/android/x86/Release/ofxAndroid/src/ofxAndroidVideoGrabber.o/Users/y/Workspace/openFrameworks/addons/obj/android/x86/Release/ofxAndroid/src/ofxAndroidVideoPlayer.o/Users/y/Workspace/openFrameworks/addons/obj/android/x86/Release/ofxAccelerometer/src/ofxAccelerometer.o/Users/y/Workspace/openFrameworks/libs/openFrameworksCompiled/lib/android/x86/libopenFrameworks.a --sysroot=/usr/local/adt-bundle-mac-x86_64/android-ndk-r10e/platforms/android-19/arch-x86/ -nostdlib -L"/usr/local/adt-bundle-mac-x86_64/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86" -shared -Wl,--no-undefined -Wl,--as-needed -Wl,--gc-sections -Wl,--exclude-libs,ALL/Users/y/Workspace/openFrameworks/libs/FreeImage/lib/android/x86/libfreeimage.a/Users/y/Workspace/openFrameworks/libs/boost/lib/android/x86/libboost_filesystem.a/Users/y/Workspace/openFrameworks/libs/boost/lib/android/x86/libboost_system.a/Users/y/Workspace/openFrameworks/libs/freetype/lib/android/x86/libfreetype.a/Users/y/Workspace/openFrameworks/libs/tess2/lib/android/x86/libtess2.a /Users/y/Workspace/openFrameworks/libs/poco/lib/android/x86/libPocoNetSSL.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/x86/libPocoNet.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/x86/libPocoCrypto.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/x86/libPocoJSON.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/x86/libPocoMongoDB.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/x86/libPocoDataSQLite.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/x86/libPocoData.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/x86/libPocoUtil.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/x86/libPocoXML.a/Users/y/Workspace/openFrameworks/libs/poco/lib/android/x86/libPocoFoundation.a/Users/y/Workspace/openFrameworks/libs/openssl/lib/android/x86/libssl.a/Users/y/Workspace/openFrameworks/libs/openssl/lib/android/x86/libcrypto.a -lOpenSLES -lsupc++ -lz -lGLESv1_CM -lGLESv2 -llog -ldl -lm -lc -lgnustl_static -lgcc make[1]: Leaving directory/Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample’

HOST_OS=Darwin
HOST_ARCH=x86_64
make[1]: Entering directory `/Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample’
compressing and copying resources from bin/data into res
cd “/Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample”;
if [ -d “bin/data” ]; then
mkdir -p res/raw;
rm res/raw/ofdataresources.zip;
cd bin/data;
if [ “darwin-x86_64” = “windows” ]; then
echo “Windows Platform. Running Zip…”;
cmd //c …\…\…\…\…\libs\openFrameworksCompiled\project\android\windows\zip -r …/…/res/raw/ofdataresources.zip * && exit;
else
zip -r …/…/res/raw/ofdataresources.zip *;
fi;
cd …/…;
fi
zip warning: name not matched: *

zip error: Nothing to do! (try: zip -r …/…/res/raw/ofdataresources.zip . -i *)
copying debugging binaries for armv7 neon x86
create gdb.setup for armeabi-v7a
create gdb.setup for x86
creating Android.mk and Application.mk
#@echo updating ofAndroidLib project
#@cd/Users/y/Workspace/openFrameworks/addons/ofxAndroid/ofAndroidLib;
#if [ “darwin-x86_64” = “windows” ]; then
# cmd //c /tools/android.bat update project --target android-21 --path .;
#else
# /tools/android update project --target android-21 --path .;
#fi
#@echo updating current project
#@cd/Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample;
#if [ “darwin-x86_64” = “windows” ]; then
# cmd //c /tools/android.bat update project --target android-21 --path .;
#else
# /tools/android update project --target android-21 --path .;
#fi
make[1]: Leaving directory /Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample' make: Leaving directory/Users/y/Workspace/openFrameworks/examples/android/androidEmptyExample’
rm: res/raw/ofdataresources.zip: No such file or directory

FAILURE: Build failed with an exception.

  • What went wrong:
    Task ‘’ not found in root project ‘androidEmptyExample’.

  • Try:
    Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 17.258 secs