Ircover
Ircover

Reputation: 2446

Xamarin Studio cross platform app error

At the moment I'm trying to launch empty app with cross-platform solution in Xamarin Studio.

I've tried make app with empty library project and shared library, both has same errors. Now unresolved problems are:

1) Build error:

Error XA5207: Please install package: 'Android Support Library' available in SDK installer. Java library file classes.jar doesn't exist. (XA5207) (*projectName*)

Error XA5207: Please install package: 'Android Support Library' available in SDK installer. Java library file libs/internal_impl-21.0.3.jar doesn't exist. (XA5207) (*projectName*)

This question didn't help me.

2) Some links says it could be because of old Mono.Android.Support.v4 component. My component version is 21.0.3.0. After clicking for update it says:

You are trying to install this package into a project that targets 'MonoAndroid,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework.

My Mono.Android assembly version is 0.0.0.0 and I dodn't know how to update it.

I've tried PCL project with PCL 4.5 - profile7. New projects builds normal, but after first project clean it gives me error about not found classes.jar file like described above. Another new PCL project still builds fine.

UPDATE

Error in PCL project occures not after clean - it occures with included Xamarin.Forms NuGet to Android project.

UPDATE

After rising target framework of android project to v4.0.3 I successfuly updated Mono.Android.Support.v4 component, but it still show me error about Please install package.

UPDATE

I'm using Windows 7 OS, same problem with all users including new user. But on another computer with Windows 8 it works. It is not a solution for me, but it can somehow help someone.

Upvotes: 13

Views: 550

Answers (1)

KAUSHAL J. SATHWARA
KAUSHAL J. SATHWARA

Reputation: 994

i think your java JDK and JRE not install properly and your path not set in your environment variable you must add your jdk path in that and if you are make application using cross platform then also add path SDK in your computer environmental variable. using CMD throw creating project.

Upvotes: 1

Related Questions