locked
Error initializing task Property group... RRS feed

  • Question

  • User318 posted

    Hi all,

    I am updating my Xamarin Studio regularly. After the latest update (two days ago), I can't build my Android projects any more. I get the the following error:

    "Error initializing task PropertyGroup: Not registered task PropertyGroup."

    I have no idea what this could be. Has anyone else encountered this behavior? Thanks.

    Alex

    Friday, July 26, 2013 7:26 AM

All replies

  • User6858 posted

    I'm getting the same thing since upgrading to 4.0.10.

    I can't upgrade to using the 3.2 runtime as i'm using PCL projects in my android app and they don't compile, so my active runtime is set 2.10.12

    Friday, July 26, 2013 12:12 PM
  • User17930 posted

    I'm getting the same error. I did download and install the newest Android SDK build tools to get rid of the target error, but now I getting this PropertyGroup error

    Error: Error initializing task PropertyGroup: Not registered task PropertyGroup.

    Xamarin: 4.0.10 Runtime: 2.10.12

    Friday, July 26, 2013 2:27 PM
  • User4941 posted

    Hi,

    Using Mono 3.2 instead of mono 2.10.9 solved my problem.

    Monday, July 29, 2013 12:46 PM
  • User318 posted

    Yes, that was the way how I finally solved the problem as well. But it would be nice to know what's going on here just for the case somebody wants to build projects using an older version of Mono.

    Alex

    Monday, July 29, 2013 12:54 PM
  • User48 posted

    Xamarin.Android 4.8 requires Mono 3.2 on OS X. Previous versions of Xamarin.Android included a custom-built C# compiler (smcs); Xamarin.Android 4.8 now uses the system mcs compiler, which requires Mono 3.2.

    Monday, July 29, 2013 4:07 PM
  • User1659 posted

    I'm using mono 3.2.3 and using update channel (beta) and I trying to use the alpha too, but I fall at this error:

    Building: TesteNovoAndroid (Debug)

    Build started 23/10/2013 07:26:59.


    Project "/Users/ricardo/Projects/TesteNovoAndroid/TesteNovoAndroid/TesteNovoAndroid.csproj" (Build target(s)):

    Target _CheckProjectItems:
        CheckProjectItems Task
          NativeLibraries:
          JavaLibraries:
          JavaSourceFiles:
    
    Target _ComputeAndroidAssetsPaths:
          ResourceFiles:
          IntermediateFiles:
    
    Target _GenerateAndroidAssetsDir:
    No output files were specified for target _GenerateAndroidAssetsDir, skipping.
    
    Target _ComputeAndroidResourcePaths:
          ResourceFiles:
            Resources/layout/Main.axml
            Resources/values/Strings.xml
            Resources/drawable/Icon.png
          IntermediateFiles:
    
    Target _GenerateAndroidResourceDir:
        Copying file from '/Users/ricardo/Projects/TesteNovoAndroid/TesteNovoAndroid/Resources/layout/Main.axml' to '/Users/ricardo/Projects/TesteNovoAndroid/TesteNovoAndroid/obj/Debug/res/layout/main.xml'
        Copying file from '/Users/ricardo/Projects/TesteNovoAndroid/TesteNovoAndroid/Resources/values/Strings.xml' to '/Users/ricardo/Projects/TesteNovoAndroid/TesteNovoAndroid/obj/Debug/res/values/strings.xml'
    
    Target _ResolveMonoAndroidSdks:
        MonoAndroid Tools: /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/
        MonoAndroid Framework: /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/platforms/android-8;/Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mono/2.1
        MonoAndroid Binaries: /Library/Frameworks/Xamarin.Android.framework/Versions/Current/bin/
        Android Platform API level: 8
        TargetFrameworkVersion: v2.2
        Android NDK: /
        Android SDK: /Users/ricardo/Library/Developer/Xamarin/android-sdk-mac_x86/
        Android SDK Build Tools: /Users/ricardo/Library/Developer/Xamarin/android-sdk-mac_x86/platform-tools/
        Java SDK: /usr/
    
    Target _ValidateAndroidPackageProperties:
        GetAndroidPackageName Task
          ManifestFile: /Users/ricardo/Projects/TesteNovoAndroid/TesteNovoAndroid/Properties/AndroidManifest.xml
          AssemblyName: TesteNovoAndroid
          PackageName: TesteNovoAndroid.TesteNovoAndroid
    
    Target _BuildDependencies:
        Resolved library outputs: 
    
    Target _ExtractLibraryProjectImports:
          Assemblies: 
            /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mono/2.1/System.dll
            /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mono/2.1/System.Xml.dll
            /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/platforms/android-8/Mono.Android.dll
            /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mono/2.1/System.Core.dll
          Jars: 
          ResolvedResourceDirectories: 
          ResolvedAssetDirectories: 
    
    Target _GetLibraryImports:
          NativeLibraries: 
          Jars: 
    
    Target _CheckDuplicateJavaLibraries:
          JavaSourceFiles:
          JavaLibraries:
    
    Target _GetAdditionalResourcesFromAssemblies:
          Assemblies: 
            /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mono/2.1/System.dll
            /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mono/2.1/System.Xml.dll
            /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/platforms/android-8/Mono.Android.dll
            /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mono/2.1/System.Core.dll
    
    Target _UpdateAndroidResgen:
          AdditionalResourceDirectories: 
        Tool /Users/ricardo/Library/Developer/Xamarin/android-sdk-mac_x86/platform-tools/aapt execution started with arguments: package -f -m -M /var/folders/mk/qtjyn6vx2yj4sxwq95jltchh0000gn/T/gbda33j8.ko9/AndroidManifest.xml -J /var/folders/mk/qtjyn6vx2yj4sxwq95jltchh0000gn/T/gbda33j8.ko9 --custom-package testenovoandroid.testenovoandroid -F /var/folders/mk/qtjyn6vx2yj4sxwq95jltchh0000gn/T/gbda33j8.ko9/resources.apk.bk -S obj/Debug/res/ -I /Users/ricardo/Library/Developer/Xamarin/android-sdk-mac_x86/platforms/android-8/android.jar --auto-add-overlay 
          AdditionalResourceDirectories:
          Resources:
            /Users/ricardo/Projects/TesteNovoAndroid/TesteNovoAndroid/obj/Debug/res/layout/main.xml
              [layout/Main.axml]
            /Users/ricardo/Projects/TesteNovoAndroid/TesteNovoAndroid/obj/Debug/res/values/strings.xml
              [values/Strings.xml]
            /Users/ricardo/Projects/TesteNovoAndroid/TesteNovoAndroid/obj/Debug/res/drawable/icon.png
              [drawable/Icon.png]
          References:
            /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mono/2.1/System.dll
              []
            /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mono/2.1/System.Xml.dll
              []
            /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/platforms/android-8/Mono.Android.dll
              []
            /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mono/2.1/System.Core.dll
              []
          - Remapping resource: Drawable.icon -> drawable/Icon
          - Not remapping resource: Id.myButton
          - Remapping resource: Layout.main -> layout/Main
          - Not remapping resource: String.app_name
          - Not remapping resource: String.hello
          RemovedDirectories: 
            /var/folders/mk/qtjyn6vx2yj4sxwq95jltchh0000gn/T/gbda33j8.ko9
    
    Target PrepareForBuild:
        Configuration: Debug Platform: AnyCPU
    
    Target ImplicitlyExpandDesignTimeFacades:
    

    : error : Error initializing task PropertyGroup: Not registered task PropertyGroup. Task "PropertyGroup" execution -- FAILED Done building target "ImplicitlyExpandDesignTimeFacades" in project "/Users/ricardo/Projects/TesteNovoAndroid/TesteNovoAndroid/TesteNovoAndroid.csproj".-- FAILED

    Done building project "/Users/ricardo/Projects/TesteNovoAndroid/TesteNovoAndroid/TesteNovoAndroid.csproj".-- FAILED

    Build FAILED. Errors:

    /Users/ricardo/Projects/TesteNovoAndroid/TesteNovoAndroid/TesteNovoAndroid.csproj (Build) -> /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets (ImplicitlyExpandDesignTimeFacades target) ->

    : error : Error initializing task PropertyGroup: Not registered task PropertyGroup.
    
     0 Warning(s)
     1 Error(s)
    

    Time Elapsed 00:00:01.1850450

    ---------------------- Feito ----------------------

    Compilação: 1 erro, 0 avisos

    Wednesday, October 23, 2013 9:30 AM
  • User1659 posted

    I switched to stable channel and the error continue.

    I'm update and any project does'nt compile.

    Wednesday, October 23, 2013 2:29 PM
  • User1659 posted

    Sorry I forgot to change the current runtime, now everything works when I change the current runtime to 3.2.x.

    Wednesday, October 23, 2013 2:35 PM