Italian [B4A] SD_SQL alcuni errori che non so spiegarmi

ivanomonti

Expert
Licensed User
Longtime User
ho un errore di manifest e credenziali e le sto provando tutte ma un delirio per me, ho aggiunto e creato il xml in res:

C:\Users\ivanomonti\Desktop\Progetto condiviso MIASmart Social AI\Androi_client\B4A\Objects\res\

<application
android:networkSecurityConfig="@xml/network_security_config"
android:usesCleartextTraffic="true"
</application>

Error: java.net.UnknownServiceException: CLEARTEXT

MANIFEST:
'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(
<application
    android:networkSecurityConfig="@xml/network_security_config"
    android:usesCleartextTraffic="true"
</application>
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="31"/>
<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.

 

Attachments

  • network_security_config.xml
    233 bytes · Views: 60

Sagenut

Expert
Licensed User
Longtime User
android:usesCleartextTraffic="true
Questo era consentito solo fino ad SDK 29.
Se la tua app NON deve essere pubblicata sul market abbassa il TargetSDK a 26.
 

Sagenut

Expert
Licensed User
Longtime User
Se vuoi pubblicarla sul market sono concesse solo connessioni HTTPS e non sono più accettate connessioni HTTP.
 
Last edited:

Sagenut

Expert
Licensed User
Longtime User
Forse ho fatto confusione con l'accesso alle cartelle.
Quella cosa per le connessioni HTTP dovrebbe funzionare.
 

Sagenut

Expert
Licensed User
Longtime User
ma se poi voglio pubblicarla?
E per pubblicarla ora non ricordo quale versione SDK serve.
Da agosto servirà dichiarare la 33 (e dovrà arrivare un qualche aggiornamento di B4A prima, credo).
 

Sagenut

Expert
Licensed User
Longtime User
Per attivare le connessioni HTTP nel manifest devi aggiungere solo questo
B4X:
CreateResourceFromFile(Macro, Core.NetworkClearText)
 
Top