Android Question Error installing file to device

DrAlex

Member
Licensed User
Longtime User
Hello,

For several months I was successfully using an HTC One to debug my program. All of the sudden today I cannot install the file to device.

I get the following error:

4A version: 5.50
Parsing code. (0.11s)
Compiling code. (1.30s)
Compiling layouts code. (0.28s)
Generating R file. (0.24s)
Compiling debugger engine code. (1.84s)
Compiling generated Java code. (2.36s)
Convert byte code - optimized dex. (1.96s)
Packaging files. (0.44s)
Copying libraries resources (0.21s)
Found 6 resource files.
Signing package file (debug key). (0.47s)
ZipAlign file. (0.51s)
Installing file to device. Error
pkg: /data/local/tmp/RootsNOffspring_RAPID_DEBUG.apk
Failure [INSTALL_FAILED_UID_CHANGED]

I have built a new build configuration. Then the error has changed to INSTALL_FAILED_DEXOPT. Then I have restarted ADB, and the error became INSTALL_FAILED_UID_CHANGED again.
 
Did you try to unstill the app before, other options are to rename the app, or to clean the project ...if you use an AVD then I would build a complete new one...
 
Upvote 0
Why can't I find directory /data/local/tmp? ASTRO does not show directory /data at all (although Show Hidden Files is checked). In Windows Explorer I see "Computer\HTC One X\Internal storage\data", but it contains only subdirectory "data". There is no "local".
 
Upvote 0
Hello Erel,

Yes, there are error messages, but I cannot copy them. "Copy all to clipboard fails" with "OpenClipboard failed". Instead, I am sending a screenshot.
log.jpg
 
Upvote 0
I did what you said, and the project stopped working when I added Phone library (Version 2.27).

I am trying two devices:

HTC One, Android 4.2.2
HTC Desire 816, Android 5.0.2

The results are identical.
 
Last edited:
Upvote 0
I could install B4A-Bridge. I tried to run the project using the bridge with and without the Phone library. Without Phone, the project runs. With Phone, I get a message on the device, "App not installed".
 
Upvote 0
I have uninstalled B4A and reinstalled it to a different folder.

I have tried to run the sample program (actually, a MySQL example, which I had once downloaded from the B4A site), with the Phone library:

USB Debugging - Failed
B4A-Bridge - Success

Afterwards I tried my program. It failed in both debugging modes.

Then I returned to the sample program. Now it also fails in both debugging modes!
 
Upvote 0
Back
Top