Spanish Ayuda con firebase [Solved]

Carlos marin

Active Member
Licensed User
Longtime User
Estoy intentando implementar FirebaseAdmob siguiendo este tutorial de erel https://www.b4x.com/android/forum/t...tegrated-with-firebase-backend.67710/#content pero cada día me pierdo mas ya ni la app me compila, alguien que ya le halla funcionado por favor se lo agradecería mucho

cunado agrego esto al manifiesto
upload_2019-2-4_19-18-54.png


ya la app no me compila. me esta saliendo este error
upload_2019-2-4_19-17-31.png
 

Attachments

  • upload_2019-2-4_19-16-45.png
    upload_2019-2-4_19-16-45.png
    33.7 KB · Views: 253
Last edited:

f0raster0

Well-Known Member
Licensed User
Longtime User
no use foto!!
copy/paste aqui el error/code etc
 

Carlos marin

Active Member
Licensed User
Longtime User
no use foto!!
copy/paste aqui el error/code etc
the error:
AndroidManifest.xml:115: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.IAPTheme').
in the photo I show the manifesto
 

Carlos marin

Active Member
Licensed User
Longtime User
mira mi manifiest. solo estoy usando una combinacion de color
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="27"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
AddApplicationText(
<meta-data
  android:name="com.google.android.geo.API_KEY"
  android:value="xxxxx-wda-4_wW-xxxx"/>
  <meta-data android:name="com.google.android.gms.version"
   android:value="@integer/google_play_services_version" />)
AddPermission("android.permission.ACCESS_COARSE_LOCATION")
AddPermission("android.permission.INTERNET")
AddPermission("android.permission.ACCESS_FINE_LOCATION")
AddPermission("android.permission.READ_PHONE_STATE")
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:largeHeap,"true")
'*********** firebase ************
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAdMob.FirebaseAds)
'*********** end firebase ************
'End of default text.
'SetApplicationAttribute(android:theme, "@style/Theme.AppCompat")
SetApplicationAttribute(android:theme, "@style/MyAppTheme")

CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
        <item name="android:windowContentTransitions">true</item>
         <item name="colorPrimary">#FF6600</item>
        <item name="colorPrimaryDark">#ffa52b</item>
        <item name="colorAccent">#afafaf</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionModeOverlay">false</item>
        <item name="windowActionBar">false</item>
    </style>
</resources>
)

intente omitir este tema
B4X:
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
pero si lo hago la aplicacion se detiene. :(:(
 

Carlos marin

Active Member
Licensed User
Longtime User
¿Necesitas esto?
creo que puedes comentar todo
B4X:
'SetApplicationAttribute(android:theme, "@style/Theme.AppCompat")
SetApplicationAttribute(android:theme, "@style/MyAppTheme")

CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
        <item name="android:windowContentTransitions">true</item>
         <item name="colorPrimary">#FF6600</item>
        <item name="colorPrimaryDark">#ffa52b</item>
        <item name="colorAccent">#afafaf</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionModeOverlay">false</item>
        <item name="windowActionBar">false</item>
    </style>
</resources>
)

estimado ya lo hice y me siguen saliendo errores, incluso cree un proyecto nuevo para mirar si era el mio, pero me sale el mismo error AndroidManifest.xml:102: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.IAPTheme').

ahora cuando pongo un tema del tutorial de erel me muestra este error AndroidManifest.xml:26: error: Error parsing XML: not well-formed (invalid token)
 

Carlos marin

Active Member
Licensed User
Longtime User
¿Intentaste actualizar como dice aqui?



¿Tienes correcto el path (tools->configure paths) ?

si estimado, es que la app me funciona bien todo, el problema es cuando trato de implementar firebase. si omito esas reglas en el manifiesto la aplicación se ejecuta sin problemas... que hago?¡?o_O:eek::confused: ya actualice todo el sdk como dice erel y nada aun
 

Carlos marin

Active Member
Licensed User
Longtime User
Amigo como estas, mira cogí un proyecto desde 0 nuevo e implemente el firebase y me sale el mismo error..
un proyecto desde cero!. hay un problema con ese firebase referente a la fuente muestra el mismo error
AndroidManifest.xml:102: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.IAPTheme').

codigo main
B4X:
#Region  Project Attributes
    #ApplicationLabel: Solodomis
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
    #AdditionalJar: com.google.android.gms:play-services-maps
#End Region

#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.

End Sub

Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.

End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    'Activity.LoadLayout("Layout1")

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

manifiesto
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="14" 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)
'End of default text.
'*********** firebase ************
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAdMob.FirebaseAds)
'*********** end firebase ************
 

Carlos marin

Active Member
Licensed User
Longtime User
Bueno después de mucho intentar quedo en este error.

upload_2019-2-5_15-13-47.png


he aumentado el MaxRamForDex=2048 y nada me sigue saliendo el mismo error. que puedo hacer?
 

rscheel

Well-Known Member
Licensed User
Longtime User
Deberías empezar por crear un nuevo proyecto e ir por partes, primero solucionar el error del tema, una ves funcionando ir por firebase, también para usar firebase debes usar la herramienta de sdk que recomienda erel, si usas el sdk instalado externamente o con android studio, firebase no funciona.
 
Top