Android Question B4A Developers Phone Install Problem

trepdas

Active Member
Licensed User
Longtime User
Hello good people, - Please help

this one is driving me nuts while developing.

how do I bypass it? or make it disapear for ever???????

Thank you in advance

 

JohnC

Expert
Licensed User
Longtime User
Try changing the "Package" Name using the "Project...Build Configurations" menu in the IDE and see if it installs.

If it does, then this means the new app you are trying to install is conflicting with an existing app on your phone with the same package name and/or version.
 
Upvote 0

RichardN

Well-Known Member
Licensed User
Longtime User
This also happens if you try to install a package with a lower Target SDK over an existing higher one. You can't downgrade an installation, you will have to delete the older version.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
it still driving me nuts!!!
We still have no possibility to help with the information you are providing!

Something is wrong with your app.

is there any way to disable this?
Give the packageinstaller a APK which is valid.

As written: try to change packagename. Or deinstall the app on the device with the same packagename first and then try to install your app again.
 
Upvote 0

RichardN

Well-Known Member
Licensed User
Longtime User
What is your device and which Android version is it running?

Have you previously installed an app successfully on this device? Is developer mode enabled?
 
Upvote 0

trepdas

Active Member
Licensed User
Longtime User
thank you so very much for your reply. I am so frustrated from this suppose to be so simple - but it is seriously drive me nuts!
I decided to simply layoff and stay away for a day and rethink my steps.
I couldn't figure out when I will have it installed successfully or get that message.
once it is working if I am changing the version code and version number in #main

B4X:
#Region  Project Attributes
    #ApplicationLabel: Tagname Navigator
    #VersionCode: 117
    #VersionName: 1.17
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: portrait
    #CanInstallToExternalStorage: False
#End Region


I work with b4xpages.
during work I added a page , called it "page 4", then added a new page as "scanpage" while deleting the 'page 4' .

I also changed the manifest couple of times....
I did try to change the project's name - no success.
I think that DonManfred was right at saying "there is something wrong with your app".
I returned from a long resting day thinking of starting the project from scratch.

but if this message will appear again ....... OMG dont want to think about it. made me so pissed!

-What is your device and which Android version is it running?
I am using samsung galaxy a71 with the b4xBridge and the latest android .

-Have you previously installed an app successfully on this device? Is developer mode enabled?
yes developer mode is enabled and successfully installed built and rebuild from version 100 to version 117.
now it won't work when other attempts were succeeded earlier :
1. changed the version code
2. uninistall earlier versions
3. looking at the settings - sometimes the app showed without an icon , just with its package name - and had to uninstalled it there.
4. cleaning the project
5. restrating the gdphone

just for refference here is the manifest. maybe I did something wrong there by mistake?

B4X:
AddManifestText(
    <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="33"/>
    <supports-screens android:largeScreens="true"
                      android:normalScreens="true"
                      android:smallScreens="true"
                      android:anyDensity="true"/>
)

SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")

AddPermission(android.permission.CAMERA)
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
AddPermission(android.permission.FLASHLIGHT)
AddPermission(android.permission.VIBRATE)
AddPermission(android.hardware.camera)
AddPermission(android.hardware.camera.autofocus)

AddManifestText(
    <application>
        <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
    </application>
)
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
What is your app package name?

Try search your error or check this:

B4X:
adb shell pm uninstall com.acme.awesomeapp
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
My suggestion is to simply change the package name of your app, if it then installs, then at least you know that the problem is a package name/version conflict and can start troubleshooting that.
 
Upvote 0

trepdas

Active Member
Licensed User
Longtime User
thank you so very much good people. I will take the time to explore the issue.
I will try to connect with adb.
will update here.
thanks again
 
Last edited:
Upvote 0

trepdas

Active Member
Licensed User
Longtime User
What is your app package name?
org.tagname.nav

I have tried to change nav to na1 / nax / com.tagname.nav instead of org. nothing worked.


B4X:
adb shell pm uninstall com.acme.awesomeapp
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…