<!-- <engine name="android" spec="8.0.0" /> --> (or 9.0.0)
<preference name="android-minSdkVersion" value="22" />
<preference name="android-maxSdkVersion" value="22" />
Available Android targets:
----------
id: 1 or "android-27"
Name: Android API 27
Type: Platform
API level: 27
Revision: 3
----------
id: 2 or "android-28"
Name: Android API 28
Type: Platform
API level: 28
Revision: 6
----------
id: 3 or "android-29"
Name: Android API 29
Type: Platform
API level: 29
Revision: 5
----------
id: 4 or "android-30"
Name: Android API 30
Type: Platform
API level: 30
Revision: 3
Project Installed Platforms:
android: 9.1.0
android Environment:
android:
ERROR: Command failed with ENOENT: android list target
spawn android ENOENT
When the app is installed on the 5.1.1 phone, I get
Describe Error
There is a problem parsing the package
The app works fine on my Android 9.0 and 10.0 devices
Questions
What is the minSdk I can get with engine 9, and what is the lowest Android OS version we can target?
Is there a way to support this 5.1.1 device?
Am I doing something wrong?
As a reminder, I am using your service with my ASU College class, and students will have all kinds of devices both current and old, I have set the requirement to
Android phone or tablet running Android 6.0 (Marshmallow, API 23) or later.
Tip: If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly. (We fixed it for you this time)
I think it is ok that you don’t have a 5.1.1 device, the question is how to get Android-22 as an available target? The available target list starts at android–27 and goes to android-30.
I did not get them, I only got the APK file that George sent yesterday and I have been going crazy trying to see what you did different… how did you send the whole source tree?
I appreciate your support, I think we have a solution, and perhaps identified a weird hole that we fell into. The issue is in the config.xml widget id field…
<widget
id = "edu.asu.cis430.f21.ColorShakeMobile"
version = "21.2.0"
xmlns = "https://www.w3.org/ns/widgets"
>
This works on ALL version of Android (5.1.1 to current), which is what I used last few semeseters.
This semester, we added support for iOS, and I needed to change the id to include our developer team identifier as a prefix:
<widget
id = "BWLSUFSJRA.edu.asu.cis430.f21.ColorShakeMobile"
version = "21.2.0"
xmlns = "https://www.w3.org/ns/widgets"
>
This id works on iOS and IS REQUIRED
It also works on Android 9+
HOWEVER, it gives the “Parse Error There is a problem parsing the package” on Android 5.1.1 - 8.0.0
So, the solution is to have two different id values depending up the target.
I think the confusion is that the 2nd id, works on only Android 9+
Now, I can go through all of the my other apps and class demo’s, assignments and clear up the config.xml.
So, this leads to another question:
Should there be different config.xml for Android and iOS, are there other holes I am going to fall into or can have a single config.xml for both platforms and just change the id widget?