German für ältere Android Version entwickelt ?

HarryPottier

Member
Licensed User
Hallo

Bei der Installation meiner App bekomme ich folgende Meldung:

„Dieses App wurde für ältere Android Version entwickelt und funktioniert möglicherweise nicht mehr richtig. Prüfen, ob Updates verfügbar sind oder kontaktiere den Entwickler.“

In B4A, unter Pfade konfigurieren (Verzeichnis Konfiguration) steht.

C:\Java\jdk-11.0.1\bin\javac.exe
C:\Android\android-sdk\platforms\android-29\android.jar

Was kann ich ändern damit diese Meldung nicht mehr erscheint
 

HarryPottier

Member
Licensed User
B4X:
<?xml version="1.0" encoding="UTF-8"?>

-<manifest android:installLocation="internalOnly" android:versionName="" android:versionCode="1" package="b4a.EuroGastro" xmlns:android="http://schemas.android.com/apk/res/android">

<uses-sdk android:minSdkVersion="4"/>

<supports-screens android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true"/>

<uses-permission android:name="android.permission.INTERNET"/>

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<uses-permission android:name="android.permission.VIBRATE"/>

<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>

<uses-permission android:name="android.permission.WAKE_LOCK"/>


-<application android:label="Order Mobile" android:icon="@drawable/icon">


-<activity android:name=".main" android:label="Order Mobile" android:screenOrientation="sensorPortrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden">


-<intent-filter>

<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER"/>

</intent-filter>

</activity>

<activity android:name=".layoutlocation" android:label="Order Mobile" android:screenOrientation="sensorPortrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

<activity android:name=".layoutwg" android:label="Order Mobile" android:screenOrientation="sensorPortrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

<activity android:name=".layoutdrink" android:label="Order Mobile" android:screenOrientation="sensorPortrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

<activity android:name=".layoutorder" android:label="Order Mobile" android:screenOrientation="sensorPortrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

<activity android:name=".layoutquittung" android:label="Order Mobile" android:screenOrientation="sensorPortrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

<activity android:name=".layoutgast" android:label="Order Mobile" android:screenOrientation="sensorPortrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

<activity android:name=".layout4" android:label="Order Mobile" android:screenOrientation="sensorPortrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

<service android:name=".starter"> </service>

<receiver android:name=".starter$starter_BR"> </receiver>

<activity android:name=".layoutsettings" android:label="Order Mobile" android:screenOrientation="sensorPortrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

<service android:name="anywheresoftware.b4a.samples.httputils2.httputils2service"> </service>

<receiver android:name="anywheresoftware.b4a.samples.httputils2.httputils2service$httputils2service_BR"> </receiver>

</application>

</manifest>
 

HarryPottier

Member
Licensed User
meinst du das hier

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="4" />
<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.
 

HarryPottier

Member
Licensed User
Habe ich gemacht, bekomme diese Fehlermeldung, ohne angabe der Zeilenummer
B4X:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpGet;
    at anywheresoftware.b4a.http.HttpClientWrapper$HttpUriRequestWrapper.InitializeGet(HttpClientWrapper.java:342)
    at anywheresoftware.b4a.samples.httputils2.httpjob._download(httpjob.java:71)
    at b4a.EuroGastro.main$ResumableSub_LoadBedienung.resume(main.java:736)
    at b4a.EuroGastro.main._loadbedienung(main.java:678)
    at b4a.EuroGastro.main._activity_create(main.java:593)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at b4a.EuroGastro.main.afterFirstLayout(main.java:104)
    at b4a.EuroGastro.main.access$000(main.java:17)
    at b4a.EuroGastro.main$WaitForLayout.run(main.java:82)
    at android.os.Handler.handleCallback(Handler.java:883)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:237)
    at android.app.ActivityThread.main(ActivityThread.java:7814)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1068)
Caused by: java.lang.ClassNotFoundException: org.apache.http.client.methods.HttpGet
    ... 21 more
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
 

HarryPottier

Member
Licensed User
der Manifesteditor-Text sieht so aus:
B4X:
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.DarkTheme)
'End of default text.
 

HarryPottier

Member
Licensed User
Leider verstehe ich nicht ausreichend englisch.
Ich habe mir die Texte auf Deutsch übersetzt, ohne Erkenntnis.

Habe mein Projekt stück für stück neu aufgezogen.
Habe jedoch entdeckt das ich HttpUtils2 verwende und OkHttpUtils2 empfohlen wird.
Nach der Änderung bekomme ich keine Verbindung zu

http://192.168.178.53/Android/Service.txt

die Fehlermeldung:
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.178.53 not permitted by network security policy, Response:

einen Hinweis gefunden um diesen Fehler zu beheben, in den ManifestEditor die folgende Zeile hinzugefügt:

SetApplicationAttribute(android:usesCleartextTraffic, "true")

Folgender Fehler erscheint jetzt beim Generieren:

Generiere R Datei. Error
AndroidManifest.xml:21: error: Error parsing XML: not well-formed (invalid token)

Ich bin ratlos und komme ohne konkrete Hilfe nicht weiter.
 

HarryPottier

Member
Licensed User
B4A 9.8
Pardon, hier der Manifestcode

B4X:
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.DarkTheme)
SetApplicationAttribute (android: usesCleartextTraffic, "true")
'End of default text.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…