What should be the package name of android app?

后端 未结 7 1266
南方客
南方客 2020-11-29 01:53

I want to know that what should be the package name of android app? Means normally we used com.appname OR com.organizationName.appName, But when we are submitting our applic

7条回答
  •  清酒与你
    2020-11-29 02:12

    Visit https://developers.google.com/mobile/add and try to fill "Android package name". In some cases it can write error: "Invalid Android package name".

    In https://developer.android.com/studio/build/application-id.html it is written:

    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_].

    So, "0com.example.app" and "com.1example.app" are errors.

提交回复
热议问题