Android Question error while trying to create package name

Discussion in 'Android Questions' started by Makumbi, Jul 22, 2019.

  1. Makumbi

    Makumbi Active Member Licensed User

    i have my app at this
    Code:
    http://kccug.com/KabojjaApp
    i wanted to create package name as smisKabojja but iam getting error
    Code:
    B4A Version: 9.00
    Parsing code.    (
    0.64s)
    Building folders structure.    (
    2.03s)
    Compiling code.    Error
    Error parsing manifest script:
    Error parsing google-services.json:
    Error parsing manifest script:
    Error parsing json 
    file. Make sure that the package name is correct.
    this is what is in the manifest editor
    Code:
    'This code will be applied to the manifest file during compilation.
    'You do not need to modify it in most cases.
    'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
    AddManifestText(
    <uses-sdk android:minSdkVersion=
    "5" android:targetSdkVersion="26"/>
    <supports-screens android:largeScreens=
    "true"
        android:normalScreens=
    "true"
        android:smallScreens=
    "true"
        android:anyDensity=
    "true"/>)
    SetApplicationAttribute(android:icon, 
    "@drawable/icon")
    SetApplicationAttribute(android:
    label"$LABEL$")
    CreateResourceFromFile(Macro, Themes.DarkTheme)
    CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
    CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
    CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
    AddPermission(com.majeur.launcher.permission.UPDATE_BADGE)
    AddPermission(com.sec.android.provider.badge.permission.READ)
    AddPermission(com.sec.android.provider.badge.permission.WRITE)
    AddPermission(com.htc.launcher.permission.READ_SETTINGS)
    AddPermission(com.htc.launcher.permission.UPDATE_SHORTCUT)
    AddPermission(com.anddoes.launcher.permission.UPDATE_COUNT)
    AddPermission(com.majeur.launcher.permission.UPDATE_BADGE)
    AddPermission(com.huawei.launcher3.permission.READ_SETTINGS)
    AddPermission(com.huawei.launcher3.permission.WRITE_SETTINGS)
    AddPermission(com.huawei.launcher2.permission.READ_SETTINGS)
    AddPermission(com.huawei.launcher2.permission.READ_SETTINGS)
    AddPermission(com.huawei.android.launcher.permission.WRITE_SETTINGS)
    AddPermission(com.huawei.android.launcher.permission.READ_SETTINGS)
    'End of default text.
     
  2. DonManfred

    DonManfred Expert Licensed User

    the packagename in the json does not match the packagename you are using.
    Check the packagename in the firebase console in your project.
     
    mangojack likes this.
  3. DonManfred

    DonManfred Expert Licensed User

    the packagename must have at least two parts. com.smisKabojja for ex.
    smisKabojja alone does not work using firebase
     
  4. Makumbi

    Makumbi Active Member Licensed User

    does the order the package name matter example if i use smisKabojja.com
     
  5. DonManfred

    DonManfred Expert Licensed User

    usually (google guideline) one use a reverse dns name.

    for
    kccug.com/KabojjaApp

    it is com.kccug

    but i suggest to use three parts and add the appname too.
    com.kccug.kabojjaapp <-- all lowercase

    All my apps are using de.donmanfred.appname and it is working fine with firebase.
     
    Erel and Makumbi like this.
  6. DonManfred

    DonManfred Expert Licensed User

  7. Makumbi

    Makumbi Active Member Licensed User

    ia
    iam very gratefull
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice