Android Studio API level error - android

I'm trying out the new Android Studio and it is not recognizing the current API level
My AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.wiproeag.smartbuy"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="17" />
...
</manifest>
Any ideas?

A possible workaround for this is to include the Android compatibility libraries. Try this one first and get back with the results. I'va also encountered such a problem and it worked for me.

Related

Smaller apk after upgrade Visual studio

I updated Visual studio 2019 from 16.5.1 to 16.8.3
If I generated APK in older version, the size was 94 MB, now is 55 MB. Why?
The new version causes app crash.
Xamarin.Android now has the entry android:extractNativeLibs="true" set by default, which causes smaller APKs since Visual Studio 2019 Version 16.8.
You can get the opposite behavior with an AndroidManifest.xml such as:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1" android:versionName="1.0" package="com.companyname.myapp">
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="30" />
<application android:label="myapp" android:extractNativeLibs="false" />
</manifest>

Android app runs on Marshmallow and above API versions, but doesn't run below it

I am making one Android app. The app is working fine in android M and above, but my API's are not working in android below M
Here is my android manifest file. What is wrong with that?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tool="http://schemas.android.com/apk/res-auto"
package="com.milestonestudioz.adaalo"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="25"/>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
You need to give the min SDK version in the Gradle file of your Android folder. When you give there the min Sdk, I think it should work. In case of any more clarification do ask...

VS2015 Xamarin Parsing error while installing apk

I have created a sample android app using visual studio 2015 xamarin.
It's an empty app and when trying to install it's saying parse error while installing package. i have seen so many fixes for this problem but
please see my manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="23" />
<application android:label="mt01_app.Android"></application>
</manifest>

How to set Android version in Eclipse?

I've written a first app for Android with Eclipse. I've published it but I'm noticing that on the app page it doesn't show the Android minimum version supported, you can see it here:
https://market.android.com/details?id=com.yellowhouse.everydayquotes
I've searched in the project files and I've found that in project.properties there is the following line:
target=android-15
is that the correct place to set the Android version? Am I missing something? Why does it not appear on the page? Thanks.
the "target=android-15" that you have is for your emulator or your test device which you want to launch your app with
To answer to your question, you need to set the minSDK version in your android manifest file
like that
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="tfe.rma.ciss.be"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" />
</manifest>
To set the minimum required android version for your app, you need to use uses-sdk element inside your AndroidManifest.xml file:
<manifest ...>
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="7"/>
...
</manifest>
Version 4 means Android 1.6. Read up information on android manifest to see the correct sdk version numbers: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

Android Error - Market requires the minSdkVersion to be set to a positive 32-bit integer in AndroidManifest.xml

I'm trying to upload an App onto the Market Place and i'm getting the following error "Market requires the minSdkVersion to be set to a positive 32-bit integer in AndroidManifest.xml." after i export the signed Application Package using Eclipse. My Manifest File looks like the following:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.recipes"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk minSdkVersion="7"
android:targetSdkVersion="8"/>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
Anyone know why i'm getting this error?
Thanks,
O

Categories

Resources