Феномен при старте приложения из эклипс.

Ответить
brucemax
Сообщения: 117
Зарегистрирован: 01 апр 2012, 16:09
Откуда: Минск
Контактная информация:

Феномен при старте приложения из эклипс.

Сообщение brucemax » 21 дек 2012, 23:27

Работая на проектом использовал стороннюю базу данных (подключал по способу из статьи http://idev.by/android/145/) Не знаю связано ли с этим, но после этого, чтобы запустить проект с только что внесёнными изменениями необходимо удалить старую версию проекта.. Иначе запускается старая версия и в консоль пишется следующее:
[2012-12-21 15:44:15 - quickest] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
[2012-12-21 15:44:15 - quickest] Please check logcat output for more details.
[2012-12-21 15:44:15 - quickest] Launch failed on device: S5660cd95176b
[2012-12-21 15:44:15 - quickest] Starting activity ...
Почему так происходит?
P.S. Лучше бы он вообще не запускался.. представьте как я недоумевал, написав код который на проект никак не влиял и естественно, первое что я делал это искал ошибки в коде.

Аватара пользователя
rezak90
Сообщения: 3422
Зарегистрирован: 26 июн 2012, 13:22
Откуда: UA
Контактная информация:

Re: Феномен при старте приложения из эклипс.

Сообщение rezak90 » 22 дек 2012, 02:19

I was searching for the answer to this question, and was unsatisfied with the above answers. But then I found the answer, so here it is for future reference:

To summarize (and clarify), in Eclipse, go to "Debug Configurations". You can find that in the drop-down under the "debug" icon. Select "target", and select a preferred emulator target to launch. Then under "additional emulator command line options," add this:

-partition-size 1024

Then CLOSE the emulator (and remove any devices), and click the debug icon, which will launch the preferred emulator you selected. This is important: Eclipse needs to launch the debugger, not AVD.

That fixed the problem for me.
You need to increase the Android emulator's memory capacity, there are 2 ways for that:

1- Right click the root of your Android Project, go to "Run As" then go to "Run Configurations..." locate the "Android Application" node in the tree at the left, then select your project and go to the "Target" tab on the right side of the window look down for the "Additional Emulator Command Line Options" field (sometimes you'll need to make the window larger) and finally paste "-partition-size 1024" there. Click Apply and then Run to use your emulator.

2- Go to Eclipse's Preferences, then Select “Launch” Add “-partition-size 1024” on the “Default emulator option” field, then click “Apply” and use your emulator as usual.
R.id.team
Политика на форуме запрещена

brucemax
Сообщения: 117
Зарегистрирован: 01 апр 2012, 16:09
Откуда: Минск
Контактная информация:

Re: Феномен при старте приложения из эклипс.

Сообщение brucemax » 22 дек 2012, 13:50

А если я не эмулятором пользуюсь..)
А вообще спасибо)

Ответить