Hola a todos, ayer hice todo el procedimiento para firebase. Y cuando agrego las líneas al manifest y lo compilo tengo el siguiente error.
Borre lo cargado en el manifest y deje la librería de Firebase y JSON y compila bien y lo descarga.
Este es el contenido de mi manifest.
Yo en el código no agregue nada todavía solo cargue el manifest y las librerías para ver si estaba bien.
La idea es despues habilitar unos banner de Admob, pero todavía no cargue nada de eso.
Gracias
B4X:
B4A version: 6.50
Parsing code. (0.01s)
Compiling code. (0.24s)
Compiling layouts code. (0.02s)
Organizing libraries. (1.64s)
Generating R file. (0.25s)
Compiling generated Java code. (1.40s)
Convert byte code - optimized dex. (1.80s)
Packaging files. (1.03s)
Copying libraries resources (0.08s)
Found 1 resource files.
Signing package file (private key) (1.47s)
ZipAlign file. (0.12s)
Installing file to device. Error
[ 3%] /data/local/tmp/LGCIntegral.apk
[ 6%] /data/local/tmp/LGCIntegral.apk
[ 10%] /data/local/tmp/LGCIntegral.apk
[ 13%] /data/local/tmp/LGCIntegral.apk
[ 17%] /data/local/tmp/LGCIntegral.apk
[ 20%] /data/local/tmp/LGCIntegral.apk
[ 24%] /data/local/tmp/LGCIntegral.apk
[ 27%] /data/local/tmp/LGCIntegral.apk
[ 31%] /data/local/tmp/LGCIntegral.apk
[ 34%] /data/local/tmp/LGCIntegral.apk
[ 38%] /data/local/tmp/LGCIntegral.apk
[ 41%] /data/local/tmp/LGCIntegral.apk
[ 45%] /data/local/tmp/LGCIntegral.apk
[ 48%] /data/local/tmp/LGCIntegral.apk
[ 52%] /data/local/tmp/LGCIntegral.apk
[ 55%] /data/local/tmp/LGCIntegral.apk
[ 59%] /data/local/tmp/LGCIntegral.apk
[ 62%] /data/local/tmp/LGCIntegral.apk
[ 66%] /data/local/tmp/LGCIntegral.apk
[ 69%] /data/local/tmp/LGCIntegral.apk
[ 73%] /data/local/tmp/LGCIntegral.apk
[ 76%] /data/local/tmp/LGCIntegral.apk
[ 80%] /data/local/tmp/LGCIntegral.apk
[ 83%] /data/local/tmp/LGCIntegral.apk
[ 87%] /data/local/tmp/LGCIntegral.apk
[ 90%] /data/local/tmp/LGCIntegral.apk
[ 94%] /data/local/tmp/LGCIntegral.apk
[ 97%] /data/local/tmp/LGCIntegral.apk
[100%] /data/local/tmp/LGCIntegral.apk
pkg: /data/local/tmp/LGCIntegral.apk
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
Borre lo cargado en el manifest y deje la librería de Firebase y JSON y compila bien y lo descarga.
Este es el contenido de mi manifest.
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="19"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
'************ Google Play Services Base ************
AddApplicationText(
<activity android:name="com.google.android.gms.common.api.GoogleApiActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="false"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
)
'************ Google Play Services Base (end) ************
'************ Firebase Base ************
CreateResourceFromFile("google-services", "google-services.json")
AddPermission(android.permission.ACCESS_NETWORK_STATE)
AddPermission(android.permission.INTERNET)
AddPermission(android.permission.WAKE_LOCK)
AddPermission(com.google.android.c2dm.permission.RECEIVE)
AddPermission(${applicationId}.permission.C2D_MESSAGE)
AddManifestText( <permission android:name="${applicationId}.permission.C2D_MESSAGE"
android:protectionLevel="signature" />)
AddApplicationText(
<receiver
android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
android:enabled="true">
<intent-filter>
<action android:name="com.google.android.gms.measurement.UPLOAD"/>
</intent-filter>
</receiver>
<service
android:name="com.google.android.gms.measurement.AppMeasurementService"
android:enabled="true"
android:exported="false"/>
<provider
android:authorities="${applicationId}.firebaseinitprovider"
android:name="com.google.firebase.provider.FirebaseInitProvider"
android:exported="false"
android:initOrder="100" />
<receiver
android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
android:enabled="true">
<intent-filter>
<action android:name="com.google.android.gms.measurement.UPLOAD"/>
</intent-filter>
</receiver>
<service
android:name="com.google.android.gms.measurement.AppMeasurementService"
android:enabled="true"
android:exported="false"/>
<receiver
android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="${applicationId}" />
</intent-filter>
</receiver>
<receiver
android:name="com.google.firebase.iid.FirebaseInstanceIdInternalReceiver"
android:exported="false" />
<service
android:name="com.google.firebase.iid.FirebaseInstanceIdService"
android:exported="true">
<intent-filter android:priority="-500">
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
)
'************ Firebase Base (end) ************
'************ Firebase Notifications ************
AddApplicationText(
<service
android:name="com.google.firebase.messaging.FirebaseMessagingService"
android:exported="true">
<intent-filter android:priority="-500">
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service android:name="anywheresoftware.b4a.objects.FirebaseNotificationsService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
)
'************ Firebase Notifications (end)************
'************ Firebase Analytics ************
AddApplicationText(
<receiver
android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
android:enabled="true">
<intent-filter>
<action android:name="com.google.android.gms.measurement.UPLOAD"/>
</intent-filter>
</receiver>
<service
android:name="com.google.android.gms.measurement.AppMeasurementService"
android:enabled="true"
android:exported="false"/>
<service android:name="com.google.firebase.crash.internal.service.FirebaseCrashReceiverService"
android:process=":background_crash"/>
<service android:name="com.google.firebase.crash.internal.service.FirebaseCrashSenderService"
android:process=":background_crash"/>
)
'************ Firebase Analytics (end) ************
'************ Firebase Ads ************
AddApplicationText(
<activity
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:theme="@android:style/Theme.Translucent" />
<activity android:name="com.google.android.gms.ads.purchase.InAppPurchaseActivity"
android:theme="@style/Theme.IAPTheme"/>
)
'************ Firebase Ads (end) ************
'************ Firebase Auth ************
AddApplicationText(
<activity android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:excludeFromRecents="true"
android:exported="false" />
<service
android:name="com.google.android.gms.auth.api.signin.RevocationBoundService"
android:exported="true"
android:permission="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION" />
)
'************ Firebase Auth (end) ************
Yo en el código no agregue nada todavía solo cargue el manifest y las librerías para ver si estaba bien.
La idea es despues habilitar unos banner de Admob, pero todavía no cargue nada de eso.
Gracias