Program crashes
I am using the portable edition. I downloaded the VCRUNTIME140_1.DLL file and pasted it into the folder of the portable edition. Androiddrive crashes when I connect the phone. Also, I noticed in task manager there are 2 adb.exe (32 bit) processes. One is constant and the other terrminates and reappears every 1 - 2 seconds. I ran the command prompt listed in your instructions for phones not detected. The phone is a listed device.
I would need more information to fix this. Could you do the following?
- Unzip and open this file: LocalDumps.zip
- Restart AndroidDrive
- Reproduce the crash
- Go to
C:\Users\<your username>\AppData\Local\Temp\AndroidDriveCrashDumpsin Windows Explorer - Attack the files that are in that folder to this issue (there will probably only be one .dmp file, but if there are several attach them all)
It does not create a .dmp file. But, the debug log has more info.
The debug log doesn't contain enough information. If you update to AndroidDrive version 2.4.4 it will show an error message if it crashes with some debug information. Could you attach that information?
I have enabled USB Debugging, the phone is authorized. But, this message appears.
You need to do as it says. Try unlocking your device. If it shows you a dialog asking if you want to allow this computer to access phone data, tap "Allow". If it doesn't show that dialog, disable and re-enable USB debugging. If it still isn't working, try unplugging and then re-plugging your device.
I have followed those directions. When I open Windows File Explorer or AndroidDrive it crashes.
If it crashes it will show you an error message like this but with different numbers:
If it does, please share those numbers.
If it doesn't, it's not a crash. The error message you posted earlier is not a crash, it's a warning that the device is unauthorized. AndroidDrive gets that information from ADB, so it's not an AndroidDrive bug.
When I open the program or Windows Explorer it terminates/no longer listed in Task Manager. No error or crash windows appear.
Are you sure you have the latest version?
Yes, I were able to trigger an error window.
Ok, I would need a stack trace to fix that. To get one, follow these instructions:
- Download and install Qt Creator from here. In installation options, check both "Qt 6.9 for desktop development" and "Custom installation", then make sure that "Qt > Qt 6.9.1 > MSVC 2022 64-bit" is checked, as well as "Qt Creator 17.0.0", "CDB Debugger Support" and "Debugging Tools for Windows" under "Qt Creator".
- Download and extract this zip file.
- Open the
sources/AndroidDrive.profile with Qt Creator. - Make sure that "Debug" is checked, then click Configure Project:
- Close AndroidDrive if it's currently running.
- Click on the arrow with the bug on the bottom left. If it shows you a dialog box about missing debug information just click OK and don't worry about it. This will start Android Drive in debug mode (AndroidDrive might ask you if you want to install an update, if it does click No).
- Reproduce the crash.
- Instead of crashing, it will show a dialog saying "Exception Triggered", and the debugger in Qt Creator will show a bunch of information. Click OK, then send me a screenshot similar to the one below:
no compiler set in kit. how do i fix it/which do i choose?
You need to download the MSVC compiler from https://visualstudio.microsoft.com/downloads/:
-
Choose "Community" under "Visual Studio 2022":
-
Open the downloaded .exe file and wait for it to download the installer.
-
Scroll down and select "Desktop development with C++":
-
Click "Install".
-
Restart Qt Creator, then Qt Creator should auto detect the compiler.