Tutorial and General Xamarin Woes

SkiaSkia USMember ✭✭

So my experience with Xamarin so far has been lack luster to say the least.

Every tutorial I find or try results in reference errors and failed builds.
I'm trying to learn but the resource available to help me learn don't even work, its quite frustrating.

So to start, I'd like some clarification if the tutorial on xamarin's site are designed or capable of working for both PCL and Shared?
For example, following this tutorial https://developer.xamarin.com/guides/xamarin-forms/dependency-service/text-to-speech/

on a fresh PCL Xamarin Forms project, results in namespace/reference errors for Android, DependencyServiceSample and just about anything else I add.

Best Answer

Answers

  • rob8861rob8861 USMember ✭✭

    hmmm I followed the same tutorial and everything worked on my end.
    I didn't try Shared, only PCL tho.

    are you developing on VS or XS?

  • SkiaSkia USMember ✭✭
    edited May 2016

    VS. Also the oauth tutorial didn't work for me either. It thinks Xamarin.Oauth; doesn't exist even after installing the nuget package.

    I even tried reinstalling xamarin. I tried to look for the xamarin ide but all I can find is xam for vs.

  • BrendanZagaeskiBrendanZagaeski USForum Administrator, Xamarin Team Xamurai
    edited May 2016

    The first thing I'd double-check would be that the Android SDK is all installed as expected and can be located by Xamarin. See for example https://stackoverflow.com/a/36971735/2561894 (especially the part about "The referenced component ... could not be found").

  • SkiaSkia USMember ✭✭
    edited May 2016

    @BrendanZagaeski said:
    The first thing I'd double-check would be that the Android SDK is all installed as expected and can be located by Xamarin. See for example https://stackoverflow.com/a/36971735/2561894 (especially the part about "The referenced component ... could not be found").

    I have all green check marks for required JDK, Android SDK and Android NDK.
    I checked my Program Files (x86) and I have all the mentioned files and directories except my path is slightly different (skips the MSBuild directory).

    Here is my xam ide log.
    http://hastebin.com/gizejimixi.tex

  • DaveHuntDaveHunt USMember ✭✭✭✭✭

    Also, that particular tutorial kind of starts in the middle. If you haven't successfully built a forms project yet, it will give you trouble. I would start at the beginning and do the Hello, Xamarin.Forms tutorial first. If you get that working, then you know your environment is OK.

  • SkiaSkia USMember ✭✭
    edited May 2016

    So I got the text to speech to work but the oath isn't working. > @BrendanZagaeski said:

    Hmm. The next thing I might try would be to see if building one of the original sample projects ([1] or [2]) or a new template project works successfully or gives the same errors. If the build succeeds, then you can try closing and reopening the solution and that might get the IntelliSense working a bit better.

    If the build fails, you can take a look at the diagnostic MSBuild output for any additional error messages that might provide some new clues.

    Ok so after setting it to to Android, I was able to build to my phone.
    I've learned that for my other builds that didn't work, the cause was trying to build while not selecting a platform.
    I didn't know I had to select one, I guess it isn't mentioned cause its obvious?
    So for Build parameters, its Debug - AnyCPU - Android or what have you.

    It seems as though Oauth is also being recognized in this template project.
    Is it because I restart Visual Studio?
    Or does the template do some setting up and config changes that make it work?
    Really confused now but relieved to see it not giving reference errors for packages I have.

Sign In or Register to comment.