Pregunta

I have my Android application project in Dropbox folder. I use my desktop pc as well as my laptop to develop the application. When I switch between these two computers, it uses some kind of different key or something for the application and Android SDK says I have to first uninstall (and lost all data) before I can install it again.

Any fixes?

¿Fue útil?

Solución

While you should be using a Version Control System such as SVN, Git, TFS, CVS, etc. it sounds like you have an issue with the developer key used to sign the application. I haven't used Eclipse in over a year since I prefer using IntelliJ however I will answer from what I remember about Eclipse and the Android SDK.

The Android SDK has a default keystore that is used for signing development applications (on Windows it should be in C:\Users\username\.android\debug.keystore, on Mac it is /Users/username/.android/debug.keystore). If you want to be able to debug your application on multiple computers without uninstalling the APK first then you will need to copy one of these debug.keystore files to the other machine.

Now, as I mentioned I haven't used Eclipse in some time so Eclipse may use a different location/keystore combination (I know IntelliJ does) however the same method can be used.

Otros consejos

Use subversion or git for your source control. Dropbox is not sufficient, since it won't even log history.

For subversion, I recommend google code with subversive eclipse plugin: https://code.google.com For git, you should use (with git eclipse plugin) https://github.com/

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top