When you built the code did you get an output similar to this? ***************************************** Info ******************************** * Either 'Android API 21' is not installed or 'Android SDK Build Tools * * 20.0.0' is not installed. The Android SDK Manager will now open. Please * * be sure to deselect all options, then select the following 2 packages: * * 1. Under "Tools" select "Android SDK Build-tools" Revision 20. * * 2. Under "Android 5.0.1 (API 21)" select "SDK Platform" * * 3. Continue by selecting "Install 2 Packages" * * * * NOTE: If you have an http proxy, please press ctrl+c now and edit/create * * the following file in your $HOME directory as follows: * * * * Edit/Create file: "$HOME/.android/androidtool.cfg" * * * * http.proxyPort=<YOUR_PORT_NUMBER> * * sdkman.monitor.density=108 * * http.proxyHost=<YOUR_HTTP_PROXY_ADDRESS> * * sdkman.show.update.only=true * * sdkman.ask.adb.restart=false * * sdkman.force.http=true * * sdkman.show.updateonly=true * * * *******************************************************************************
...Opening Android SDK Manager now. Once you are finished, the build will continue. This should have started the Android SDK manager giving you a chance to select and download the Android API 21. Did you select and download API level 21? Not downloading API level 21 is the only thing I can think of that could be causing the problems that you are seeing. If for some reason the Android SDK manager did not launch you can manually launch it using the following command. ./extlibs/android/sdk/android-sdk-linux/tools/android George On Fri, 2017-03-10 at 14:11 +0530, Srinivas Rao wrote: Hi, I installed libcurl, but still its showing the same Error but when I verified , its due to boost library which is not present extlibs/boost/, I coped manually and replaced in that folder. later build went further and again showing error of FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':base:processDebugResources'. > A problem occurred starting process 'command > '/media/srinivas/DATA/IotClient/iotivity-1.2.1/extlibs/android/sdk/android-sdk-linux/build-tools/20.0.0/aapt'' * Try: Run with --info or --debug option to get more log output. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':base:processDebugResources'. Caused by: java.io.IOException: Cannot run program "/media/srinivas/DATA/IotClient/iotivity-1.2.1/extlibs/android/sdk/android-sdk-linux/build-tools/20.0.0/aapt" (in directory "/media/srinivas/DATA/IotClient/iotivity-1.2.1/android/android_api/base"): error=2, No such file or directory at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25) ... 3 more Caused by: java.io.IOException: error=2, No such file or directory ... 4 more On Fri, Mar 10, 2017 at 1:38 PM, JongWoon Lee <sharkvary at gmail.com<mailto:sharkvary at gmail.com>> wrote: Hi. You needs to install libcurl library. Follow these instructions to install. $ sudo apt-get install libcurl4-openssl-dev $ sudo ldconfig 2017-03-10 15:53 GMT+09:00 Srinivas Rao <srinivas.esr at gmail.com<mailto:srinivas.esr at gmail.com>>: Hi, I downloaded latest Iotivity code from https://www.iotivity.org/downloads. and building it for android target OS with the command - scons TARGET_OS= android , but facing error like below. *********************************** Error ************************************* * Cannot build hue sample. Please install libcurl. * Example (Ubuntu): * sudo apt-get install libcurl4-openssl-dev * sudo ldconfig * Hint: check with pkg-config --libs libcurl and clear scons cache. * Skipping hue sample build. ******************************************************************************* can anyone plz suggest to solve it -- Regards, Srinivas _______________________________________________ iotivity-dev mailing list iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at lists.iotivity.org> https://lists.iotivity.org/mailman/listinfo/iotivity-dev -- Regards, Srinivas Rao Elchuri _______________________________________________ iotivity-dev mailing list iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at lists.iotivity.org> https://lists.iotivity.org/mailman/listinfo/iotivity-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170313/e3c9e8ce/attachment.html>
