Mewbie Tasky Test Failed

Ok, I followed the installation instructions, which were not very helpful, and tried to run Tasky as a test for the environment settings. Run under Debug and immediately saw the following errors inside a non copy red banner in line 6 of HomeScreen.cs file: using Tasky.Core; The Type or namespace name "Tasky" could not be found (are you missing a using directive or an assembly reference?)
The same error is repeated on line 15 refereeing to the namespace "Task"
This is not a good start, can anyone determine what I have done wrong or what is missing in my setup?
Also I need to know if I need Visual Studio for Android app development?
Regards
LP

Posts

  • mhutchmhutch USMember, Xamarin Team Xamurai

    What platform are you developing on?

    Take a a look at the build output in the Errors pad, it should have more detailed information than the inline errors in the text editor.

  • LotusPackLotusPack USMember

    Hi Michael,
    Windows 7 64bit
    I re run the compile again this morning and coped the error log below, this seems to me to have some files or libs missing. Although my profile says I am in the US I am actual in the UK.

    Building: TaskyAndroid (Debug)
    Build started 23/09/2013 09:27:40.


    Project "C:\Users\Paul\Documents\My Android Development\Tasky\Android_PaidEdition\TaskyAndroid\TaskyAndroid.csproj" (Build target(s)):

    Target _CheckProjectItems:

    CheckProjectItems Task
    
      NativeLibraries:
    
      JavaLibraries:
    
      JavaSourceFiles:
    

    Target _ComputeAndroidAssetsPaths:

      ResourceFiles:
    
      IntermediateFiles:
    

    Target _GenerateAndroidAssetsDir:

    Skipping target "_GenerateAndroidAssetsDir" because it has no outputs.

    Target _ComputeAndroidResourcePaths:

      ResourceFiles:
    
        Resources\values\Strings.xml
    
        Resources\layout\TaskListItem.axml
    
        Resources\layout\HomeScreen.axml
    
        Resources\layout\TaskDetails.axml
    
        Resources\drawable-hdpi\Icon.png
    
        Resources\drawable-ldpi\Icon.png
    
        Resources\drawable-mdpi\Icon.png
    
        Resources\drawable-xhdpi\Icon.png
    
      IntermediateFiles:
    

    Target _GenerateAndroidResourceDir:

    Skipping target "_GenerateAndroidResourceDir" because all output files are up-to-date with respect to the input files.

    Target _ResolveMonoAndroidSdks:

    MonoAndroid Tools: C:\Program Files (x86)\MSBuild\Xamarin\Android\
    
    MonoAndroid Framework: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.3\;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\
    
    MonoAndroid Binaries: C:\Program Files (x86)\MSBuild\Xamarin\Android\
    
    Android Platform API level: 10
    
    TargetFrameworkVersion: v2.3
    
    Android NDK: C:\Users\Paul\Documents\Android\ndk\android-ndk-r8d\
    
    Android SDK: C:\Users\Paul\AppData\Local\Android\android-sdk\
    
    Android SDK Build Tools: C:\Users\Paul\AppData\Local\Android\android-sdk\build-tools\17.0.0\
    
    Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_39\
    

    Target _ValidateAndroidPackageProperties:

    GetAndroidPackageName Task
    
      ManifestFile: C:\Users\Paul\Documents\My Android Development\Tasky\Android_PaidEdition\TaskyAndroid\Properties\AndroidManifest.xml
    
      AssemblyName: TaskyAndroid
    
      PackageName: com.xamarin.samples.taskyandroid
    

    Target _BuildDependencies:

    Resolved library outputs: 
    

    Target _ExtractLibraryProjectImports:

      Assemblies: 
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.3\Mono.Android.dll
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll
    
      Jars: 
    
      ResolvedResourceDirectories: 
    

    Target _GetLibraryImports:

      NativeLibraries: 
    
      Jars: 
    

    Target _CheckDuplicateJavaLibraries:

      JavaSourceFiles:
    
      JavaLibraries:
    

    Target _GetAdditionalResourcesFromAssemblies:

      Assemblies: 
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.3\Mono.Android.dll
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll
    

    Target _UpdateAndroidResgen:

    Skipping target "_UpdateAndroidResgen" because all output files are up-to-date with respect to the input files.

    Target GenerateTargetFrameworkMonikerAttribute:

    Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.

    Target CoreCompile:

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;__MOBILE__;__ANDROID__;__ANDROID_1__;__ANDROID_2__;__ANDROID_3__;__ANDROID_4__;__ANDROID_5__;__ANDROID_6__;__ANDROID_7__;__ANDROID_8__;__ANDROID_9__;__ANDROID_10__ /errorendlocation /preferreduilang:en-US /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.3\Mono.Android.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll" /debug+ /debug:full /optimize- /out:obj\Debug\TaskyAndroid.dll /target:library /utf8output Resources\Resource.designer.cs Properties\AssemblyInfo.cs Screens\HomeScreen.cs Adapters\TaskListAdapter.cs Screens\TaskDetailsScreen.cs "C:\Users\Paul\AppData\Local\Temp\MonoAndroid,Version=v2.3.AssemblyAttributes.cs" obj\Debug\\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs obj\Debug\\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs obj\Debug\\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
    
    Screens\HomeScreen.cs(6,7,6,12): error CS0246: The type or namespace name 'Tasky' could not be found (are you missing a using directive or an assembly reference?)
    
    Adapters\TaskListAdapter.cs(4,7,4,12): error CS0246: The type or namespace name 'Tasky' could not be found (are you missing a using directive or an assembly reference?)
    
    Adapters\TaskListAdapter.cs(10,45,10,49): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
    
    Screens\TaskDetailsScreen.cs(5,7,5,12): error CS0246: The type or namespace name 'Tasky' could not be found (are you missing a using directive or an assembly reference?)
    
    Screens\HomeScreen.cs(15,19,15,23): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
    
    Adapters\TaskListAdapter.cs(12,19,12,23): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
    
    Adapters\TaskListAdapter.cs(14,51,14,55): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
    
    Adapters\TaskListAdapter.cs(20,19,20,23): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
    
    Screens\TaskDetailsScreen.cs(13,13,13,17): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
    

    Done building target "CoreCompile" in project "TaskyAndroid.csproj" -- FAILED.

    Done building project "TaskyAndroid.csproj" -- FAILED.

    Build FAILED.

    Screens\HomeScreen.cs(6,7,6,12): error CS0246: The type or namespace name 'Tasky' could not be found (are you missing a using directive or an assembly reference?)

    Adapters\TaskListAdapter.cs(4,7,4,12): error CS0246: The type or namespace name 'Tasky' could not be found (are you missing a using directive or an assembly reference?)

    Adapters\TaskListAdapter.cs(10,45,10,49): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)

    Screens\TaskDetailsScreen.cs(5,7,5,12): error CS0246: The type or namespace name 'Tasky' could not be found (are you missing a using directive or an assembly reference?)

    Screens\HomeScreen.cs(15,19,15,23): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)

    Adapters\TaskListAdapter.cs(12,19,12,23): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)

    Adapters\TaskListAdapter.cs(14,51,14,55): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)

    Adapters\TaskListAdapter.cs(20,19,20,23): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)

    Screens\TaskDetailsScreen.cs(13,13,13,17): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)

    0 Warning(s)
    
    9 Error(s)
    

    Time Elapsed 00:00:02.54

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

    Build: 9 errors, 0 warnings

  • mhutchmhutch USMember, Xamarin Team Xamurai

    Did you open the TaskyAndroid solution or TaskyAndroid project? It looks like it's not building the Tasky.Core.Android project.

  • LotusPackLotusPack USMember
    edited September 2013

    Hi Michael,
    I have found the Tasky.Core.Android under the Android_paidEdition folder when opening this file a Hammer in the top left run box which I have clicked on and got a build successful.
    I don't know what this means...I still don't have the emulator displayed with the solution working, according the instructions this should work and present the application and then I can modify the app to help understand where everything is. Tried the TaskyAndroid again which has the run button and still see errors. It is all very confusing so there must be something missing. What file should I open to compile a project? What is the difference between the Project or a solution and can you confirm which is which in terms of the file extension please?

    Kind regards,
    LP.

  • mhutchmhutch USMember, Xamarin Team Xamurai
    edited September 2013

    You need to open TaskyAndroid.sln, it's a "solution" file that loads both the TaskyAndroid.csproj and Tasky.Core.Android.csproj projects. This is necessary because TaskyAndroid.csproj depends on Tasky.Core.Android.csproj.

    The Visual Studio documentation on solutions and projects applies to Xamarin Studio, since they use the same solution/project format.

  • EJEJ JPMember

    I have the exact same problem.
    I am opening the TaskyAndroid.sln and getting "The type or namespace name 'Tasky' could not be found" when trying to run debug.
    My system is Windows 7 64bit.

  • mhutchmhutch USMember, Xamarin Team Xamurai
    edited February 2014

    @EJ: could you please paste the full build output somewhere (e.g. gist.github.com) and link it here? There are many things that could cause an error like that.

  • Sirius77Sirius77 USMember
    edited March 2014

    I'm getting the build errors too.

    Here's my build output:

    Building Solution: TaskyAndroid (Debug)

    Building: TaskyAndroid (Debug)
    Build started 3/20/2014 7:43:51 PM.


    Project "C:\Users\Gregory\Documents\Projects\Android_Starter\TaskyAndroid\TaskyAndroid.csproj" (Build target(s)):

    Target _CheckProjectItems:

    CheckProjectItems Task
    
      NativeLibraries:
    
      JavaLibraries:
    
      JavaSourceFiles:
    

    Target _ComputeAndroidAssetsPaths:

      ResourceFiles:
    
      IntermediateFiles:
    

    Target _GenerateAndroidAssetsDir:

    Skipping target "_GenerateAndroidAssetsDir" because it has no outputs.

    Target _ComputeAndroidResourcePaths:

      ResourceFiles:
    
        Resources\values\Strings.xml
    
        Resources\layout\TaskListItem.axml
    
        Resources\layout\HomeScreen.axml
    
        Resources\layout\TaskDetails.axml
    
        Resources\drawable-hdpi\Icon.png
    
        Resources\drawable-ldpi\Icon.png
    
        Resources\drawable-mdpi\Icon.png
    
        Resources\drawable-xhdpi\Icon.png
    
      IntermediateFiles:
    

    Target _GenerateAndroidResourceDir:

    Skipping target "_GenerateAndroidResourceDir" because all output files are up-to-date with respect to the input files.

    Target _ResolveMonoAndroidSdks:

    MonoAndroid Tools: C:\Program Files (x86)\MSBuild\Xamarin\Android\
    
    MonoAndroid Binaries: C:\Program Files (x86)\MSBuild\Xamarin\Android\
    
    Android Platform API level: 10
    
    TargetFrameworkVersion: v2.3
    
    Android NDK: C:\Users\Gregory\Documents\Android\ndk\android-ndk-r8d\
    
    Android SDK: C:\Users\Gregory\AppData\Local\Android\android-sdk\
    
    Android SDK Build Tools: C:\Users\Gregory\AppData\Local\Android\android-sdk\build-tools\17.0.0\
    
    Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_39\
    

    Target _ValidateAndroidPackageProperties:

    GetAndroidPackageName Task
    
      ManifestFile: C:\Users\Gregory\Documents\Projects\Android_Starter\TaskyAndroid\Properties\AndroidManifest.xml
    
      AssemblyName: TaskyAndroid
    
      PackageName: com.xamarin.samples.taskyandroid
    

    Target _BuildDependencies:

    Resolved library outputs: 
    

    Target _ExtractLibraryProjectImports:

      Assemblies: 
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.3\Mono.Android.dll
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll
    
      Jars: 
    
      ResolvedResourceDirectories: 
    
      ResolvedAssetDirectories: 
    
      ResolvedEnvironmentFiles: 
    

    Target _GetLibraryImports:

      NativeLibraries: 
    
      Jars: 
    

    Target _CheckDuplicateJavaLibraries:

      JavaSourceFiles:
    
      JavaLibraries:
    

    Target _GetAdditionalResourcesFromAssemblies:

      Assemblies: 
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.3\Mono.Android.dll
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll
    
        C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll
    

    Target _UpdateAndroidResgen:

    Skipping target "_UpdateAndroidResgen" because all output files are up-to-date with respect to the input files.

    Target GenerateTargetFrameworkMonikerAttribute:

    Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.

    Target CoreCompile:

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;__MOBILE__;__ANDROID__;__ANDROID_1__;__ANDROID_2__;__ANDROID_3__;__ANDROID_4__;__ANDROID_5__;__ANDROID_6__;__ANDROID_7__;__ANDROID_8__;__ANDROID_9__;__ANDROID_10__ /errorendlocation /preferreduilang:en-US /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.3\Mono.Android.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll" /debug+ /debug:full /optimize- /out:obj\Debug\TaskyAndroid.dll /target:library /utf8output Properties\AssemblyInfo.cs Screens\HomeScreen.cs Adapters\TaskListAdapter.cs Screens\TaskDetailsScreen.cs Resources\Resource.designer.cs "C:\Users\Gregory\AppData\Local\Temp\MonoAndroid,Version=v2.3.AssemblyAttributes.cs" obj\Debug\\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs obj\Debug\\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs obj\Debug\\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
    
    Screens\HomeScreen.cs(6,7,6,12): error CS0246: The type or namespace name 'Tasky' could not be found (are you missing a using directive or an assembly reference?)
    
    Adapters\TaskListAdapter.cs(4,7,4,12): error CS0246: The type or namespace name 'Tasky' could not be found (are you missing a using directive or an assembly reference?)
    
    Adapters\TaskListAdapter.cs(10,45,10,49): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
    
    Screens\TaskDetailsScreen.cs(5,7,5,12): error CS0246: The type or namespace name 'Tasky' could not be found (are you missing a using directive or an assembly reference?)
    
    Screens\HomeScreen.cs(16,9,16,13): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
    
    Adapters\TaskListAdapter.cs(12,9,12,13): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
    
    Adapters\TaskListAdapter.cs(14,51,14,55): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
    
    Adapters\TaskListAdapter.cs(20,19,20,23): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
    
    Screens\TaskDetailsScreen.cs(14,3,14,7): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)
    

    Done building target "CoreCompile" in project "TaskyAndroid.csproj" -- FAILED.

    Done building project "TaskyAndroid.csproj" -- FAILED.

    Build FAILED.

    Screens\HomeScreen.cs(6,7,6,12): error CS0246: The type or namespace name 'Tasky' could not be found (are you missing a using directive or an assembly reference?)

    Adapters\TaskListAdapter.cs(4,7,4,12): error CS0246: The type or namespace name 'Tasky' could not be found (are you missing a using directive or an assembly reference?)

    Adapters\TaskListAdapter.cs(10,45,10,49): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)

    Screens\TaskDetailsScreen.cs(5,7,5,12): error CS0246: The type or namespace name 'Tasky' could not be found (are you missing a using directive or an assembly reference?)

    Screens\HomeScreen.cs(16,9,16,13): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)

    Adapters\TaskListAdapter.cs(12,9,12,13): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)

    Adapters\TaskListAdapter.cs(14,51,14,55): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)

    Adapters\TaskListAdapter.cs(20,19,20,23): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)

    Screens\TaskDetailsScreen.cs(14,3,14,7): error CS0246: The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)

    0 Warning(s)
    
    9 Error(s)
    

    Time Elapsed 00:00:00.22

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

    Build: 9 errors, 0 warnings

  • Sirius77Sirius77 USMember
    edited March 2014

    Is there another test project with some substance that works with the free edition? I want to evaluate this software but no luck so far with this solution. Thanks.

  • Sirius77Sirius77 USMember
    edited March 2014

    Fixed problem with Tasky. I have a clean build now.

    Even if the folder seems unnecessary because it's labeled "Mac" or "iOS" and you only want to build an Android app, extract them all ... not just the Android folder.

  • ScottWoodcockScottWoodcock USMember, University

    I was getting this issue during my evaluation also. Here's how I worked around it:
    1) Under the TaskyAndroid solution item, I double-clicked on References to open the Edit References config.
    2) Scrolled down and found Tasky.Core.Android and checked it on to add it as a reference.

Sign In or Register to comment.