Can't edit Xamarin .axml layout files with Visual Studio 2015

1 answer

Due to a version license restriction at work, I have to develop a Xamarin Android app using Visual Studio 2015. I must say that using Visual Studio 2019 (Student version) on my personal computer everything works fine, but I can't develop with that license at work.

On my work computer, I have installed and updated the Xamarin for Visual Studio 2015 extension, and using Java Runtime Environment v1.8.0_241 and Java Development Kit v1.8.0_231, as I read at so many guides, here my config:

xamarin options

I have created and empty Xamarin Android Project, with no more files than the empty project includes, and there is no code modified by my side. But I get this error when trying to open the .axml file.

"Connection to the layout renderer failed. This may be caused by a misconfiguration of Java."

Here the full error report:

java.lang.NoClassDefFoundError: com/android/utils/ILogger     at java.lang.Class.getDeclaredMethods0(Native Method)     at java.lang.Class.privateGetDeclaredMethods(     at java.lang.Class.privateGetMethodRecursive(     at java.lang.Class.getMethod0(     at java.lang.Class.getMethod(     at sun.launcher.LauncherHelper.validateMainClass(     at sun.launcher.LauncherHelper.checkAndLoadMain( Caused by: java.lang.ClassNotFoundException:     at     at java.lang.ClassLoader.loadClass(     at sun.misc.Launcher$AppClassLoader.loadClass(     at java.lang.ClassLoader.loadClass(     ... 7 more Error: A JNI error has occurred, please check your installation and try again Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0 Picked up _JAVA_OPTIONS: -XX:MaxPermSize=256m Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 Exception in thread "main"  

Last line about "ignoring option MaxPermSize=256m" is due to a environment variable I created following guides, but now I have run out of options :/

I'm questioning if it is even possible to develop with Xamarin using Visual Studio 2015 or I have to ask my boss to upgrade license.

I appreciate any support. Thanks.

All answers to this question, which has the identifier 61058077

The best answer:

The only solution I have encountered as far:

I'm editing the .xml files (the UI designs) using Android Studio, then copy the code to the .axml in Visual Studio 2015, and now it works. My application is very simple, I only have Button, TextView and EditText, and it is enought for me.

If you have a more scalable solution, avoiding to use an external tool (Android Studio) my vote is yours.

Last questions

how do i remove the switch on my home screen?
how to edit the JS date and time to update atuomatically?
How to utilize data stored in a multidimensional array
Powermockito not mocking URL constructor in URI.toURL() method
Android Bluetooth LE Scanner only scans when phone's Location is turned on in some devices
docker wordpress container can't connect to mysql container
How can I declare a number in java that is more than 64-bits? [duplicate]
Optaplanner solutionClass entityCollectionProperty should never return null error when simple JSON object passed to controller
Anylogic, get the time a pedestrain is in a queue
How do I fix this syntax issue with my .flex file?
Optimizing query in PHP
How to find the highest number of a column and print two columns of that row in R?
Ideas on “Error: Type is referenced as an interface from”?
JCIFS SmbFile.exists() and SmbFile.isDirectory() return false when it exists and I can listFiles()
PHP total order
Laravel booking system design
neural net - undefined column selected
How to indicate y axis does not start from 0 in ggplot?
Fragments in backStack
Spinner how to change the data