I have recently updated my phonegao version to 3.3.0 and when I create and build a new project with Phonegap in Android the project builds using my highest Android SDK version (Android 4.4 - API 19 in my case), but I want to build my phonegap 3.3 projects using Android 4.4.2 version (API 17).
Any ideas about how to perform this action?
Thanks a lot in advance!
So you do not want API 19 in your project, It means you want your project to run upto android version 4.2.2 only.
Make following changes in your config.xml
<preference name= "android-minSdkVersion" value="7"/>
if you want restriction on versions then you can include target version as
targetSdkVersion="17"
if you dont include target version then there will be no restrictions.
Related
I have to develop an app for a device on gingerbread version (9-10) of Android.
Android studio don't allow to have a minSDK less than version 14.
Is there a solution to develop and build an app for gingerbread version ?
Thanks.
Use Android Studio 2.3.3 (the oldest version). You'll find API-9 the minimum SDK.
I have a C# Xamarin Forms Solution in Visual Studio 2019 that was created from the Xamarin Forms Template.
When the Android version (Target Framework), (found in the 'Application' Tab of the properties Window of the Android project) is set to either
1) Android 8.1 (Oreo)
2) Android 9.0 (Pie)
then my app works great on a phone running Android 9.0
However, as soon as I change it to 'Android 8.0 (Oreo)' then Visual Studio generates errors and warnings. Here is an image of them:
The reason I think I need to change the Android version to 8.0 is so that I can use the app on Android phones with this version. When I try to install the APK file (built targeting either 8.1 or 9.0) on an 8.0 Android device then the app does not work.
The error suggestion to "..increase the $(TargetFrameworkVersion)..." seems odd considering I am trying to target a lower version.
I should point out that I have all the Android SDK's installed for 8.0/8.1/9.0 and all the Android SDK Build Tools.
What am I doing wrong? I am wanting to target Android 8.0 (Oreo).
I am very new to Xamarin.
You only need to change the Minimum Android Version to run on lower API versions. Make Target Android version higher (to version 9) and Minimum Android Version to a version which you would like to support (maybe version 6). Also note that if you have any android support libraries or Xamarin.Forms, those also have a minimum build version. You have to target equal or higher version to build with those. Another thing you have to check is Supported Architectures (Properties-> Android Options -> Advanced -> Supported Architectures). Make sure it checked the architecture of the device that you try to deploy
I'm trying to add some xamarin android related nuget packages into my project.
When I see https://www.nuget.org/packages/Xamarin.Forms/3.1.0.583944
Dependencies
MonoAndroid 7.1
Tizen 4.0
UAP 10.0
Does MonoAndroid 7.1 mean that I can only use Android 7.1 as my compiling version? What if I use Android 8 which is MonoAndroid 8.0 ?
Using MonoAndroid 8.0 should be fine. Consider it more of a minimum required version number. Also, a word to the wise, make sure that all projects in the solution are using the same Xamarin Forms version. It will save you headaches.
I'm started with a new phonegap application and I want to use the 2.2 Android API.
I've got error even in the initial project.
I can resolve these problems using a major version of the API (4.x).
Is there a way to build application with PhoneGap 2.6 for android API 2.2?
maybe I do somenthing wrong in the
./create <p1> <p2> <p3>
project.
using oracle-jdk7U21 and android-sdk-linux
the ANDROID_BIN is set to
android-sdk-linux/tools/android
EDIT and SOLVED
It's everything fine for compatibility build with Android API 16 and using a device that support API 8.
so i figured out it's ok using the android sdk 4.x and run on device with andorid 2.2 (until now)
for downloading android sdk follow the link Android
and for phonegap eclipse
I'm building an Android app, I'm a newbie and I was wondering what build SDK and Minimum required SDK is recommended?
Also what does each one mean?
Upto my knowledge build SDK means which Android O.S version you are building against and
Minimum required SDK means: the minimum Android O.S version you want to support.
For Example
If build SDK = 2.3.3
and Minimum required SDK = 2.2
then your application will run on 2.2 and above