Error in opening axml file in Visual studio 15 - c#

When I am trying to open a axml file in Visual Studio 15 then below error is coming. I am using windows 7 OS. Any body please help on this!!
"Something went wrong"
mono.android.DesignerException
at mono.android.DesignerException.fromThrowable(DesignerException.java:43)
at mono.android.DesignerSession.checkRenderResultForError(DesignerSession.java:177)
at mono.android.DesignerSession.load(DesignerSession.java:228)
at mono.android.DesignerSession.processMessage(DesignerSession.java:693)
at mono.android.MessageListener.executeMessage(MessageListener.java:88)
at mono.android.MessageListener$Runner.run(MessageListener.java:44)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at android.content.res.Resources_Delegate.disposeSystem(Resources_Delegate.java:83)
at com.android.layoutlib.bridge.android.BridgeContext.disposeResources(BridgeContext.java:242)
at com.android.layoutlib.bridge.impl.RenderAction.tearDown(RenderAction.java:257)
at com.android.layoutlib.bridge.impl.RenderAction.release(RenderAction.java:220)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:438)
at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:389)
at mono.android.DesignerSession.load(DesignerSession.java:222)
... 4 more
PFA the screen shot

Check your AndroidManifest file. See the minSdkVersion and download that version on SDK Manager (install "Tools" and "Extras" folder's too).
Recompile your solution and restart.
:)

Related

Unity Error: "Native error = The system can not find the stated file."

I created a Unity app with MRTK and try to build the Appx file with the MRTK build window. But when I press the "Build Appx" butten I get this error
Win32Exception: ApplicationName='cmd.exe', CommandLine='/C vswhere -all -products * -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe -latest', CurrentDirectory='C:\Program Files (x86)\Microsoft Visual Studio\Installer', Native error= The system can not find the stated file.
The error may come from the fact that some Windows system variables are missing in the advanced system settings under the PATH variable, but I'm not entirely sure. I've already tried uninstalling Visual Studio and Unity but it didn't work.
Has anyone experienced this error?

Using Storyboard Designer For Xamarin IOS App in VS 2015

I am trying to build and run a simple Xamarin IOS Single View project in VS 2015 using the iPhone simulator. The project creation is fine and I can run and see the empty project in my iPhone simulator but when I try and use the VS 2015 storyboard designer I get the error below. The remote connection to the Mac is fine , I m running VS 2015 Community Edition under Windows 10 using Parallels on my Mac. I have tried disconnecting and reconnecting to the Mac before using the designer but no luck.
Does anyone have any idea what could be the issue.
Thanks
Steve
Object reference not set to an instance of an object
Contents of C:\Users\spric\AppData\Local\Xamarin\Logs\14.0\iOSDesigner-3712.2016-10-29__10-08-39.log:
MDAddinsHash: 33f406fa2dcf214012c78cb846585f062b2e1d24
[2016-10-29 10:09:02.3] INFO: IDE notified that the list of assemblies referenced has changed
[2016-10-29 10:09:02.3] INFO: Not uploading assemblies because there is no remote session
[2016-10-29 10:09:37.2] INFO: IDE notified that the list of assemblies referenced has changed
[2016-10-29 10:09:37.2] INFO: Not uploading assemblies because there is no remote session
[2016-10-29 10:12:16.7] INFO: IDE notified that the list of assemblies referenced has changed
[2016-10-29 10:12:16.7] INFO: Not uploading assemblies because there is no remote session
Looks like a bug in the iOS designer, same error as this bug which is a duplicate of this bug.
The work around seems to be:
Partial workaround
Open the storyboard once more in Xcode 8.
Under the storyboard properties, change "Opens In" to "Xcode 7.x".
(See also the attached screenshot.)
As indicated by the dialog that will appear, this is only a partial
workaround because it will remove Xcode 8 features:
Saving for Xcode 7.x will close your document and data for Xcode 8.0
features will be removed.
if you dont have Xcode then you might be able to just replace the version at the top of your xib/storyboard with this, I havent tested this:
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11542" systemVersion="16B2555" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="NO">
<dependencies>
<development version="7000" identifier="xcode"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11524"/>
</dependencies>

MdilXapCompile.exe failed with error code 2001

Release/Debug ARM deploy to device isn't possible. But the build succeeds.
I get following exception:
Severity Code Description Project File Line Error Error : DEP6810 :
MdilXapCompile.exe failed with error code 2001. See log file
'C:\Users..\obj\ARM\Debug\MDIL\MDILXapCompileLog.txt' for more
details.
MDILXapCompileLog.txt:
CrossGen failed Error processing assembly
C:\Users...\obj\ARM\Debug\MSIL\Microsoft.Band.dll Raw error code:
2148733978
Google lead me to following solution:
Close Visual Studio
Navigate to YourSolution/Packages/
Delete everything except packages.config
Reopen the solution in Visual Studio
Right click on solution and select "Manage Nuget Packages"
Click the "Restore" button that appears at the top of the dialog
window
Doesn't work for me. Any other suggestions?
Thanks in advance
If WP 8.1, uninstall the app and run deploy, it worked for me.
When you deploy the Device make sure to select Debug instead of Release. If you set to Release the app will not be deployed and the above error will occur.
Select Debug and set the deployment destination as Device. Unlock the phone and run. It will work.

