Android Question [SOLVED] Problems with a given package name

desof

Well-Known Member
Licensed User
Longtime User
This is very strange and I have to bring bad because I can not find the solution to the problem.
Why if I use the package name sancrisapp.desof I get that error that shows the capture and if I put any other package name example sancrisapp.desof.demo works correctly


ur9ptzybx.png
 

stevel05

Expert
Licensed User
Longtime User
I can't find a comprehensive definition for the package name, but it would normally be expected to contain at least 3 elements. It is normal to use a reversed internet domain as a prefix, so it would normally be com.yourcompanyname.appname or similar. I can't tell you why it's failing in your example, but it's probably worth sticking to the 'normal' implementation. Perhaps someone has a proper definition, or can explain why this is happening.

It's probably something to do with the structure of the files in the package which is based on the package name.
 
Upvote 0

desof

Well-Known Member
Licensed User
Longtime User
The default package name is "b4a.example" which has only two elements. I don't think that is the problem. I suspect it's the same problem mentioned here: http://stackoverflow.com/questions/...lation-error-install-failed-version-downgrade . Namely, you have another app with the same package name with a higher version number already installed on the device.

Indeed friend was that !!!!!!!!
Thank you very much I was breaking my head!
I have another application (main) that has the same package name because I have to work with a small portion of it and then I integrate it to the final project.
And the example I was working on had version 1 and should have been in 6 and andubo correct.
I went to the main application and it does not work with the same version and even a higher one, it arrives here (ID_Drawable = r.GetStaticField (package & ".R $ drawable", ImageName)) and closes.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
which has only two elements. I don't think that is the problem.

Quite right, I didn't expect that to be the problem. Just pointing out the 'standard'.
 
Upvote 0

desof

Well-Known Member
Licensed User
Longtime User
I still have problems when I try to run the general application I get this error

v5N0NZakf.png
 
Upvote 0
Top