Visual Studio 2015 Unsupported Devices - android

I have a new set up visual studio 2015 (updated) in a new laptop and I am having a problem with my project from an old laptop. I don't know why my device and 2 emulators are listed on Unsupported Devices in this new set up visual studio.
Minimum Android version is set to android 4.1 jelly bean
target is set to compile using SDK version
Compile using nougat 7.0/also tried to marshmallow 6.0
I have my phone nougat 7.0 and 2 emulators 6.0 but I don't know why from my copied project from old laptop says API Level is less than the minimum Android version defined in the manifest file
Already tried to delete bin and obj folders. Tried to set min, target and compile with other combinations but no luck to solve this issue.
What can I do with this old project in my new VS 2015 set up? My new projects don't have a problem at all.

I ran into the same problem, there's a "minimun android version" dropdown under the Android Manifest tab in the project settings. Changing it there made my emulator pop up again. Got the idea by reading this: https://developer.xamarin.com/guides/android/application_fundamentals/understanding_android_api_levels/
Edit: I'm using Visual Studio 2017 Community

I found the answer for this. I have found out that it is because of API 24 and up from my SDK manager. I deleted those API and voila ! Unsupported devices are gone and back to normal . I don't know if it is because of the project built from another laptop only having API 23 below and when I transferred it to a my laptop with Nougat and Oreo API, unsupported devices happened. Hope it give helps to other coders.

Related

New Android App ( Xamarin) targeting Android 9.0 api not compiling because missing Android X assemblies (but they need Android 11.0 version)

I am trying to build an Android app to make a simple prototype. Using Microsoft Visual Studio 2022 (v17.2.4), I create an Android App (Xamarin), blank app. And I target Android 9.0 version.
But, I have compilation errors :
Could not find 2 Android X assemblies, make sure to install the following NuGet packages:
Xamarin.AndroidX.Lifecycle.LiveData
Xamarin.AndroidX.Browser
Problem is that I can't install these NuGet packages because they need Android 12.0 version or greater :
Package Xamarin.AndroidX.Lifecycle.LiveData 2.5.1 is not compatible with monoandroid90 (MonoAndroid,Version=v9.0). Package Xamarin.AndroidX.Lifecycle.LiveData 2.5.1 supports:
monoandroid12.0 (MonoAndroid,Version=v12.0)
net6.0-android31.0 (.NETCoreApp,Version=v6.0)
So I don't know how to solve this. I don't want to target Android 12 version, I need this app to launch on an Android 9.0 device.
What are these libraries the app need to compile? Can I do without them? I don't find any references to them.
Note : I have a warning too on the same way, but not sure if it has to deal with my compilation issue. I Put it anyway, if it can help :
Warning Google Play requires that new applications and updates must use a TargetFrameworkVersion of v11.0 (API level 30) or above. You are currently targeting v9.0 (API level 28).
Please, any idea to solve my issue?
I just want to compile and launch an Android (Xamarin) blank app targeting Android 9.0.
Thank you and have a good day,
I'm finding this a problem too. Just deployed an app (Dec 2022) that targeted 28 / 12 and has min version 10 as appears enforced by Google?
Prob is I've got a lot of people wanting to use the app that can't see it because they have ancient phones (9 or earlier - is that 5 years or more). Seems a bit tough? Is there a way to overcome this.
I assume that the today's Xamarin Android project templates are designed to compile with Android 12. I don't think there is a way to build them with Android 9.
I guess we just have to find another older template?
For my part I had finally took an older project I had instead of creating a new project.

In eclipse I a getting the API level 20 .I want ot use lower versions of API

How to change API level. when selecting this API level it shows no CPU/ABi available and also I am not able to add text fields it throws an exception.
Image 1Image 2
In Eclipse go to manifest.xml
<uses-sdk android:minSdkVersion="int" />
In android studio: go to your app Gradle there you can find the minSdkVersion. Lower it to the version you needed.
android {
....
defaultConfig {
....
minSdkVersion 17
....
}
}
Quick Fix: Uncheck installed checkbox to see other downloads and try to refresh android sdk manager, restart it or restart the computer. API 19 worked fine for me before I moved to android studio.
I'm not sure if API 20 is supported in eclipse, I recommend Android Studio for android development. Anyway, if you have an old PC that does not meet android studio minimum requirement, download IntelliJ IDEA https://www.jetbrains.com/idea/, it's a bit lighter and free and require 1 GB of RAM (But 1 GB is very bad, you need at least 2 GB without running android emulator). However, if you still want to work with eclipse I think you need API 19 you have to download it manually from the web and move it to android SDK location. Or you can install android studio to download SDK without using it.
Newer APIs are way better, they have more libraries that supports both old and new android versions. It's really worth upgrading to Android Studio.
For the CPU/ABi error check this post Android 4.3 Virtual Device CPU/ABI - No system images installed (eclipse)

Android studio 1.5.1 'Rendering problems' error

I have android packages for 4.4, 5 and 6 installed in my android sdk. When i reduce the API level from 23 to 19(android 4.4). i get the following error:
------Rendering problems----
The graphics preview in the layout editor may not be accurate
-porterDuff Color filters are not supported
please how can solve this
I have been able to solve this by clicking the refresh button close to the mobile phone image. If this doesn't work, then consider reinstalling android studio.

Can not create AVD in Lollipop android-5

I have installed Android API version 21 (lollipop), since i have been trying to set up an AVD . There is no "new" button,instead there is a "Create" option . then no matter what configuration i set , AVD manager fails to create the emulator.I have checked for updates.No issue with OK button . I tried a lot of things ... Any clue ??
Android 5.0 Lollipop has not been released by far. But it will be at 12th Nov at America time zone. So, the IDE downloaded from Android Developer site is the preview version. And, I tried it as you, but, I realized it was incomplete. And some features were unavailable. So, I have been waiting for the release version, Android 5.0 Lollipop and its IDE bundled with ADT and Eclipse. Hopefully, this will help.

android - admob implmetation confusion

I have implemented admob code as given in google site (http://code.google.com/mobile/ads/docs/android/fundamentals.html) as described in google site we should target android 3.2 (api-13) in eclipse IDE to work properly. now my problem is my application targeting the android version 1.6 and above, since i made build target as andoird 3.2 it expects app should run on either 3.2 emulator or any of 3.2 device. i tried even installing on my 2.2 device but it didnt work.
Please help.
Thanks
The only thing you need to do is follow their instruction:
Requirements
The Google AdMob Ads SDK for Android requires Android 1.5 or later. Make sure you have the latest copy of the Android SDK and that you're compiling against at least Android v3.2 (set target in default.properties to android-13).
Using Android SDK Tool download android-13 SDK and modify your default.properties, do not change anything else like android:minSdkVersion in AndroidManifest.xml. Yes, you will get a little yellow warning message says version not match in Eclipse, just ignore it and build your application, you should be fine.

Categories

Resources