Upgrading wp8 to wp8.1 silverlight, debugger cannot be launched

I have now had an error with VS2013 and WP8.1 silverlight for a couple of days.
I get a couple of different errors, ..Ensure unlocked screen.., AgHost.exe could not be launched, port is in use by another program and ensure the device is unlocked.
These errors came suddenly after I retarged the solution. I have no compiling errors.
Solution Attempts
Restart PC
Restart program
unregister and reregister the phone
reinstall Update 3
reinstall VS2013
Windows Phone 8 Application crash once its launched AgHost.exe' has exited with code -532265403
Install VS2015 with no luck.
reinstall VS2013 Update 4
Nothing worked. The error is also the same for emulator as well as different devices. I can however get the release mode installed. Break points can be used when using release mode, but I have to Clean, Rebuild and then deploy for every time I want to deploy the application. Further the deploy time has gone up exponentially. Before upgrading I used a maximum of 10 seconds. Now it is above a minute in wait time. :/
Anyone has a solution for this ?
Extra
If I run the solution before upgrade on device or Emulator It spins up with debugger. If then go to the updated WP81, I get a popup with info Something is taking longer then normal and then it crashes with ..Ensure unlocked screen.. :/
Could it be an issue with the differen SDKS?
During a repair of all the SDKs, I found an issue with the event log, which I cleared based on The Event Log File is full
Still no success.
Extra
I cannot spin up the emulator from VS2013, when using the WP8.1 solution, but the wp8.0 solution in the same VS works :S
I found an error in a log file, from:
The errors are:
[0F08:14A8][2015-07-23T09:11:44]: Applying execute package: silverlight5_DRT, action: Repair, path: C:\ProgramData\Package Cache\DEB5078B60B74431E2830831EB48DF129CB32932\packages\Silverlight\5.0_DRT\Silverlight_Developer.exe, arguments: '"C:\ProgramData\Package Cache\DEB5078B60B74431E2830831EB48DF129CB32932\packages\Silverlight\5.0_DRT\Silverlight_Developer.exe" /q /ignorewarnings'
[0F08:14A8][2015-07-23T09:11:45]: Error 0x800705de: Process returned error: 0x5de
[0F08:14A8][2015-07-23T09:11:45]: Error 0x800705de: Failed to execute EXE package.
[0550:0E74][2015-07-23T09:11:45]: Error 0x800705de: Failed to configure per-machine EXE package.
[0550:0E74][2015-07-23T09:11:45]: MUX: Installation size in bytes for package: silverlight5_DRT MaxAppDrive: 0 MaxSysDrive: 0 AppDrive: 0 SysDrive: 0
AND
[0F08:14A8][2015-07-23T09:16:16]: Applying execute package:
{312d9252-c71c-4c84-b171-f4ad46e22098}, action: Repair, path:
C:\ProgramData\Package
Cache{312d9252-c71c-4c84-b171-f4ad46e22098}\VS2012.4.exe, arguments:
'"C:\ProgramData\Package
Cache{312d9252-c71c-4c84-b171-f4ad46e22098}\VS2012.4.exe" -repair
-quiet -burn.related.patch' [0F08:14A8][2015-07-23T09:16:23]: Error 0x80048bc7: Process returned error: 0x80048bc7
[0F08:14A8][2015-07-23T09:16:23]: Error 0x80048bc7: Failed to execute
EXE package. [0550:0E74][2015-07-23T09:16:23]: Error 0x80048bc7:
Failed to configure per-machine EXE package.
Anybody knows what to do with this? The error is coming when I repair Windows Phone SDK 8.0
There was a post-VS2013 update for the Windows Phone 8.1 SDK, some odds that you don't have it installed since you did not need it before. The download location is here.
Getting error messages like "port is in use" when there's no obvious reason why it should be in use and seeing excessive download times is also a very strong selector for your installed anti-malware product getting in the way. No specific advice on how to configure it when we don't know what it might be. You definitely first want to try to temporarily disable it so you can identify it as the source of the problem.
I have no Idea of what is the issue, but creating a new solution and importing the existing projects into a new solution has solved all the issues regarding emulator and debugger an AgHost.
Seems like the upgrade function integrated in the solution did not work properly.

Building selenium from source in Visual Studio 2010 (errors)

I am trying to build the source of Selenium using Visual Studio 2010.
Here are the steps that I did:
1 download the entire source from http://selenium.googlecode.com/svn/trunk/
2 Executed go bat file (waited about 3-4 minutes to complete, no errors)
3 Opened WebDriver.sln
When I try to compile the solution I get this error:
"Error 1 error C3861: '__stosb' identifier not found C:\Program Files
(x86)\Microsoft
SDKs\Windows\v7.0A\include\winnt.h 13074 1 webdriver-firefox-latest"
Tons of other identical errors (at various lines).
What is the problem?
Thanks in advance,
Vlad

Categories