I am new to calabash-android , i am getting the following error while executing "rake build " command .
C:\calabash-android\ruby-gem>rake build
rake aborted!
cannot load such file -- C:/Ruby193/lib/ruby/gems/1.9.1/gems/popen4-0.1.2/lib/op
en3
lib/calabash-android/helpers.rb:6:in `'
C:/calabash-android/ruby-gem/Rakefile:2:in `load'
C:/calabash-android/ruby-gem/Rakefile:2:in `'
(See full trace by running task with --trace)
These are the steps i have followed
git clone https://github.com/calabash/calabash-android.git
git submodule init
git submodule update
i used gem install popen4
but i again same error
Please help me .
Run the same command, adding --trace at the end, and then post the results, so we have more information available for debugging.
Also, have you tried gem update --system and then gem update popen4? This might solve any issues with the gem.
Why are you trying to build the calabash-android gem itself?
If you don't intend to modify it internally, just install it via gem install calabash-android and you're good to go!
Related
I am following the instructions here to build chromium project for android on ubuntu 14.04. I was able to successfully check out the code, now I'm trying to configure the build. I'm using GN to configure, so I run "gn args out/Default", however I get this error: gn.py: Could not find gn executable at: /home/moon/chromium/src/buildtools/linux64/gn
All I have in that above folder is sha1 files, I don't seem to have python files. However, I had not received any errors during checkout process. What am I doing wrong and how can I fix this?
Thanks a lot!
I had the same problem as you but I managed to build Chromium finally.
Most probably, you may not successfully install any necessary dependencies.
Since you are on Linux, run the following command under src:
$ ./build/install-build-deps.sh
After this you can rerun the command:
$ gn gen out/Default
After giving credit to Brett Wilson, run:
gclient runhooks
It worked for me.
There could be a problem with my configuration, but I cannot figure out what's wrong. I am trying to get appium set up on a Mac for automated testing.
I am running this command:
./reset.sh --android --verbose
I always fail on this step:
* Building Android bootstrap
Running "buildAndroidBootstrap" task
Fatal error: Error finding ant binary, is it on your path?
---- FAILURE: reset.sh exited with status 1 ----
My path is as follows:
# Android and appium config
export ANDROID_HOME=/usr/local/opt/android-sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
What am I doing wrong? Is my path missing something crucial? Googling to try and find out what the ant library is hasn't yielded me much results - what is it? Any help appreciated.
Turns out ant is an apache tool, without which reset.sh will fail for Android. Installing ant with brew fixed the problem.
When I try to build my app, using Linux ElementaryOS (Ubuntu 12.04 (I think?)) I get thousands of errors saying:
rm: could not remove file (code EACCESS)
The results of the following show:
$ phonegap -v
3.5.0-0.20.4
$ cordova -v
3.5.0-0.2.4
$ ant -v
Apache Ant(TM) version 1.8.2 compiled on December 3 2011
Trying the default build file: build.xml
Buildfile: build.xml does not exist!
Build failed
Any suggestions? I've been battling through several errors for about a week now :(
Thanks in advance!
Update
Update I just changes the permissions of platforms/android too 777 (not a great solution I know). It's now giving me the following:
[Error: An error occurred while listing Android targets] { [Error: /var/www/ppl/app/platforms/android/cordova/build: Command failed with exit code 2] code: 2 } –
Okay, after much pain and anguish... I figured it out.
1). I installed ANT after I installed ionic/cordova/phonegap etc, the best order to install everything in is, java, ant, then cordova/phonegap/ionic.
2). I'm using 64-bit Ubuntu, if you are using the same then you need to install several android 32-bit libs.
3). I deleted the entire project (apart from my css, added js files and my html templates), created a new one using $ ionic start test-app then I ran $ ionic platform add android then ran $ ionic run android and it worked.
4). Make sure your paths are correct in ~/.bashrc mine look as followed:
export PATH=$PATH:/home/ewan/adt-bundle/tools
export PATH=$PATH:/home/ewan/adt-bundle/platform-tools
Here's a video that helped me, especially with the 32-bit libs. https://www.youtube.com/watch?v=zEQIwKK7YjY
Don't give up, it's worth it in the end. Best of luck!
I am currently attempting to build tess-two for an OCR android application via command line as instructed on https://github.com/rmtheis/tess-two. This is done on my macbook, OSX 10.9.4.
In order to build tess-two, this must be typed into command line:
$ 1git clone git://github.com/rmtheis/tess-two tess
$ cd tess
$ cd tess-two
$ ndk-build
$ android update project --path .
$ ant release
I encountered a problem as soon as I enter:
$ android update project --path .
This is the error displayed:
-bash: android: command not found
I have spend many hours trying to remedy this, and so far nothing fruitful has come of it. I appreciate any suggestions. Thanks.
This means the android command is not in your PATH. Try typing which android. It should give you the location if it is within your PATH.
Usually android can be found in your SDK directory under tools
You've got two options:
run the command with your_sdk_path/tools/android update project --paht
add android to your PATH with
export PATH=$PATH:/your_sdk_path/tools
You must have downloaded Android Development Toolkit bundle first. https://developer.android.com/sdk/index.html?hl=sk#mac-bundle
Then add /sdk/tools to your path.
I hope you know how to configure your path. If you are not sure please have a look at this : http://www.cyberciti.biz/faq/appleosx-bash-unix-change-set-path-environment-variable/
How can I build and signed (keystore) the .apk file using 'apkbuilder.bat' via windows command-line ?
I try to run the following line:
apkbuilder.bat %APK_File_Name% -u -z %Project_Path%\bin\resources.ap_ -f %Project_Path%\bin\classes.dex -rf %Project_Path%
but I'm getting the following exception:
java.lang.ArrayIndexOutOfBoundsException: 1
at com.android.sdklib.build.ApkBuilderMain.main<ApkBuilderMain.java:61>
Please help. Thanks
You can do it in command line (.bat) in windows using ant.
with:
"ant release"
You build the apk unsigned.
Then you need to add the call to "jarsigner" and "zipalign" in the bat to complete the task.
You can find an example of the command line to call these tools here:
http://developer.android.com/guide/publishing/app-signing.html#signapp
Best,
I would suggest using Ant and the build files generated by the Android tools rather than trying to handroll your own. If nothing else, you can use the build files as a reference to determine how it uses the various tools to perform each step.