VS 2015 Crashes When open *.axml files using Android Designer Xamarin - android

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.

Related

This project contains resources that were not compiled successfully VS2017 Xamarin

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 won't start (Unable to create JVM error)

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 :) !

Android Studio 2 update not inside current program

I've got an issue with Android Studio: when there is an update and I want to install it in my Android Studio I must use web-link to get newest version. After I download it I got NEW Android Studio program in my computer, which I can run using android-studio/bin/studio64.exe. This is weird, cause I want to have update in Android Studio - which means initial update build-in my current Android Studio program`.
P.S. Website is something like this:
http://tools.android.com/download/studio/
or this:
https://sites.google.com/a/android.com/tools/download/studio/canary/latest.
I can only download it. Cannot update it via Android Studio...
Any ideas?
Normally you can update from within the IDE, but this is a preview version and somethings things go wrong, which was the case here:
Due to a bug, you can only patch from Android Studio 2.2 Preview 2, 3, 4 and 5. All other versions will need to download a complete install of the IDE.
Yes, with major updates of AndroidStudio, that's correct. Only minor updates can be updated from inside the studio.
First, make sure you know where your SDK lays. I'm just assuming the path to your studio installation is C:\Programs\android-studio
If your SDK is located in C:\Programs\android-studio\sdk (which it shouldn't be in newer versions), you have to copy that to any other location.
After that, rename your folder android-studio to something like android-studio_OLD. Then, copy the new version of android studio to your location (C:\Programs\android-studio).
Then you can try if it starts if you start C:\Programs\android-studio\bin\studio64.exe.
(Note: If you had your SDK inside your studio folder, you might have to enter the path to the new folder of your SDK for everything to work properly)
If the Studio is up and running as it should, you can delete android-studio_OLD.

Android - GUI not found

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

Changing the min. SDK version of an Android app

How to change the version of android application. i did entire code in Android 2.2 version, if i want to install the apk in 2.1 version, it getting parse error. How to change the versions of application. I dont know how to solve this issue. pls guide me to solve this problem.
if you are using eclipse it's very easy
go in eclipse project explorer
then right click on properties
select android from tree view
select your appropriate version.
and then in
in menifest file change
minsdk to 2.1
If you are using eclipse change value in manifest and build target in project configuration (Right click on project->Properties->Android-> Select that one which you need.
You have to also know that there can be some problems because of different version.
Check also this one Android Developer

Categories

Resources