How to solve template error in Arcgis AR for iOS - xamarin.ios

I am trying to create an AR App for navigation, so i downloaded the templates suggested by arcgis for that, while there were no errors in xamarin.forms there are lot of namespace errors in xamarin.ios where i wanted to build my app, the errors are attached below[

There was some import bug in Esri Xamarin.iOS templates alone, to rectify that problem, we need to go to Tools->Package Manager-> Manage Nuget Packages for solution->Search for all ArcGIS Packages-> once the search results are out, go to a ESRI.ArcGISRuntime package-> click the checkbox on the right where you will see it unchecked(in project version installed format)-> after checking the box you will find the install button select install-> Do it for all Esri.ArcGISRuntime packages and the errors will disappear.
If there is one error for "using ArcGISRuntime" use "using ESRI.ArcGISRuntime"

Related

Azure Mobile Services - System.PlatformNotSupportedException

i'm working on a xamarin forms app with azure however when I load my initial page it crashes on the line:
public static MobileServiceClient MobileService =
new MobileServiceClient(
"https://myapp.azurewebsites.net");
with exception:
System.PlatformNotSupportedException "The empty PCL implementation for
Microsoft Azure Mobile Services was loaded. Ensure you have added
nuget package to each of your platform projects."
How do I fix this?
It might mean that the NuGet packages did not install correctly in one of your platforms. I would suggest doing a force-reinstall of all NuGet packages using the Package Manager Console (Tools/NuGet Package Manager/Package Manager Console).
Update-Package -reinstall
Do this for all projects in your solution. Once done, close and reopen Visual Studio, open your solution and click Build in the top menu and do Clean Solution.
Now look into each of your platform projects in turn to see if you have a Microsoft.Azure.Mobile.Client reference there:
If it is not there, install the Microsoft.Azure.Mobile.Client package again in that given project.
Then you should proceed as described in any tutorial on Azure Mobile Services. Even if you use the Shared Project strategy in you Xamarin.Forms app, it should work as expected once the platform project has Microsoft.Azure.Mobile.Client installed.
If it does not help, as the last resort I would suggest trying to update all NuGet packages to their last version (right-click solution, Manage NuGet Packages for Solution...)
Make sure that you add the initialization code in the respective AppDelegate/MainActivity
CurrentPlatform.Init();
And that in the iOS, Android and PCL projects there is the reference to the Microsoft.Azure.Mobile.Client package.
Example
It instantiates the MobileServiceClient in the TodoItemManager class.

Rendering Android Studio

I'm a absolute beginner in programming but I'd love to create my own Apps to make my (and someone else's) everyday life a little easier. I just downloaded the latest version of Android Studio and installed it with all tools.
I wanted to create a "Hello World" App as shown in many tutorials on YouTube. I followed them step by step but there is always this Rendering Problem directly after I finished creating a blank activity.
Rendering Problems
The following classes could not be instantiated:
-android.support.design.widget.FloatingActionButton (Open Class, Show Exception, Clear Cache)
Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE
Exception Details
android.content.res.Resources$NotFoundException: Unable to find resource ID #0x1080029 at ....
I have no clue what the problem could be and how I solve it and all the answers on google and here on stackoverflow.com to a already existing Rendering Problem couldn't help me.
It's a bug in the Android Studio and Android Design Support Library (ver 23.2.0) that is solved in Dev/Canary channel.
For now, if you use the Stable update channel, you have to edit by hand the build.gradle file.
Under Project tool window -> Gradle Scripts open and edit the file build.gradle (Module: app).
Search for dependencies and make sure the com.android.support.design line looks like this:
compile 'com.android.support:design:23.1.1'
Save
Tools -> Android -> Sync Project with Gradle Files
Build -> Rebuild

Missing styles prevent preview of layout. How to resolve?

I had a preview build installed which would render my layouts fine but when I tried to load some sample projects there would be some issue about not finding the sdk (even though it was pointing to the right location). It's been a few months since I updated AS and so I installed the latest stable build. I now can load sample projects without any sdk location problems, but now I always get errors when trying to preview a layout.
Specifically, it's saying there are missing styles, in this case '?attr/actionBarPopupTheme (image below). This is a sample project (ListPopupMenu) and so it should be there somewhere, right? How can I resolve this?
I'm using Build #AI-143.2489090
Change your app theme(click the button called “AppCompat”) to any other theme like AppTheme with no actionbar(just try four to five theme)
If that doesn't work,turn down the API version,the green robot button right side of theme button
If that is still not working,restart andoid studio

JHipster page won't render properly

When I run the command mvn spring-boot:run, I get no errors. The problem is when I localhost:8080, the site does not properly render. I can not post an image here, but Home, Account, and Language are all in bullet form. Now when I installed it, I did get the error MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe" which I believe is related to node.js. I downloaded Visual Studio Express 2013, but I still get the error. Could these two be related?
I had similar issues.
To resolve the issue, I had to recreate a new project and for the option to use the Compass CSS Authoring Framework, I chose "No".
That resolved it for me.

Project is targeting frameworks not installed or are included as part of future updates to Visual Studio

I am attempting to convert the Microsoft.Health C# class library that is installed as part of the HealthVault SDK, using instructions provided here. After following these instructions, I get the following error when attempting to load the project into Visual Studio 2013.
"The project is targeting frameworks hat are either not installed or
are included as part of future updates to Visual Studio. See
http://go.microsoft.com/fwlink/?LinkId=287985"
Visiting the link takes me to .NET SDKs and Downloads. Once there, I have no clue on what needs to be done.
I do realize that one will have to leverage the Portable Class Library Contrib project to fill in some missing bits, especially code related to System.Security. This, I will deal with later.
Any one run into a similar problem?
Maybe so late but for those who have the same problem.
I had the same error in a project which was working perfect before updating VS2013 and finally after 3 hours looking for the source of the error I found that the error is about TargetFrameworkProfile.
In my case I sloved it like so:
Right click in the unloaded project in your solution and click Edit.
Find the TargetFrameworkProfile tag and set it as below:
<TargetFrameworkProfile>Profile78</TargetFrameworkProfile>
At a guess, this is because you need to specify the TargetFrameworkVersion and TargetFrameworkProfile properties in the project file. Compare the .csproj you are trying to create to a newly created PCL project file, and make sure that everything that's not specific to your project matches.
I ran into the same issue and got it resolved by installing the latest Visual Studio Update

Resources