I am trying to add a text field (drag and drop) to an android layout through the layout designer, but I get the error in the image below, this happens in Xamarin studio.
If I try doing the same steps in Visual Studio 2012 and 2013, it crashes the visual studio!
any idea what is the problem?
This is a Java SE bug. You need to make sure you have valid Java Environment.
I would recommend, you uninstall Java kit and and reinstall it.
When you do that, make sure Xamarin Studio and Visual Studio are not open.
This actually is a known bug but it gets solved by updating/reinstalling Java Environment.
Also, if you have Xamarin Studio updates, you should install them as well.
Bugzilla
Related
I just got started with XAMARIN today.I have Visual Studio 2017 Community Edition v15.7.6.I downloaded XAMARIN from Visual Studio Installer :
I started VS,navigated to Tools>Options>Xamarin>Android Settings and made sure that JDK,Android SDK and NDK locations are correct.But whenever i create a new project(Template is : Android App(Xamarin)) and i open(or navigate to) Resources>Layout>activity_main.axml , the designer shows an error at the bottom saying :
The project contains resources that might not be affected,rendering might be affected
I have no clue why this is happening even after everything was installed properly.If i make any changes to the .axml file, the UI is not updated and when i try to debug the app(through emulator), all i get is a blank emulator screen.
I am totally new to Xamarin so please help me out by guiding me or pointing out where/what i missed ?
Android studio was working fine till today morning but when I opened studio today it shows can't start. Shows error:
Searched the internet and SO, but couldn't find the answer. any suggestion will be appreciated.
i have set the JAVA_HOME path correctly. i have used studio and developed projects also using it.
Try this also
Delete this file : (Tested on Windows)
%USERPROFILE%\.AndroidStudiox.x\studio64.exe.vmoptions
(Keeping a backup of this file is recommended)
replace x.x with your Android studio version
The file is used to manually set java virtual machine parameters for android studio.
Faulty configuration might cause the software not to start.
You have to try to rename .AndroidStudio2.x.
please refer to topic - JDK error when trying to start Android Studio
Very simple trick worked for me.Though JAVA_HOME was set, it was giving an error.
To make it correct, close the error message window first, then go to environment variable settings of the system, say Edit JAVA_HOME, do not edit just say save/ok. and restart the Android Studio.
Tada... its happily working ever after :) !
I have just installed visual studio 2015 and then I installed Xamarin for it on win10. The problem happens when I want to create an android project
A problem was encountered creating the sub project 'App8.Droid'.
Object reference not set to an instance of an object.
Android has been installed correctly:
How can I fix this problem?
This might be this bug: https://bugzilla.xamarin.com/show_bug.cgi?id=40781
If so, try deleting the VS ComponentModelCache at
C:\Users\<username>\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
and then restart VS. If that alone does not help, also try deleting the temp directory at:
C:\Users\<username>\AppData\Local\Temp
I create a project using Xamarin with VS2015, and everything was great.
I did update for both VS and Xamarin then when I open any *.axml layout file VS freezing then crashing.
I try many ways to solve this , repair VS , repair Xamarin , Update Android SDK , recreate the project them add the files again , disable Xaml designer and reset the settings of VS .
the problem sometimes goes , sometimes appears and now I am stuck with the solutions , please help.
I Solve this issue by:
1- deleting all the android virtual machines
2- not to put theme for the toolbar if the layout contains one and make theme global for all layouts.
3- install Xamarin components from nuget source.
4- do not install Android 6.0 N Preview.
5- Java jdk 1.7.0_71 is the most stable JDK with xamarin until now , so don't update java JDK.
some addition steps and recommendations :
6- make all your resources names are small case.
7- not to add '-' in any resource name.
lastly ..
Keep your Android SDK updated.
I'm working on my first Android App using the Android SDK for Eclipse and the eclipse plugin (ADT)
Recently I've encountered an error while trying to build an UI in XML with the GUI. Any time I try to open a layout XML file, I can't find the graphical interface (No Layout TAB, just the source and the design tabs).
I have to write all the XML code. I think that graphical editor is broken and I don't know what I have to do. Anyone else have the same problem or any suggestions?
did you try to re install the ADT Plugin ??
if it doesn't work , you can use this website , it is very useful , and then just copy/paste your code :
refer this link
Regards
May be you have already try it, but try to remove then reinstall eclipse android plugin. For me it worked when I had a similar issue. If not work, witch version of Eclipse do you have (Not only the number version, but also give if you dowload eclipse for java developer, ...) and witch Android SDK do you use ?
JHelp