What is the package in android?

2019-09-11 15:32发布

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.

enter image description here

in playstore you see it:

enter image description here

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 ???

3条回答
ら.Afraid
2楼-- · 2019-09-11 15:54

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.

查看更多
欢心
3楼-- · 2019-09-11 15:55

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!

查看更多
▲ chillily
4楼-- · 2019-09-11 15:55

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.

查看更多
登录 后发表回答