Android Question firebase error

ihabsharaf

Member
Licensed User
hi every one
i have this error when add firebase to manifest this issues occurred with old android version

================================

B4A Version: 9.01.2
Java Version: 8
Parsing code. (0.16s)
Building folders structure. (0.04s)
Compiling code. (0.11s)
Compiling layouts code. (0.03s)
Organizing libraries. (0.00s)
Generating R file. (0.00s)
Compiling generated Java code. (0.08s)
Convert byte code - optimized dex. (18.92s)
Packaging files. (3.63s)
Copying libraries resources (0.05s)
Found 33 resource files.
Signing package file (private key). (2.75s)
ZipAlign file. (0.10s)
Installing file to device. Error
adb: failed to install BlueCube.apk: Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1699231097.tmp/base.apk (at Binary XML file line #14): Bad class name BlueCube.infirst.permission.C2D_MESSAGE in package BlueCube.infirst]
 

ihabsharaf

Member
Licensed User
i'm not hide Manifest just forget to upload it

B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="27"/>
<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, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)






AddManifestText(<uses-permission
    android:name="android.permission.WRITE_EXTERNAL_STORAGE"
    android:maxSdkVersion="18" />
)

AddApplicationText(
  <provider
  android:name="android.support.v4.content.FileProvider"
  android:authorities="$PACKAGE$.provider"
  android:exported="false"
  android:grantUriPermissions="true">
  <meta-data
  android:name="android.support.FILE_PROVIDER_PATHS"
  android:resource="@xml/provider_paths"/>
  </provider>
)
CreateResource(xml, provider_paths,
   <files-path name="name" path="shared" />
)



SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
        <item name="colorPrimary">#2573bc</item>
        <item name="colorPrimaryDark">#2573bc</item>
        <item name="colorAccent">#2573bc</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="windowActionModeOverlay">true</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
    </style>
</resources>
)



SetActivityAttribute(main, android:windowSoftInputMode, adjustResize)
SetApplicationAttribute(android:largeHeap,"true")
 

DonManfred

Expert
Licensed User
Bad class name BlueCube.infirst.permission.C2D_MESSAGE in package BlueCube.infirst]
maybe the mixed case in your packagename is the problem? i remember it should all lowercased.
Also the packagename should be 3 parts if i remember correctly. com.bluecube.infirst for ex.
 
Top