Android Question Error with API 29. I can not upload my apk file to Google Play

jvrh_1

Active Member
Licensed User
Hello. I need your help because I am very lost.
I can not to upload my apk file to google play. It says that my app should be 28 or upper, but when I change it in my Manifest Editor, my app crash inmediatly.
Attach:
My manifest in the original version. Works perfectly.
My manifest edited with the version 28. CRASH
The log of B4A.
The message of Google Play.

MY ORIGINAL 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="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.LightTheme)
'End of default text.

'********* TabStrip ***********************
CreateResource(drawable, background_tab.xml,
<selector xmlns:android="http://schemas.android.com/apk/res/android"
    android:exitFadeDuration="@android:integer/config_shortAnimTime">
    <item android:state_pressed="true" android:drawable="@color/background_tab_pressed" />
    <item android:state_focused="true" android:drawable="@color/background_tab_pressed"/>
    <item android:drawable="@android:color/transparent"/>
</selector>)
CreateResource(values, colors.xml,
<resources>
    <color name="background_tab_pressed">#6633B5E5</color>
</resources>)
'******************************************

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



'PARA COMPARTIR UN ANUNCIO CONCRETO EN WHATSAPP
AddActivityText(main,
<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT"></category>
    <category android:name="android.intent.category.BROWSABLE"></category>
   <data android:scheme="http" />
   <data android:host="TEST.com" />
</intent-filter> )

'PARA NOTIFICACIONES Y AUTENTIFICAR EN LA APP CON GOOGLE
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)

SetApplicationAttribute(android:largeHeap,"true")


THE EDITED MANIFEST EDITED: CRASH
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="28"/>
<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.LightTheme)
'End of default text.

'********* TabStrip ***********************
CreateResource(drawable, background_tab.xml,
<selector xmlns:android="http://schemas.android.com/apk/res/android"
    android:exitFadeDuration="@android:integer/config_shortAnimTime">
    <item android:state_pressed="true" android:drawable="@color/background_tab_pressed" />
    <item android:state_focused="true" android:drawable="@color/background_tab_pressed"/>
    <item android:drawable="@android:color/transparent"/>
</selector>)
CreateResource(values, colors.xml,
<resources>
    <color name="background_tab_pressed">#6633B5E5</color>
</resources>)
'******************************************

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



'PARA COMPARTIR UN ANUNCIO CONCRETO EN WHATSAPP
AddActivityText(main,
<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT"></category>
    <category android:name="android.intent.category.BROWSABLE"></category>
   <data android:scheme="http" />
   <data android:host="TEST.com" />
</intent-filter> )

'PARA NOTIFICACIONES Y AUTENTIFICAR EN LA APP CON GOOGLE
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)

SetApplicationAttribute(android:largeHeap,"true")

Please help me. I do not know that I have to do.
 

Attachments

  • google play.png
    google play.png
    25.2 KB · Views: 112
  • FALLO.png
    FALLO.png
    25 KB · Views: 96

JohnC

Expert
Licensed User
Longtime User
The "ClearText" part of the error should be solved with:

Add this line to your Manifest:
SetApplicationAttribute(android:usesCleartextTraffic, "true")

As far as the EditText error, it looks like you are trying to use a Edittext view that you might have renamed at some point (in the designer?) and the new name is not getting initialized (only the old name is)
 
Upvote 0

jvrh_1

Active Member
Licensed User
Thanks. Works perfectly. Thanks JohnC and Thanks Erel. It worked:
SetApplicationAttribute(android:usesCleartextTraffic, "true")
 
Upvote 0
Top