Ruboto: won't detect Android SDK platform-tools - android

I need some help with Ruboto..
So I want to start doing some Android development using Ruboto. Here are the steps I took:
installed the android sdk
installed the sdk addons tools and platform-tools
installed jruby using rvm install
installed ruboto using gem install
add the android sdk-tools and platform-tools directory to my PATH in my .bashrc file using:
export PATH=${PATH}:/Users/prem/android-sdks/tools:/Users/prem/android-sdks/platform-tools
created a ruboto project using ruboto gen ..
start an emulator using emulator -avd emulator-name
inside the project directory I run rake install start but I get the following error:
$ rake install start
You need to install the Android SDK Platform-tools!
Any ideas what I'm doing wrong?
EDIT:
I did the same thing on Ubuntu 12.04, I get the same error (need to install platform-tools!).
Thanks in advance!

So thanks to Scott for posting a solution to this on my question on Google groups here https://groups.google.com/forum/?fromgroups#!topic/ruboto/OI6MobKAiGY
If this problem persists, the way to solve it is to install the latest version of Ruboto (pre-release candidate) by running:
gem install ruboto --pre
That solved it for me!

I've been having the same problem. Try this suggestion from the Ruboto user group. It looks like the build tools folder structure was reorganized.
https://groups.google.com/forum/?fromgroups#!topic/ruboto/OI6MobKAiGY

Related

Can't run a simple 'hello world' app

When I'm trying to run the app, it says:
Unable to locate adb
java.lang.IllegalArgumentException: Unable to locate adb
I've read a lot of posts regarding the missing adb.exe file and the adb.exe simply does not exist in the path .../platform-tools/adb.exe
how can I get it/fix it?
The adb.exe file will be located at your Android SDK folder, inside platform-tools
...\android-sdk-path\platform-tools\adb.exe
The default location where Android SDK is installed is:
C:\Users\<insert username here>\AppData\Local\Android\sdk\
So adb will be located at:
C:\Users\<insert username here>\AppData\Local\Android\sdk\platform-tools\adb.exe
adb is Android Debug Bridge tool that stays in Android/SDK/platform-tools directory.....
If ADB is missing you can download from this link
Platform tools by Google for Android
You need to select/install the Android SDK Platform-tools.
Go to Tools > Android SDK platform tools.
After doing this, try to build again. It should work.
If the above does not solve the problem, try reinstalling the tools: open the "Standalone SDK manager" and uninstall the Android SDK platform-tools, delete the [your sdk directory]/platform-tools directory completely and install it again using the SDK manager.
Hope this helps!

Can't update \tools - Android SDK Command Line Tools for Windows

I have just downloaded the Android SDK Command Line tools for Windows (26.0.2). I am attempting to download selected SDK components using \tools\bin\sdkmanager.bat, as well as updating \tools. The installation fails with the following message:
Warning: An error occurred during installation: Failed to move away or delete existing target file: C:\testinstall\sdk\tools
Move it away manually and try again..
I don't see how I can remove \tools manually because it contains \bin\sdkmanager.bat.
Screenshot of the sdkmanager command:
All other components appear to install without error. See below for the components specified in my package file:
Yeah that's quite funny. A way to do that is to copy the tools folder to another place (let's say C:\temp\). Then direct into the C:\temp\tools\bin\, open the cmd prompt there and run your update commands as such:
sdkmanager.bat --sdk_root=sdkRootPath --command
Where sdkRootPath is path to your original SDK folder (C:\testinstall\sdk\). Once that is done, delete the C:\temp\tools\ copied folder.
You could temporarily rename to tools.old, run it to install new version in tools and then remove the old one.
cd YOUR-ANDROID-SDK-LOCATION
ren tools tools.old
tools.old\bin\sdkmanager.bat "tools"
dir tools*
del tools.old /q /s
tools\bin\sdkmanager.bat --list
it might be permission issue.Can you try doing sudo or if you on windows try to run terminal as administrator.
I have seen issues where the program is not able to delete the folder either due to lock or some weird reason.
Run cmd in root c:.
c:\>testinstall\sdk\tools\bin\sdkmanager --package_file=c:\testinstall\packx.txt
I've had the same issue on windows, I couldn't even rename the directory that is causing the issue.
I found out that adb was still running and ended the process and update/install worked fine without workarounds.
The below command helped me to extract the SDK
sdkmanager "platform-tools" "platforms;android-28" --sdk_root=C:\AndroidSDK_RootLocation
It may not be the answer to your question but now, i can't exactly remeber the version, you can't update SDK tools directly or using Eclipse, sdk Manager, sdk.bat or android.bat, only way is to update them using Android Studio. It's Google's new policy, i read it somewhere, if i find the link i will share it
My solution was as following:
Delete the Android SDK Tools via Android Studio (although it might complain it failed).
Close Android Studio
Manually delete tools folder from C:\Users\<MyUsername>\AppData\Local\Android\sdk folder
Start Android Studio and then do the install of the Android SDK Tools via Android Studio.

Ruboto: Android SDK Tools is missing

I'm trying to develop android apps using Ruboto. I can't seem to get it all up and running though. When I try to run something like:
ruboto gen app --package com.test.me --name Test --target android-17
I got the following output:
Found '/usr/bin/adb' but it is not in a proper Android SDK installation.
RuntimeError: The '<ANDROID_HOME>/tools' directory is missing.
Please set the ANDROID_HOME environment variable to a proper Android SDK installation.
I have followed the guide on the Ruboto git site (https://github.com/ruboto/ruboto/wiki/Environment-setup-for-ubuntu) but whatever I do, I still get that error. When I manually go to the directory, the tools directory isn't missing.
Some extra info:
I am using Ubuntu 13.10.
I installed every SDK after running android in the terminal.
I am using jruby through rvm

How to add Ruboto path to android sdk?

I am new to Ruboto gem. I am currently working on android with Ruboto. I know android. I have installed the all requirements for Rubuto. I try to created the sample project using following command,
$ ruboto gen app --package org.sample.rubotoapp --target android-17
Output: Android SDK not in path
/bin/sh: android: not found
Please anybody can solve my problem. Thanks....
It looks like the Android SDK tools directory is not in your path. If you check you path variable with
echo $PATH
it will probably not contain the Android SDK tools directory. Also, you can check if the "android" command is in your path using
which android
You will probably get an empty response.
If you use Ruboto 0.12.0, you should be able to use
ruboto setup
to configure your environment. Recently, in Android SDK r22, the path to the build tools was changed. This will break your setup, and you will have to add
<android sdk location>/build-tools/17.0.0
to your path manually. This is fixed for Ruboto 0.13.0 which will be released in june.

Error when installing the ADT plugins in Eclipse

I'm using Eclipse 3.5.2 and when I followed the steps on this tutorial(http://developer.android.com/guide/developing/tools/adt.html). I got an error message during the last steps.
An error occurred while installing the
items session context
was:(profile=PlatformProfile,
phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install,
operand=null --> [R]org.eclipse.cvs
1.0.400.v201002111343, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
The artifact file for
osgi.bundle,org.eclipse.cvs,1.0.400.v201002111343
was not found.was not found.
would be grateful if anyone can help me out :)
Thanks.
P.S. I'm running Ubuntu Lucid Lynx with kernel 2.6.32-24-generic on x86_64. I have the ia32libs installed as well.
Did you install Eclipse from the Ubuntu Software Center ? Apparently there are several packages missing from that install.
You should be able to fix it with an sudo apt-get install eclipse-plugin-cvs eclipse-jdt eclipse-pde

Categories

Resources