Bug 16945 - Error executing task GeneratePackageManagerJava: Task does not have property "TargetFrameworkVersion" defined
Summary: Error executing task GeneratePackageManagerJava: Task does not have property ...
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.12.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2013-12-23 12:15 UTC by Gutemberg Ribeiro
Modified: 2017-08-07 20:43 UTC (History)
3 users (show)

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

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 Gutemberg Ribeiro 2013-12-23 12:15:50 UTC
Hi!

Somehow, after the last update I'm unable to build my Xmarin.Android project. 

Bellow my version details and build Output. Please help us since everyone is stuck and can't build our projects.

Target _GeneratePackageManagerJava:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: error : Error executing task GeneratePackageManagerJava: Task does not have property "TargetFrameworkVersion" defined
	Task "GeneratePackageManagerJava" execution -- FAILED
	Done building target "_GeneratePackageManagerJava" in project "/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/M2.Mobile.Android.csproj".-- FAILED
	
Done building project "/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/M2.Mobile.Android.csproj".-- FAILED

=== Xamarin Studio ===

Version 4.3.0 (build 52)
Installation UUID: 7348d641-ed6d-4c8a-b59a-116674e06dfd
Runtime:
	Mono 3.2.5 ((no/964e8f0)
	GTK+ 2.24.20 theme: Raleigh
	GTK# (2.12.0.0)
	Package version: 302050000

=== Apple Developer Tools ===

Xcode 5.0.2 (3335.32)
Build 5A3005

=== Xamarin.Android ===

Version: 4.10.2 (Business Edition)
Android SDK: /Users/gutemberg/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Xamarin.iOS ===

Version: 7.0.5.2 (Business Edition)
Hash: 9c42159
Branch: 
Build date: 2013-02-12 20:04:08-0500

=== Build Information ===

Release ID: 403000052
Git revision: cd02fcfb350930f468f3d7cbf8e39f940553d378
Build date: 2013-11-24 02:13:57+0000
Xamarin addins: 14d41853742c36662973f9bbc0d14e58befdebfb

=== Operating System ===

Mac OS X 10.9.1
Darwin Gutembergs-MacBook-Pro.local 13.0.0 Darwin Kernel Version 13.0.0
    Thu Sep 19 22:22:27 PDT 2013
    root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64




Cleaning: M2.Mobile.Android (Debug)

Build started 12/23/2013 15:00:57.
__________________________________________________
Build succeeded.
	 0 Warning(s)
	 0 Error(s)

Building: M2.Mobile.Bindings.Android (Debug)

Build started 12/23/2013 15:00:57.
__________________________________________________
Project "/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/M2.Mobile.Bindings.Android.csproj" (Build target(s)):
	
	Target ResolveLibraryProjects:
	No input files were specified for target ResolveLibraryProjects, skipping.
	
	Target _ResolveMonoAndroidSdks:
		MonoAndroid Tools: /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/
		Android SDK: /Users/gutemberg/Library/Developer/Xamarin/android-sdk-mac_x86/
		Java SDK: /usr/
		Android Platform API level: 8
		TargetFrameworkVersion: v2.2
	
	Target ExportJarToXml:
	Skipping target "ExportJarToXml" because its outputs are up-to-date.
	
	Target PrepareForBuild:
		Configuration: Debug Platform: AnyCPU
	
	Target GenerateBindings:
	Skipping target "GenerateBindings" because its outputs are up-to-date.
	
	Target _CreateNativeLibraryArchive:
	Skipping target "_CreateNativeLibraryArchive" because its outputs are up-to-date.
	
	Target GenerateSatelliteAssemblies:
	No input files were specified for target GenerateSatelliteAssemblies, skipping.
	
	Target GenerateTargetFrameworkMonikerAttribute:
	Skipping target "GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.
	
	Target CoreCompile:
	Skipping target "CoreCompile" because its outputs are up-to-date.
Done building project "/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/M2.Mobile.Bindings.Android.csproj".

Build succeeded.
	 0 Warning(s)

Building: M2.Mobile.Android (Debug)

Build started 12/23/2013 15:00:57.
__________________________________________________
Project "/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/M2.Mobile.Android.csproj" (Build target(s)):
	
	Target _CheckProjectItems:
		CheckProjectItems Task
		  NativeLibraries:
		  JavaLibraries:
		  JavaSourceFiles:
	
	Target _ComputeAndroidAssetsPaths:
		  ResourceFiles:
		    Assets/CLSIT
		  IntermediateFiles:
	
	Target _ComputeAndroidResourcePaths:
		  ResourceFiles:
		    Resources/layout/Main.axml
		    Resources/values/Strings.xml
		    Resources/drawable/Icon.png
		    Resources/layout/LoginView.axml
		    Resources/drawable/Logo_M2.png
		    Resources/layout/PaymentView.axml
		    Resources/values/Styles.xml
		    Resources/layout/HistoryView.axml
		    Resources/layout/DialogView.axml
		    Resources/layout/MenuView.axml
		    Resources/layout/ReceiptView.axml
		    Resources/layout/HistoryItemView.axml
		    Resources/drawable/Logo_M2_72dpi.png
		  IntermediateFiles:
		Created directory "obj/Debug/res/"
	
	Target _GenerateAndroidResourceDir:
		Creating directory '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/Resources/layout/Main.axml' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/main.xml'
		Creating directory '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/values'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/Resources/values/Strings.xml' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/values/strings.xml'
		Creating directory '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/drawable'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/Resources/drawable/Icon.png' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/drawable/icon.png'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/Resources/layout/LoginView.axml' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/loginview.xml'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/Resources/drawable/Logo_M2.png' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/drawable/logo_m2.png'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/Resources/layout/PaymentView.axml' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/paymentview.xml'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/Resources/values/Styles.xml' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/values/styles.xml'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/Resources/layout/HistoryView.axml' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/historyview.xml'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/Resources/layout/DialogView.axml' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/dialogview.xml'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/Resources/layout/MenuView.axml' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/menuview.xml'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/Resources/layout/ReceiptView.axml' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/receiptview.xml'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/Resources/layout/HistoryItemView.axml' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/historyitemview.xml'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/Resources/drawable/Logo_M2_72dpi.png' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/drawable/logo_m2_72dpi.png'
	
	Target _ResolveMonoAndroidSdks:
		MonoAndroid Tools: /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/
		MonoAndroid Binaries: /Library/Frameworks/Xamarin.Android.framework/Versions/Current/bin/
		Android Platform API level: 8
		TargetFrameworkVersion: v2.2
		Android NDK: /Users/gutemberg/Library/Developer/Xamarin/android-ndk/android-ndk-r8d/
		Android SDK: /Users/gutemberg/Library/Developer/Xamarin/android-sdk-mac_x86/
		Android SDK Build Tools: /Users/gutemberg/Library/Developer/Xamarin/android-sdk-mac_x86/build-tools/17.0.0/
		Java SDK: /usr/
	
	Target _ValidateAndroidPackageProperties:
		GetAndroidPackageName Task
		  ManifestFile: /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/Properties/AndroidManifest.xml
		  AssemblyName: M2.Mobile.Android
		  PackageName: M2.Mobile.Android.Branco
	
	Target _BuildDependencies:
		Project "/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/M2.Mobile.Bindings.Android.csproj" (Build target(s)):
			
			Target ResolveLibraryProjects:
			No input files were specified for target ResolveLibraryProjects, skipping.
			
			Target _ResolveMonoAndroidSdks:
				MonoAndroid Tools: /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/
				Android SDK: /Users/gutemberg/Library/Developer/Xamarin/android-sdk-mac_x86/
				Java SDK: /usr/
				Android Platform API level: 8
				TargetFrameworkVersion: v2.2
			
			Target ExportJarToXml:
			Skipping target "ExportJarToXml" because its outputs are up-to-date.
			
			Target PrepareForBuild:
				Configuration: Debug Platform: AnyCPU
			
			Target GenerateBindings:
			Skipping target "GenerateBindings" because its outputs are up-to-date.
			
			Target _CreateNativeLibraryArchive:
			Skipping target "_CreateNativeLibraryArchive" because its outputs are up-to-date.
			
			Target GenerateSatelliteAssemblies:
			No input files were specified for target GenerateSatelliteAssemblies, skipping.
			
			Target GenerateTargetFrameworkMonikerAttribute:
			Skipping target "GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.
			
			Target CoreCompile:
			Skipping target "CoreCompile" because its outputs are up-to-date.
		Done building project "/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/M2.Mobile.Bindings.Android.csproj".
		
		Resolved library outputs: /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/bin/Debug//M2.Mobile.Bindings.Android.dll
	
	Target _ExtractLibraryProjectImports:
		  Assemblies: 
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.2/Mono.Android.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/bin/Debug//M2.Mobile.Bindings.Android.dll
		  Jars: 
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/__library_projects__/M2.Mobile.Bindings.Android.Jars.jclisitef-android.jar
		  ResolvedResourceDirectories: 
		  ResolvedAssetDirectories: 
		  ResolvedEnvironmentFiles: 
	
	Target _GetLibraryImports:
		  NativeLibraries: 
		    obj/Debug/__library_projects__/M2.Mobile.Bindings.Android/native_library_imports/armeabi/libclisitef32.so
		    obj/Debug/__library_projects__/M2.Mobile.Bindings.Android/native_library_imports/armeabi/libjCliSiTefI.so
		    obj/Debug/__library_projects__/M2.Mobile.Bindings.Android/native_library_imports/armeabi-v7a/libclisitef32.so
		    obj/Debug/__library_projects__/M2.Mobile.Bindings.Android/native_library_imports/armeabi-v7a/libjCliSiTefI.so
		  Jars: 
		    obj/Debug/__library_projects__/M2.Mobile.Bindings.Android.Jars.jclisitef-android.jar
		    obj/Debug/__library_projects__/M2.Mobile.Bindings.Android/library_project_imports/M2.Mobile.Bindings.Android.Jars.jclisitef-android.jar
	
	Target _CheckDuplicateJavaLibraries:
		  JavaSourceFiles:
		  JavaLibraries:
	
	Target _GetAdditionalResourcesFromAssemblies:
		  Assemblies: 
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.2/Mono.Android.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/bin/Debug//M2.Mobile.Bindings.Android.dll
	
	Target _UpdateAndroidResgen:
		  AdditionalResourceDirectories: 
		Tool /Users/gutemberg/Library/Developer/Xamarin/android-sdk-mac_x86/build-tools/17.0.0/aapt execution started with arguments: package -f -m -M /var/folders/49/kzmqh1rj4l925yr961xlnm6h0000gn/T/hvrbbe7d.mxi/AndroidManifest.xml -J /var/folders/49/kzmqh1rj4l925yr961xlnm6h0000gn/T/hvrbbe7d.mxi --custom-package m2.mobile.android.branco -F /var/folders/49/kzmqh1rj4l925yr961xlnm6h0000gn/T/hvrbbe7d.mxi/resources.apk.bk -S obj/Debug/res/ -j obj/Debug/__library_projects__/M2.Mobile.Bindings.Android.Jars.jclisitef-android.jar -I /Users/gutemberg/Library/Developer/Xamarin/android-sdk-mac_x86/platforms/android-17/android.jar --auto-add-overlay 
		  AdditionalResourceDirectories:
		  Resources:
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/main.xml
		      [layout/Main.axml]
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/values/strings.xml
		      [values/Strings.xml]
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/drawable/icon.png
		      [drawable/Icon.png]
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/loginview.xml
		      [layout/LoginView.axml]
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/drawable/logo_m2.png
		      [drawable/Logo_M2.png]
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/paymentview.xml
		      [layout/PaymentView.axml]
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/values/styles.xml
		      [values/Styles.xml]
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/historyview.xml
		      [layout/HistoryView.axml]
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/dialogview.xml
		      [layout/DialogView.axml]
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/menuview.xml
		      [layout/MenuView.axml]
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/receiptview.xml
		      [layout/ReceiptView.axml]
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/layout/historyitemview.xml
		      [layout/HistoryItemView.axml]
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/res/drawable/logo_m2_72dpi.png
		      [drawable/Logo_M2_72dpi.png]
		  References:
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll
		      []
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll
		      []
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.2/Mono.Android.dll
		      []
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll
		      []
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/bin/Debug//M2.Mobile.Bindings.Android.dll
		      []
		  - Not remapping resource: Array.tipo_transacao
		  - Remapping resource: Drawable.icon -> drawable/Icon
		  - Remapping resource: Drawable.logo_m2 -> drawable/Logo_M2
		  - Remapping resource: Drawable.logo_m2_72dpi -> drawable/Logo_M2_72dpi
		  - Not remapping resource: Id.btnCobrar
		  - Not remapping resource: Id.btnLogin
		  - Not remapping resource: Id.dlgBtnCancel
		  - Not remapping resource: Id.dlgBtnOK
		  - Not remapping resource: Id.dlgInput
		  - Not remapping resource: Id.dlgMessage
		  - Not remapping resource: Id.imgLogo
		  - Not remapping resource: Id.lblReceipt
		  - Not remapping resource: Id.mnBtnCancel
		  - Not remapping resource: Id.mnBtnOK
		  - Not remapping resource: Id.mnMessage
		  - Not remapping resource: Id.mnSpOpcoes
		  - Not remapping resource: Id.rptBtnOK
		  - Not remapping resource: Id.rptDestination
		  - Not remapping resource: Id.spTipoTransacao
		  - Not remapping resource: Id.textView1
		  - Not remapping resource: Id.textView2
		  - Not remapping resource: Id.tvAutorizacao
		  - Not remapping resource: Id.tvData
		  - Not remapping resource: Id.tvValor
		  - Not remapping resource: Id.txtDestination
		  - Not remapping resource: Id.txtPassword
		  - Not remapping resource: Id.txtUsername
		  - Not remapping resource: Id.txtValor
		  - Remapping resource: Layout.dialogview -> layout/DialogView
		  - Remapping resource: Layout.historyitemview -> layout/HistoryItemView
		  - Remapping resource: Layout.historyview -> layout/HistoryView
		  - Remapping resource: Layout.loginview -> layout/LoginView
		  - Remapping resource: Layout.main -> layout/Main
		  - Remapping resource: Layout.menuview -> layout/MenuView
		  - Remapping resource: Layout.paymentview -> layout/PaymentView
		  - Remapping resource: Layout.receiptview -> layout/ReceiptView
		  - Not remapping resource: String.app_name
		  - Not remapping resource: String.tipo_transacao_prompt
		  - Not remapping resource: String.valor_transacao
		  - Not remapping resource: Style.Theme_Main
		  RemovedDirectories: 
		    /var/folders/49/kzmqh1rj4l925yr961xlnm6h0000gn/T/hvrbbe7d.mxi
	
	Target PrepareForBuild:
		Configuration: Debug Platform: AnyCPU
	
	Target CopyFilesMarkedCopyLocal:
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/bin/Debug/M2.Mobile.Bindings.Android.dll' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/bin/Debug/M2.Mobile.Bindings.Android.dll'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/bin/Debug/M2.Mobile.Bindings.Android.dll.mdb' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/bin/Debug/M2.Mobile.Bindings.Android.dll.mdb'
	
	Target GenerateSatelliteAssemblies:
	No input files were specified for target GenerateSatelliteAssemblies, skipping.
	
	Target CoreCompile:
		Tool /Library/Frameworks/Xamarin.Android.framework/Versions/Current/bin/smcs execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/M2.Mobile.Android.dll Resources/Resource.designer.cs Properties/AssemblyInfo.cs Activities/SplashActivity.cs Activities/MainActivity.cs Activities/PaymentActivity.cs Activities/HistoryActivity.cs Activities/LoginActivity.cs Helpers.cs Model/TransacaoModel.cs Adapters/HistoryAdapter.cs Activities/DialogActivity.cs Activities/MenuActivity.cs Activities/ReceiptActivity.cs Services/CliSiTefWrapper.cs M2Application.cs obj/Debug/MonoAndroid,Version=v2.2.AssemblyAttribute.cs /target:library /define:"DEBUG;__MOBILE__;__ANDROID__;__ANDROID_1__;__ANDROID_2__;__ANDROID_3__;__ANDROID_4__;__ANDROID_5__;__ANDROID_6__;__ANDROID_7__;__ANDROID_8__" /reference:/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll /reference:/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll /reference:/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.2/Mono.Android.dll /reference:/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll /reference:/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/bin/Debug//M2.Mobile.Bindings.Android.dll /warn:4
Activities/MainActivity.cs(34,8): warning CS0219: The variable `r' is assigned but its value is never used
Activities/PaymentActivity.cs(154,11): warning CS0219: The variable `err' is assigned but its value is never used
Services/CliSiTefWrapper.cs(97,12): warning CS0219: The variable `err' is assigned but its value is never used
	
	Target DeployOutputFiles:
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/M2.Mobile.Android.dll.mdb' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/bin/Debug/M2.Mobile.Android.dll.mdb'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/M2.Mobile.Android.dll' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/bin/Debug/M2.Mobile.Android.dll'
	
	Target _ResolveAssemblies:
		ResolveAssemblies Task
		  ReferenceAssembliesDirectory: /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.2;/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0;/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/
		  I18nAssemblies: 
		  LinkMode: None
		  Assemblies:
		    bin/Debug/M2.Mobile.Android.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.2/Mono.Android.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/bin/Debug//M2.Mobile.Bindings.Android.dll
		  Assembly /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll is ignored: system assembly is used instead.
		  Assembly /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll is ignored: system assembly is used instead.
		  Assembly /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.2/Mono.Android.dll is ignored: system assembly is used instead.
		  Assembly /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll is ignored: system assembly is used instead.
		  [Output] ResolvedAssemblies:
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/bin/Debug/M2.Mobile.Android.dll
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/bin/Debug/M2.Mobile.Bindings.Android.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.2/Mono.Android.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/mscorlib.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Mono.Security.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll
		  [Output] ResolvedUserAssemblies:
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/bin/Debug/M2.Mobile.Android.dll
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/bin/Debug/M2.Mobile.Bindings.Android.dll
		  [Output] ResolvedFrameworkAssemblies:
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.2/Mono.Android.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/mscorlib.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Mono.Security.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll
	
	Target _CreatePackageWorkspace:
		Created directory "obj/Debug/android/assets/"
	
	Target _CopyIntermediateAssemblies:
		Created directory "obj/Debug/assemblies/"
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/bin/Debug/M2.Mobile.Android.dll' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/assemblies/M2.Mobile.Android.dll'
		Copying file from '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/bin/Debug/M2.Mobile.Bindings.Android.dll' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/assemblies/M2.Mobile.Bindings.Android.dll'
		Copying file from '/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.2/Mono.Android.dll' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/assemblies/Mono.Android.dll'
		Copying file from '/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/mscorlib.dll' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/assemblies/mscorlib.dll'
		Copying file from '/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/assemblies/System.Xml.dll'
		Copying file from '/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/assemblies/System.dll'
		Copying file from '/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Mono.Security.dll' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/assemblies/Mono.Security.dll'
		Copying file from '/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/assemblies/System.Core.dll'
		SourceFiles:
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/bin/Debug/M2.Mobile.Android.dll
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/bin/Debug/M2.Mobile.Bindings.Android.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.2/Mono.Android.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/mscorlib.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Mono.Security.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll
		DestinationFiles:
		    obj/Debug/assemblies/M2.Mobile.Android.dll
		    obj/Debug/assemblies/M2.Mobile.Bindings.Android.dll
		    obj/Debug/assemblies/Mono.Android.dll
		    obj/Debug/assemblies/mscorlib.dll
		    obj/Debug/assemblies/System.Xml.dll
		    obj/Debug/assemblies/System.dll
		    obj/Debug/assemblies/Mono.Security.dll
		    obj/Debug/assemblies/System.Core.dll
		SourceFiles:
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/bin/Debug/M2.Mobile.Android.dll
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/bin/Debug/M2.Mobile.Bindings.Android.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.2/Mono.Android.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/mscorlib.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Mono.Security.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll
		DestinationFiles:
		    obj/Debug/assemblies/M2.Mobile.Android.dll
		    obj/Debug/assemblies/M2.Mobile.Bindings.Android.dll
		    obj/Debug/assemblies/Mono.Android.dll
		    obj/Debug/assemblies/mscorlib.dll
		    obj/Debug/assemblies/System.Xml.dll
		    obj/Debug/assemblies/System.dll
		    obj/Debug/assemblies/Mono.Security.dll
		    obj/Debug/assemblies/System.Core.dll
	
	Target _ScanAssemblies:
		LinkAssemblies Task
		  UseSharedRuntime: false
		  MainAssembly: obj/Debug/assemblies/M2.Mobile.Android.dll
		  OutputDirectory: obj/Debug/android/assets/
		  I18nAssemblies: 
		  ReferenceAssembliesDirectory: /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.2;/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0;/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/
		  ResolvedAssemblies:
		    obj/Debug/assemblies/M2.Mobile.Android.dll
		    obj/Debug/assemblies/M2.Mobile.Bindings.Android.dll
		    obj/Debug/assemblies/Mono.Android.dll
		    obj/Debug/assemblies/mscorlib.dll
		    obj/Debug/assemblies/System.Xml.dll
		    obj/Debug/assemblies/System.dll
		    obj/Debug/assemblies/Mono.Security.dll
		    obj/Debug/assemblies/System.Core.dll
	
	Target _StripEmbeddedLibraries:
		  Assemblies: 
		    obj/Debug/assemblies/M2.Mobile.Android.dll
		    obj/Debug/assemblies/M2.Mobile.Bindings.Android.dll
		    obj/Debug/assemblies/Mono.Android.dll
		    obj/Debug/assemblies/mscorlib.dll
		    obj/Debug/assemblies/System.Xml.dll
		    obj/Debug/assemblies/System.dll
		    obj/Debug/assemblies/Mono.Security.dll
		    obj/Debug/assemblies/System.Core.dll
	
	Target _GenerateJavaStubs:
		  ResolvedAssemblies:
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/bin/Debug/M2.Mobile.Android.dll
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/bin/Debug/M2.Mobile.Bindings.Android.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.2/Mono.Android.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/mscorlib.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Xml.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Mono.Security.dll
		    /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/System.Core.dll
		  ResolvedUserAssemblies:
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/bin/Debug/M2.Mobile.Android.dll
		    /Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Bindings.Android/bin/Debug/M2.Mobile.Bindings.Android.dll
	
	Target _AddStaticResources:
		Wrote resource obj/Debug/android/assets/machine.config.
		Wrote resource obj/Debug/android/src/mono/MonoRuntimeProvider.java.
		Wrote resource obj/Debug/android/src/mono/android/Seppuku.java.
		Creating directory '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/android/bin'
		Copying file from '/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v2.2/mono.android.jar' to '/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/obj/Debug/android/bin/mono.android.jar'
	
	Target _GeneratePackageManagerJava:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: error : Error executing task GeneratePackageManagerJava: Task does not have property "TargetFrameworkVersion" defined
	Task "GeneratePackageManagerJava" execution -- FAILED
	Done building target "_GeneratePackageManagerJava" in project "/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/M2.Mobile.Android.csproj".-- FAILED
	
Done building project "/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/M2.Mobile.Android.csproj".-- FAILED

Build FAILED.

Warnings:

/Users/gutemberg/Projects/M2.Mobile/M2.Mobile.Android/M2.Mobile.Android.csproj (Build) ->
/Library/Frameworks/Mono.framework/Versions/3.2.5/lib/mono/4.0/Microsoft.CSharp.Targets (CoreCompile target) ->

	Activities/MainActivity.cs(34,8): warning CS0219: The variable `r' is assigned but its value is never used
	Activities/PaymentActivity.cs(154,11): warning CS0219: The variable `err' is assigned but its value is never used
	Services/CliSiTefWrapper.cs(97,12): warning CS0219: The variable `err' is assigned but its value is never used

Errors:

---------------------- Done ----------------------

Build: 1 error, 3 warnings
Comment 1 Jonathan Pryor 2013-12-26 10:41:14 UTC
> error : Error executing task GeneratePackageManagerJava: Task does not have property "TargetFrameworkVersion" defined

This sounds like your installation is out-of-sync (FUBAR), e.g. you're inadvertently using XA 4.8.x Xamarin.Android.Common.targets with XA 4.10.x Xamarin.Android.Build.Tasks.dll (or vice versa, or some other bizarre permutation).

I would suggest "removing" (or renaming) the following files and directories: 

/Library/Frameworks/Xamarin.Android.framework
/Library/Frameworks/Mono.framework/External/monodoc/MonoAndroid*
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android
/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid

Then re-install Xamarin.Android.
Comment 2 Jon Douglas [MSFT] 2017-08-07 20:43:46 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we believe it no longer affects the current version of Xamarin.Android. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.