Bug 57819 - Android Package Id changes when set to a single string
Summary: Android Package Id changes when set to a single string
Status: RESOLVED ANSWERED
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 7.1 (C9)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2017-06-28 05:05 UTC by James Montemagno [MSFT]
Modified: 2017-07-05 17:29 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description James Montemagno [MSFT] 2017-06-28 05:05:26 UTC
1.) Set package="comtestmedia" in android manifest
2.) build and run
3.) Open obj/Android/AndroidManifest.xml and you will see it is renamed to: package="comtestmedia.comtestmedia"
Comment 1 Jon Douglas [MSFT] 2017-07-05 17:29:27 UTC
This requirement comes directly from Android package naming conventions rather than Java ones. Therefore they are more strict:

And although the application ID looks like a traditional Java package name, the naming rules for the application ID are a bit more restrictive:

It must have at least two segments (one or more dots).
Each segment must start with a letter.
All characters must be alphanumeric or an underscore [a-zA-Z0-9_].

https://developer.android.com/studio/build/application-id.html

Thus I believe this behavior is intended for Android package names. Please feel free to re-open otherwise.