What is the package in android?

2019-09-11 15:48发布

问题:

I have uploaded my first application to google playstore as you see in this image in manifest in package it says auc.visorimagenes.ssssss

in the left part you could see my structure code where it is as auc.visorimagenes.

in playstore you see it:

but What it says auc.visorimagenes if in my manifest I had set auc.visorimagenes.sssss

I want to up a new app with same code (only changing some resources) this is would be a new app not an update.

then I must to change auc.visorimagenes.sssss ???

回答1:

Contains information about a Java package. This includes implementation and specification versions. Typically this information is retrieved from the manifest.

Packages are managed by class loaders. All classes loaded by the same loader from the same package share a Package instance.

Hope this helps!



回答2:

Could you try and change the android:name attribute of your application entry in the manifest as follows and see if it helps?

<application
   ....
   android:name=".App"  (or android:name=".Application.App")
 />

This will ensure that the app uses the same package name as the one declared in the manifest.



回答3:

The package in android is the name of the application that makes it unique from any other android apps, therefore allow the production of multiple apps with the same product name.