Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update selendroid in Appium #2005

Closed
chuyaoyao opened this issue Mar 6, 2014 · 20 comments
Closed

How to update selendroid in Appium #2005

chuyaoyao opened this issue Mar 6, 2014 · 20 comments
Labels
Android related to Android-native driver(s) Bug a problem that needs fixing

Comments

@chuyaoyao
Copy link

Beacuse there is a mistake on selendroid,And it fixed. I want to update the selendroid in Appium ,but I can not find the ’selendroid jar‘ selendroid/selendroid#309
if I do not update the selendroid,I can not run my test on android < 4.2

You poked your nose inside
thank you

@bootstraponline
Copy link
Member

The selendroid submodule is updated periodically. If you're building from source, run git pull within the submodule and it'll download the latest version. ./reset.sh from appium root will then build the selendroid jar.

@chuyaoyao
Copy link
Author

dear @bootstraponline I use appium for windows ,so how to update it

@bootstraponline
Copy link
Member

I think the reset.bat will work the same as reset.sh.

On Thu, Mar 6, 2014 at 9:26 AM, chuyaoyao notifications@github.com wrote:

dear @bootstraponline https://github.com/bootstraponline I use appium
for windows ,so how to update it


Reply to this email directly or view it on GitHubhttps://github.com//issues/2005#issuecomment-36892168
.

@chuyaoyao
Copy link
Author

@bootstraponline Is here any mistake in reset.bat

=====Resetting Unlock.apk=====

Building Unlock.apk
error: pathspec 'submodules/unlock_apk' did not match any file(s) known to git.
Did you forget to 'git add'?

Stopping because there was an error and --force was not used

@bootstraponline
Copy link
Member

My guess is this doesn't work yet on Windows. You're running the command correctly.

/cc @Jonahss

@chuyaoyao
Copy link
Author

@Jonahss @bootstraponline
BUILD FAILED
D:\Code\appium\lib\devices\android\bootstrap\build.xml:49: Source resource does
not exist: D:\Code\appium\lib\devices\android\bootstrap\project.properties

@Jonahss
Copy link
Member

Jonahss commented Mar 6, 2014

Reset.bat should be building just fine on Windows. Do you have all the latest appium code?
I'll upgrade selendroid locally the same way you did here and see if I get the same issue.

@chuyaoyao
Copy link
Author

@Jonahss what is wrong with my selendroid on Appium
info: Welcome to Appium v0.16.0
info: Appium REST http interface listener started on 0.0.0.0:4723
info - socket.io started
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"app":"C:\Users\c
huyaoyao\Downloads\AppiumForWindows\Appium\apk\3.2.1.apk","browerName":"","
platfrom":"windows","version":"4.1","device":"selendroid","app_activity":".ui.In
dexActivity","app-wait-activity":".ui.ColdStartActivity","deviceScreenshot":"tru
e","app_package":"com.baidu.news"}}
error: Trying to run a session for device 'selendroid' but that device hasn't be
en configured. Run config
info: Got configuration error, not starting session
info: Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Device selendroid not
configured yet
info: Error: Device selendroid not configured yet
at Appium.configure (D:\sorftware\appium-master\lib\appium.js:181:15)
at Appium.start (D:\sorftware\appium-master\lib\appium.js:82:10)
at exports.createSession (D:\sorftware\appium-master\lib\server\controller.j
s:151:16)
at callbacks (D:\sorftware\appium-master\node_modules\express\lib\router\ind
ex.js:164:37)
at param (D:\sorftware\appium-master\node_modules\express\lib\router\index.j
s:138:11)
at pass (D:\sorftware\appium-master\node_modules\express\lib\router\index.js
:145:5)
at nextRoute (D:\sorftware\appium-master\node_modules\express\lib\router\ind
ex.js:100:7)
at callbacks (D:\sorftware\appium-master\node_modules\express\lib\router\ind
ex.js:167:11)
at D:\sorftware\appium-master\lib\server\controller.js:34:7
at callbacks (D:\sorftware\appium-master\node_modules\express\lib\router\ind
ex.js:164:37)
info: Responding to client with error: {"status":33,"value":{"message":"A new se
ssion could not be created. (Original error: Device selendroid not configured ye
t)","origValue":"Device selendroid not configured yet"},"sessionId":null}
POST /wd/hub/session 500 20ms - 222b

@chuyaoyao
Copy link
Author

I build the appium, but I can not find the selenium.apk in it.where is it ? I think the reset.bat .......

@chuyaoyao
Copy link
Author

when can update the appium for windows????

@Jonahss
Copy link
Member

Jonahss commented Mar 7, 2014

I'm still looking at how you can upgrade selendroid to the latest version, then get this working for you.
Make sure you run ./reset.bat --selendroid

Still looking into this.

@imurchie
Copy link
Contributor

imurchie commented Mar 7, 2014

Two dashes are needed:

./reset.bat --selendroid

On Fri, Mar 7, 2014 at 9:05 AM, Jonah notifications@github.com wrote:

I'm still looking at how you can upgrade selendroid to the latest version,
then get this working for you.
Make sure you run ./reset.bat -selendroid

Still looking into this.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2005#issuecomment-37044343
.

@Jonahss
Copy link
Member

Jonahss commented Mar 8, 2014

Selendroid updated and is working fine for me on Windows 8:

first update the selendroid submodule

cd submodules\selendroid
git checkout master
git pull origin master

Now you have to commit the updated submodule to the repo.

cd ..\..
git add .\submodules\selendroid
git commit -m "updated selendroid"

Now run reset

.\reset.bat --selendroid

You should have the configuration set

cat .\.appiumconfig.json
#should have selendroid version 0.16.0

@bootstraponline
Copy link
Member

It might be nice to add this to the windows docs.

@Jonahss
Copy link
Member

Jonahss commented Mar 10, 2014

At this point, there's nothing Windows specific here, it's the steps to run appium with a newer version of selendroid.

@chuyaoyao are you still having problems?

@jlipps
Copy link
Member

jlipps commented Mar 24, 2014

Selendroid has been updated in Appium itself now, so maybe a moot point.

@jlipps jlipps closed this as completed Mar 24, 2014
@joao-carloto
Copy link

Hi there, I've tried to follow the instructions form @Jonahss and it all seems to run fine to a certain point. Meaning that when I open appium\build\selendroid\AndroidManifest.xml I can see versionName="0.17.0-SNAPSHOT".
But when I start appium (node .) and run some tests, I go to check the cell phone and the installed version of Selendroid it's still 0.15.0 (which comes bundled, by default, with Appium 1.4.8).
Also, when I check .appiumconfig.json I see "selendroid":{"version":"1.4.8"}, this the Appium version and not Selendroid's.

Am I missing something? Thanks in advance.

@Jonahss
Copy link
Member

Jonahss commented Jul 24, 2015

Ok so the "selendroid version" in .appiumconfig.json is a red herring. This just means that "selendroid" was configured for your current version of appium, you can safely ignore it.

I'm not sure if the selendroid app gets installed on the phone each time, maybe delete it from the phone and try again?

@joao-carloto
Copy link

Thanks for the reply @Jonahss. I've been uninstalling Selendroid 0.15.0 but after I run a test it's back again.
If I pick the APK generated during the Appium build and install it manually, I confirm that it's 0.17.0-SNAPSHOT.
I'll get back to this, once I have the time. If I find an explanation I'll post it here.

@lock
Copy link

lock bot commented Apr 30, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Apr 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android related to Android-native driver(s) Bug a problem that needs fixing
Projects
None yet
Development

No branches or pull requests

6 participants