Can't edit Xamarin .axml layout files with Visual Studio 2015
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:
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(Class.java:2701) at java.lang.Class.privateGetMethodRecursive(Class.java:3048) at java.lang.Class.getMethod0(Class.java:3018) at java.lang.Class.getMethod(Class.java:1784) at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526) Caused by: java.lang.ClassNotFoundException: com.android.utils.ILogger at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 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.