Bug 24152 - Cannot build a simple android project linked to a PCL project
Summary: Cannot build a simple android project linked to a PCL project
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 5.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2014-10-30 04:01 UTC by Ole Falkerslev Kristensen
Modified: 2014-10-30 06:53 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Screen dump (448.87 KB, image/jpeg)
2014-10-30 04:02 UTC, Ole Falkerslev Kristensen
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Ole Falkerslev Kristensen 2014-10-30 04:01:50 UTC
I have problems building a quite simple project. I have android SDK v21 installed

C:\Users\olefa_000\Documents\XamChat\XamChat.Droid\Properties\AndroidManifest.xml: Warning XA4211: AndroidManifest.xml //uses-sdk/@android:targetSdkVersion '14' is less than $(TargetFrameworkVersion) 'v4.5'. Using API-L for ACW compilation. (XA4211) (XamChat.Droid)

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2): Error: Could not find android.jar for API Level 21. This means the Android SDK platform for API Level 21 is not installed. Either install it in the Android SDK Manager (Tools > Open Android SDK Manager...), or change your Xamarin.Android project to target an API version that is installed. (C:\Users\olefa_000\AppData\Local\Android\android-sdk\platforms\android-L\android.jar missing.) (XamChat.Droid)
Comment 1 Ole Falkerslev Kristensen 2014-10-30 04:02:53 UTC
Created attachment 8558 [details]
Screen dump
Comment 2 Atsushi Eno 2014-10-30 06:50:02 UTC
We don't support API Level "21" yet. We only support API Level "L" (preview), which is platforms/android-L directory. And you need Xamarin.Android 4.99 which is only in alpha channel.
So if you have installed API Level 21 by yourself, it's not what we support and you also have to recover API "L preview" manually. While you can do it by downloading the corresponding archive from Google and extract it under Android SDK directory, we don't support that. Renaming android-21 to android-L so far is one possible trick to get things "partially" working, but since L preview and 21 are quite different, you will hit some JNI signature mismatch that causes crash.

If you actually have valid installation for "L preview" and still reproduces the issue, please reopen.

We will be eventually publishing new alpha that supports API Level "21" in rational timely manner.
Comment 3 Ole Falkerslev Kristensen 2014-10-30 06:53:43 UTC
OK. I used ICS Android application template. This works for me so far