Appium integration in Android Studio(Ubuntu)? - android-studio

Hi anybody can provide me the steps for Appium(Automation tool) integration in Android studio for Ubuntu OS.
or Provide me any links(i gone through few blogs but most of them explained in Windows,Mac OS?).
Thanks in advance.

What you need to do is Download the Appium, junit Dependencies from Maven in your Android Studio Project and configure Android Studio to run Appium Java junit/TestNG test cases:
You will require to download:
a. io.appium:java-client:3.1.0 or latest version
b. org.junit:com.springsource.org.junit:4.11.0 Or Latest
Than Just write your test suit by providing Appium server capabilities and Setup/Teardown methods. Start Appium Server also give correct port number inside your code. Like:
driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
How to import Maven Dependencies in Android Studio
(I assume that Appium has already installed on your system) if not Use This Link

Related

Is Gradle included in Android Studio?

I run cordova requirements on an Android app created with cordova and are getting this error:
Gradle: not installed
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
First I would like to say that yes, I can install it manually, but why if it should be included?
So what is the issue here? Is it a lie that it should be sufficient to install Android Studio as the error message says? Do I need to install it manually also? Or do I simply need to set a path?
Gradle is probably included in Android Studio. At least, some of its tooling APIs must be included to provide Gradle interop.
However, Android Studion has nothing to deal with the command line commands you're running in console, like cordova requirements. You should probably install it and make available globally. SDKMAN! is a good tool to manage tools in Java world.

Couldn't generate a APK folder (Gradle issue)

I can't seemed to generate the APK. and this pops up!
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
Could not create service of type FileHasher using BuildSessionScopeServices.createFileSnapshotter().
Please assist.
Which is your global java version?
Put some more information. Ionic info output and Android Studio version.
Try to downgrade your java version to 8
if you do not know how to change your java version, google it!

Aldebaran's Pepper sdk for android/Robot sdk 0.9 "Robot SDK'0.9' is not complete. Please download it again or re-create the robot application."

When trying to install the android sdk for Aldebaran's pepper robot on my computer following this official tutorial:
Step 1: android.aldebaran.com/doc/installation.html
Step 2: android.aldebaran.com/doc/create_project.html#create-project
When trying to launch the Virtual Robot Environment of Pepper's tablet on my computer this message is printed: "Robot SDK'0.9' is not complete. Please download it again or re-create the robot application."
So far I have tried the following on my Ubuntu 16.04 64bit computer:
Uninstalling and re-downloading/installing the Robot sdk over the robot sdk manager provided by the android sdk for Pepper
Uninstalling and re-downloading/installing the android sdk for Pepper
Deleting, recreating and creating the android studio application turning it into a robot application
Removing other non essential android sdks
Moreover I also tried the following on another computer running windows 8.1 64bit:
Repeating the tutorial installation
Downloading and installing older version such as 2.22 and 2.11 of the android studio and repeating the tutorial installation.
Each time after I have completed Steps 1 & 2 when I want to start building or launching the application it fails on step B from this tutorial: android.aldebaran.com/doc/run_debug.html#run-debug and prints the Error mentioned above.
The project structure is identical to the one in the tutorial and I am able to sync the project via maven. But as I cannot actually launch the virtual robot environment or run the application I cannot make use of this sdk.
I have also found a similar question being asked on stackoverflow but there hasn't been a response yet. Also I don't understand the comments.
stackoverflow.com/questions/42824942/robot-sdk-0-9-is-not-complete-please-download-it-again-or-re-create-the-robot-a
I tried using another computer with windows 10 64bit freshly formatted so I installed Java jdk & jre 1.8.0_121 and android studio 2.3.1 as I couldn't find 2.3.3:
Repeated the tutorial installation
But still the same error message.
I got mine to work doing the following:
go to your current android SDK folder
rename the tools folder to tools-old
create a new Folder named tools
download this: https://android.googlesource.com/platform/prebuilts/android-emulator/+archive/android-7.1.1_r1/windows.tar.gz
unpacke it into your new tools folder
Make sure you have your AVD Options set to arm and not x86
and that "Use Host GPU" is enabled
After that the emulator worked.(note that it takes quite long to launche)
The suspected cause is that the Pepper emulator tries to use the emulator-arm.exe wich is not availible in the standart installation of Android Studio
You should try installing Android Studio 2.3.3 on Windows 10, 64-bit. I know that works at least.
I got this working finally thanks to theGary's hint above. No need to wipe out your whole tools directory though -- I was able to get the x86 Pepper emulator running (on Mac in my case) by copying these files and directories from the Android sdk/emulator directory into the sdk/tools directory:
emulator64-x84
qemu
bin64
lib/pc-bios
lib/ca-bundle.pem
Then edit your run/debug configurations and change the “robot app” AVD options from armeabi-v7 to x86.

Upgraded to Android Studio 1.5.0, then 1.5.1 and can no longer create a project

I'm doing a bit of Android dev on the side, so I'm no gradle expert. Just trying to create a project for Android 4.0.3+. This used to work before upgrading to Studio 1.5. Any ideas how to get this setup so can make projects again? I have no idea what appcompat-v7.15+ is or what to install so it can find it.

Xcode with phonegap provide build error

I have installed phonegap on MAC and installed Xcode 3.1. then open codex and create new project and built and ruis target might include its own product. build failed. give me a solution to this
Do you have a provisioning profile installed on the iPhone you are trying to run it on? For me it sounds you don't have the signing correctly.

Resources