I'm an intern and I'm new to automation. I am trying to familiarize myself with the mobile application automation tool 'appium'. I'm running a windows machine. I found a few sample appium tests using junit here. these tests are for the built-in android / iOS apps, for now I am only concerned with the android ones. I do realize that these apps where written on a MAC machine and I have changed it for my windows machine.
My Issue, however, is to find the .apk's locations for the built in apps on the eclipse emulator so that I can use it in my test.
I hope I've provided enough information. Any help would be appreciated.
Try looking in this location on mac:
/Users/<username>/.android/avd/
There should be 2 files for each emulator you created, *.avd and *.ini
You can always run the manager for the emulators by doing on the terminal:
/<path_to_android_sdk>/android avd
This should list all the emulators you have created. If you cant do via terminal just find the android exe and see if you can open the avd manager via the GUI.
Not sure about windows but my guess would be a hidden folder with the same type of files. Try a global search or some local user directory. I had to manually delete an emulator when it started acting up and those files did the trick.
Related
I recently put Android on my Windows laptop. I want to run Selenium-Webdriver for automation and development. I need Java for Selenium to run this on my Android machine.
This is my first time ever (obviously) putting Android on a laptop and was wondering how to put JDK on it.
I have tried researching this and have had no luck.
Note: I have Termux - so I was able to install everything from NodeJS, Protractor, Selenium, etc.
I tried installing GNURoot Debian as suggested and the application is launching with an error. I have researched the issue and no luck.
Also, the APK file that was in the Stack Overflow answer was invalid.
I am being pestered by eclipse when I open the program. I get two error messages; "SDK Platform tools component is missing! ..." and "Failed to get the required ADT version number from the SDK. The Android developer toolkit may not work properly".
Both messages give me the option to open the Android SDK manager. When I attempt to open the Android SDK manager from eclipse, I get an initialization and then nothing happens.
I'm aware this is a common problem. Many solutions say to find the Android SDK manager in the SDK directory, though I can't find it anywhere there. The path I am using is "C:\Users\Ant\AppData\Local\Android\sdk".
When I attempt to open the SDK manager from Android Studio, I get something come up, though I have no idea if it is the Android studio version of the SDK manager or not.
All I want to do is install some packages to get everything running smoothly. I have the feeling that I need to open the SDK manager from eclipse to do it though. Is this correct? Is there anything else I can do?
You should go and create the proper environment setup, It seems there is a confusion between Eclipse and android studio working env. Please make sure to install separately the working env. SDK are normally hidden files make sure you are suppose to see hidden files in your computer.
Thanks,
Ashish
First up, I'm totally new to the Android ecosystem and mobile app dev in general. However I am a veteran C#/C++/JS/Java app and web dev. So currently my corporate firewall has rules to prevent our work PCs from connecting online. I'm supposed to be doing android app dev fully offline. I got Android Studio installed and created a test app, however gradle refuses to build offline, even with the "Offline work" option ticked. If I build an app on my internet-connected laptop all goes fine. If I copy that app to my work PC, gradle crashes with "cannot find module XYZ in gradle cache". I tried copying over the<user>/.gradle/caches/ dir from my laptop to my PC but that doesn't work either.
So, I'm left with no option but to attempt to build my android project without gradle. I'd like to use the Android Studio IDE if possible, else I'd fallback to SublimeText. So my question is, how do I build, debug and emulate android apps without gradle?
Things I've tried:
Creating a hello world app on my laptop, building it and emulating it. Gradle updates all its libs and stuff, and I used the AVD Manager to download an AVD image an setup an emulator.
Copying over the test app project dir to my work PC
Copying over the updated Android SDK dir to my work PC (with the AVD image, etc)
Copying over the gradle caches to my work PC
At least you need internet connection once for the first build, then you can go to settings & enable offline. then you can build without the internet connection.
Android Studio makes life easier. Anything other than that is going to very hard.
You can use this gist to download dependencies to a local folder. You can then use:
repositories {
maven {
url uri('c:/path/to/repo')
}
}
To work offline
Shameless plug: I wrote a series of scripts to build a Java/Kotlin Android app, including dependencies, without Gradle. There's a separate script to download packages, which is configured to look for AndroidX packages by default but you can provide it a full URL instead. After that point, running the other scripts is enough to build the app offline.
Link: https://github.com/jbendtsen/tiny-android-template
You can do it through the Intellij with android plugin, however somewhat unsupported features are still existed.
Mostly I work on Android Studio sometimes I'm using IntelliJ community version.
please try...
I have created a game using libgdx and would like to test the game on my android phone. I have done my research but there seems to be no information on installing android apps when running windows 8. More specifically: http://developer.android.com/tools/extras/oem-usb.html there is no way to get around this part of the installation process on windows 8. As well as there is no documentation or information about installing android apps in the libgdx documentation from what i could find. if anyone could offer any insight that would be great. thanks again
All you need is the apk file. Go into the android project section of the libgdx project and click the bin folder. there should be an apk file in there that you can send to you phone any way you want to. Then you can install the file on the phone directly. You can also look into the usb tool that you posted and find the correct one for your specific phone and then you could just run it in eclipse if you have the android sdk installed.
So, I need to open an eclipse project in my computer. The project was build on a mac and my computer runs windows. Its seems like there is some code missing and when I try to run the app on my avd, I get “Unfortunately, has stopped.”
Any idea ?
Thanks
Android (Java) code has nothing to do with Windows or Mac machines - I'm guessing either your JDK versions are different between the two, or (more likely) you have a different version of the Android SDK. Therefore, you have different versions of the AVD, so your app doesn't nicely transfer. I would suggest running in debug mode and showing us the stack trace, so we can give more helpful information.