Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Building Paho Android

Hi Karthik,
 
It looks like you haven't got a local.properties file in the root of your project.
 
You will need to create one either manually, or by importing the project into Android Studio. It needs to contain a sdk.dir property pointing at the location of your installed Android SDK. Mine looks like this:
 
## This file is automatically generated by Android Studio.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Mon Oct 10 16:07:35 BST 2016
sdk.dir=/Users/jamessutton/Library/Android/sdk
 
Kind regards,
 
James Sutton
Software Engineer - IoT Foundation - MQTT Open Source Projects
Ops Team - Wimbledon Project

Phone: 01962 815438 | Extension: x372454
E-mail: 
Personal Website: www.jsutton.co.uk
Find me on:      
IBM

Hursley Park
HursleySO212JN
United Kingdom
 
IBM United Kingdom Limited Registered in England and Wales with number 741598 Registered office: PO Box 41, North Harbour, Portsmouth, Hants. PO6 3AU
 
 
----- Original message -----
From: Karthik M <karthik@xxxxxxxxxxxxxxxx>
Sent by: paho-dev-bounces@xxxxxxxxxxx
To: paho-dev@xxxxxxxxxxx
Cc:
Subject: [paho-dev] Building Paho Android
Date: Mon, Dec 12, 2016 12:07 PM
 
Hi All,
 
I am trying build Paho Android by following the instructions on the page: https://eclipse.org/paho/clients/android/
 
I executed the following command:
 
gradlew.bat clean assemble exportJar  
 
During the build, I am getting the following error:
Can you tell me how I can over come this error?
 
FAILURE: Build failed with an exception.
 
* Where:
Build file 'C:\Users\normal\Documents\PahoMQTT\paho.mqtt.android\build.gradle' line: 40
 
* What went wrong:
A problem occurred evaluating root project 'paho.mqtt.android'.
> C:\Users\normal\Documents\PahoMQTT\paho.mqtt.android\local.properties (The system cannot find the file specified)
 
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
 
BUILD FAILED
 
Total time: 59.2 secs
 
Regards,
Karthik 
 
 
--

Regards,
Karthik

_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev
 
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


Back to the top