Bug? Installing to device problem

Artigala

Member
Licensed User
Longtime User
Dear support and community,
I have a sudden and strange problem.
I used B4A evevery day as usual but tonight, B4A refuse to compile normaly.
Wen I compile a basic program (hello world), compiler take many time and can't terminate.
At the end, I have the classical message "Process is running longer than expected...".
I have change timeout, resart ADB server..., no result. More surprising, I can't connect my designer to emulator or to my device (as usual).
Thinking problem with Android SDK, I have uninstall ans re-install SDK (and JDK too).
I have uninstall B4A too.
Without result. I have always same problem. No way to connect to my emulator or compile normaly...

When I compile a basic program without emulator or device connected, I have the same problem.

that's three hours I'm looking...

Please, advice me...

Thank you


Parsing code. 0.03
Compiling code. 0.12
Compiling layouts code. 0.01
Generating R file. 0.11
Compiling generated Java code. 0.85
Convert byte code - optimized dex. 1.52
Packaging files. 0.19
Copying libraries resources 0.02
Signing package file (debug key). 0.52
ZipAlign file. 0.10
Installing file to device. Error
Process timed out.
You can change the timeout value under Tools - IDE Options.
Restarting ADB Server may solve this problem.
Tools - Restart ADB Server.
 

Artigala

Member
Licensed User
Longtime User
Yes, of cource. I changed Timeout to 45, 60, 90 sec... No way.
I have no process taking cpu time.
And when I try to restart ADB Server, it take long time with same problem (timeout).
The only way is to kill process windows.
adb.exe seems to have problems to be used or restart...
 

Artigala

Member
Licensed User
Longtime User
Dear Erel,
Yes, I tried to connect my device with B4A Brigde It's ok, but no way to install a program on it.
I have completly uninstall Android SDK and remove directory and re install... No result.
 

Andrew Gray

Member
Licensed User
Longtime User
Hi,

I have the same problem. When installing to a real device it's fine, but when installing to the emulator it freezes on "Installing file to device" and then times out, even if I allow it 20 minutes or so. Sometimes this also happens when B4A Bridge has got accidentally disconnected.

Is there at least a way to cancel the installation when this happens? Having to sit and wait while the program is frozen is very frustrating.
 

Andrew Gray

Member
Licensed User
Longtime User
You mean test only using physical devices? Sometimes I need to test on devices that I don't actually own.

Also, sometimes B4A freezes even when I am trying to use a physical device, if B4A Bridge gets accidentally disconnected. I assume that in this situation B4A is trying and failing to connect to the AVD.
 

Andrew Gray

Member
Licensed User
Longtime User
Then what is the likely explanation for why B4A freezes for 20 minutes or so when trying to install to a real device that has got accidentally disconnected?
 
Top