Android Question error while trying to create package name

Makumbi

Well-Known Member
Licensed User
i have my app at this
B4X:
http://kccug.com/KabojjaApp

i wanted to create package name as smisKabojja but iam getting error
B4X:
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
B4X:
'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.
 

DonManfred

Expert
Licensed User
Longtime User
the packagename in the json does not match the packagename you are using.
Check the packagename in the firebase console in your project.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime 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.
 
Upvote 0

Makumbi

Well-Known Member
Licensed User
ia
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.
iam very gratefull
 
Upvote 0
Top