简体   繁体   中英

Is there any way to add my signature on the eclipse, so that i can run my code from Eclipse?

I am newbie to Robotium. Everytime, if i change code, i need to create apk and then i need to install in emulator and have to proceed the testing by running shell command.

Is there any way to add my signature on the eclipse, so that i can run from Eclipse?

I have tried the preferences and it has customer keystore but i did not get any field to enter the password.

Any help would be appreciated.

Thanks

It is very easier than this. If eclipse and Android SDK are properly configured, you can run your app on real device or emulator by just a single click. In such cases, eclipse would use a debug key to sign apps.

when you want to release final apk , you should right-click on project and from Android tools , select Export signed Application... and then make your keystore or use a previous one to sign release package.

if you are using different apk which your are not created and see " signature mismatch ", then you need to change Signature of that apk,

1)- Delete " META-INF " folder from TestApp.apk

2)- jarsigner -sigalg MD5withRSA -digestalg SHA1 -keystore debug.keystore -storepass android -keypass android TestApp.apk androiddebugkey

and you find " debug.keystore " from C:\\Users\\YourUserName\\\\.android\\ if you have installed eclipse and Android SDK properly.

3)- zipalign 4 TestApp.apk SignedTestApp.apk

4)- jarsigner -verify SignedTestApp.apk

5)- install SignedTestApp.apk , and test your automation again.

for example, you want to do automation for gmail app then TestApp.apk = Gmail.apk

you can find for info from this link . I hope this will solve your issue of " signature mismatch ".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM