Android Question Execution problems with adb.exe

Status
Not open for further replies.

vecino

Well-Known Member
Licensed User
Longtime User
Hi, in the last few days I've been abusing your help a lot, I'm having several problems that I haven't been able to solve on my own.
Today I found an unexpected problem, error in the execution of adb.exe, both from the IDE and running it from the command line.
I don't know what information I need to share with you.
Can anyone tell me what it could be?
Thank you.

uno.png





dos.png
 

vecino

Well-Known Member
Licensed User
Longtime User
I could work this way, compiling from the command line. Then manually copy the apk to the device.
The problem is that I can't use the debugger, and I also can't use "log" to check / view variable values and information when needed.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
I have uninstalled B4A 9.90 and tried previous ones. The problem is the same.
I have reinstalled B4A 9.90 and tried a simple program with a button that shows "Hello world". The problem is the same.

I don't know if I should install something from the android SDK, I am totally lost.
If I run adb.exe from windows explorer or from command line, the problem is the same.

What does adb.exe depend on? What can i reinstall, just in case?

Sorry to be so insistent, but I need to work.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Yes, I can compile fine from the command line.
The problem is that I cannot "debug", nor use log (variable) when necessary.

The problem is only with adb.exe
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Well yes there is something new, B4A 9.90
The error has nothing to do with B4A. It happens when you run adb.exe.

The virtual machine yes I have turned it off several times and turned it on again.
Which virtual machine? I don't see any mention of a virtual machine???
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
I use ubuntu linux since it exists, and before other linux.
Since 2012, when I met B4A, I installed it with virtualbox.
Since last week, genymotion on ubuntu linux.
In windows 7 virtual machine, I run B4A dede always.
It has always worked well.
The problem is apparently only with adb.exe

If I compile my programs from command line they compile fine.
I copy and paste them on my devices, no problem with that.

Could it be that genymotion is at fault, even if it is not installed on the virtual machine where B4A is?
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
I think I can only remove genymotion from linux. Although I don't know how it can affect a virtual machine with windows so that only adb.exe doesn't work.
I'm going to try and warn...
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
First of all, thank you all very much for the interest and time that you are dedicating.
See if it is solved soon.
 
Upvote 0

ShepSoft

Member
Licensed User
Genymotion uses the Android SDK and that includes ADB.exe which is the channel of communication between your PC and Android devices, both real and emulated. It seems probable that Genymotion has installed its own components and messed things up. Uninstalling Genymotion may or may not solve the problem since it may not properly reverse the changes it has made. I suggest you re-install the Android SDK from scratch.

If you want to continue using Genymotion, go to its settings, find the ADB section, and enter the path to your Android SDK explicitly there. However, there is no guarantee that Genymotion won't upset things again when and if it updates itself.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
I found it!!! :p

I have made a backup of my projects.
I have recovered a backup of the virtual machine from 5 months ago.
It is the same system, with the same windows, everything the same, except that it has an older version of B4A and my projects are not updated, obviously.
I have restored my projects on the old virtual machine.
I have installed B4A 9.90
Works!
I have installed the Android SDK and OpenJDK from https://www.b4x.com/b4a.html
Works!

The only thing that hasn't been changed or updated is the fu...ng windows. :mad:
So I suppose the culprit is windows, that something was broken.

The link with genymotion works fine.
Smartphone tests have worked well.

Again, thank you for your interest and for your time.
THANK YOU VERY MUCH TO ALL, FRIENDS !!!
:):):)
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Yes, that's the way I've always used it.
Windows is running on a virtualbox machine.
And virtualbox is running from linux.
So, from linux, I can run multiple virtual machines at the same time. One windows VM for B4A, another windows VM for Delphi, another linux VM for Lazarus, etc.
It depends on the work that I am doing.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Yes, that's the way I've always used it.
Windows is running on a virtualbox machine.
And virtualbox is running from linux.
So, from linux, I can run multiple virtual machines at the same time. One windows VM for B4A, another windows VM for Delphi, another linux VM for Lazarus, etc.
It depends on the work that I am doing.
Ok but we thought you were talking about a PC with Windows, not a VM! ??
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Oooh! but if I said it at the beginning :confused:
I must have said it more visibly.
vecino said:
The only new thing is that I have installed genymotion (my computer is ubuntu linux).
B4A has also always been running on a virtualbox machine. This is how I have always used it, since 2012
Anyway, what's the difference?
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Wow, so I've had good luck in all these years (knock on wood) :D
Thank you very much for the information :)
 
Upvote 0
Status
Not open for further replies.
Top