Fredrik wrote:I've never seen this error before, and I can't reproduce it either.
Sorry, but I don't think I can be of any help here.
Many thanks Fredrik for giving it a try. I switch to Ubuntu in one of my Laptops to see how far I can get it to work.
I setup everythig and path, get cordova tested, built Apps with cordova-cli and deploy them into my tablets. Everything seems to be working apart from cordova from a call from evothings not finding the android path. I got the errors below:
git ls-remote https://github.com/don/BluetoothSerial.git HEAD
cordova build android
Running command: /home/sanyaade/evothings/EvoThingsClient/platforms/android/cordova/build
[Error: An error occurred while listing Android targets]
Error: /home/sanyaade/evothings/EvoThingsClient/platforms/android/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
/home/sanyaade/evothings/EvoThingsClient/utils.rb:11:in `sh': Command failed (RuntimeError)
from workfile.rb:381:in `build'
from workfile.rb:389:in `<main>'
buildHyper.rb:279:in `sh': undefined method `error' for main:Object (NoMethodError)
from buildPlugin.rb:136:in `buildEvoThingsClient'
from buildPlugin.rb:130:in `buildPreProcess'
from buildHyper.rb:219:in `buildDist'
from buildHyper.rb:325:in `<top (required)>'
from build.rb:11:in `load'
from build.rb:11:in `<main>'
sanyaade@sanyaade-Satellite-Pro-L300:~/evothings/EvoThingsStudio$
From the above the line
Running command: /home/sanyaade/evothings/EvoThingsClient/platforms/android/cordova/build
[Error: An error occurred while listing Android targets]
Error: /home/sanyaade/evothings/EvoThingsClient/platforms/android/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
shows that cordova is not finding the Android tools and the platform-tools fold when call from inside EvothingsClient. I have export the those folders path in ~/.bashrc. I could run cordova-cli from command line, so also the android, andriod avd all from command line. SDK API 19, 18, 17, 16 were installed. I even create avd emulator just to cover many areas but cordova seems to stop at those point during the build process.
Do I need to put the Android libraries in a particular folder? I went through the workfile.rub, cordova build but I could not find anything.
Has anybody encounter this same error? If I want to buy the evothings workbench alone, which configuration do I need to disable the client from?
Many thanks to you, Mikael and everybody.
Hear from you soon!
God blesses!!!
Best regards,
Sanyaade