How to install command line tools?

I have read and downloaded more than 30 times the google developer command line tools and I do not know how to install the Android SDK Tools and Android SDK Platform-tools. There is no .exe file in the tools/bin to run the installation as show in all google tutorials. In the Debugging Guide it just says download it and install it, it does not say how and apparently google has changed those files a lot since Corona created that guide. Any Help?

Thanks in advance

DoDi

Windows : Install .apk via adb
*I download the adb tools from another page, from the link provide by the Corona guide its no adb file.
*extract and open a PowerShell (in the folder you extract shift+right click+Open PowerShell windows here).
*connect a device (enable developer options and usb debugging mode before).
*accept the prompt in the connected device.
*type .\adb devices … the devices serial number will appear
*type .\adb install and drag your .apk to PowerShell.
*enter.
*type exit

I have not installed adb, I read in google if PowerShell is running in the same folder where adb is located, the file can be executed. I share this way because I have successfully installed an APK on a Galaxy Tab A that does not want to accept the installation through another method, such as copying and pasting into the memory of the device.

Ok. Up to this point, you have been using Corona to push the app/game to your Android device? If so you already have the adb tool installed. You just need to find it.

HI @dodi_games.  Please give the community time to respond to your posts. We recommend waiting at least 24 hours before you bump a post.

There is nothing specific about installing the “adb tools” to Corona. As such, there is a ton of information on the Internet on how to do this. We don’t like writing documentation on third-party products because they change at a whim and it’s not really practical for us to documented someone elses products.

A quick Google search on “installing adb on windows” returned a bunch of hits that can help you accomplish this:

https://www.google.com/search?q=installing+adb+on+windows&oq=installing+adb+on+windows

Then once you have it installed, you have to understand some basics for using command line tools. 

  1. Your adb.exe will be located in a particular folder.

  2. This folder/path will likely not be added to the command line search path, which means you either have to be in the folder with adb.exe to run it, or you have to type in the full path to the command (or update the PATH environment variable so you don’t have to deal with it, but this is all part of learning how to work with the Windows command line)

  3. Your .apk will be output to a build folder that you have set in Corona.

In an ideal world, you would add the folder where adb.exe is to the PATH environment variable and then use the cd (change directory) command to the folder where you output your .apk file then you just have to do:

adb install apkname.apk

But if you don’t want to set this up in the path, then your command could be more like:

c:\Program Files (x86)\path\to\adb.exe install c:\users\yourname\path\to\your.apk

Rob

What I shared here was my experience of how to install my app to a tablet that did not want to accept the installation in the way I normally install all the test apk files. The comment that “I got the files on another page” it’s beacause Corona guide sent me to the Android Studio official download page where I have the option to download the command line tools but what you download from that page is something that my programmer level does not understand. So I went to google to read a little and shared the steps to follow that worked for me and I wrote them here if some newbie like me has the same problem it would be easier for him. I deduced the steps because the pages of the google search explain things in a way that it’s hard to a newbie to understand.

I came here to make friends, look for help, try to help others, if I can.  My main intention is to maintain good relations with users and of course, learn from the experts.

If at any time I have done something that is not to the liking of the users of the forum, I apologize. Like all human beings I have good and bad days. Time is our worst enemy when you have a full time job that is not being a programmer, you are a father of two children and you have a lot of desire to progress in something you like to do.

Nice Day 

Windows : Install .apk via adb
*I download the adb tools from another page, from the link provide by the Corona guide its no adb file.
*extract and open a PowerShell (in the folder you extract shift+right click+Open PowerShell windows here).
*connect a device (enable developer options and usb debugging mode before).
*accept the prompt in the connected device.
*type .\adb devices … the devices serial number will appear
*type .\adb install and drag your .apk to PowerShell.
*enter.
*type exit

I have not installed adb, I read in google if PowerShell is running in the same folder where adb is located, the file can be executed. I share this way because I have successfully installed an APK on a Galaxy Tab A that does not want to accept the installation through another method, such as copying and pasting into the memory of the device.

Ok. Up to this point, you have been using Corona to push the app/game to your Android device? If so you already have the adb tool installed. You just need to find it.

HI @dodi_games.  Please give the community time to respond to your posts. We recommend waiting at least 24 hours before you bump a post.

There is nothing specific about installing the “adb tools” to Corona. As such, there is a ton of information on the Internet on how to do this. We don’t like writing documentation on third-party products because they change at a whim and it’s not really practical for us to documented someone elses products.

A quick Google search on “installing adb on windows” returned a bunch of hits that can help you accomplish this:

https://www.google.com/search?q=installing+adb+on+windows&oq=installing+adb+on+windows

Then once you have it installed, you have to understand some basics for using command line tools. 

  1. Your adb.exe will be located in a particular folder.

  2. This folder/path will likely not be added to the command line search path, which means you either have to be in the folder with adb.exe to run it, or you have to type in the full path to the command (or update the PATH environment variable so you don’t have to deal with it, but this is all part of learning how to work with the Windows command line)

  3. Your .apk will be output to a build folder that you have set in Corona.

In an ideal world, you would add the folder where adb.exe is to the PATH environment variable and then use the cd (change directory) command to the folder where you output your .apk file then you just have to do:

adb install apkname.apk

But if you don’t want to set this up in the path, then your command could be more like:

c:\Program Files (x86)\path\to\adb.exe install c:\users\yourname\path\to\your.apk

Rob

What I shared here was my experience of how to install my app to a tablet that did not want to accept the installation in the way I normally install all the test apk files. The comment that “I got the files on another page” it’s beacause Corona guide sent me to the Android Studio official download page where I have the option to download the command line tools but what you download from that page is something that my programmer level does not understand. So I went to google to read a little and shared the steps to follow that worked for me and I wrote them here if some newbie like me has the same problem it would be easier for him. I deduced the steps because the pages of the google search explain things in a way that it’s hard to a newbie to understand.

I came here to make friends, look for help, try to help others, if I can.  My main intention is to maintain good relations with users and of course, learn from the experts.

If at any time I have done something that is not to the liking of the users of the forum, I apologize. Like all human beings I have good and bad days. Time is our worst enemy when you have a full time job that is not being a programmer, you are a father of two children and you have a lot of desire to progress in something you like to do.

Nice Day