locked
Designer AXML issue RRS feed

  • Question

  • User184639 posted

    Hello,

    I have installer the new version of XS Mac and updated everything (SDK,Modules,Components).

    Since then, when I launch designer to see what the layout looks like I get this error: Your java version is too old. You must have installed at least 1.8.

    Java is installer and I did the update.

    What can I do?

    thank you in advance

    Monday, February 27, 2017 10:31 AM

Answers

  • User303309 posted

    Er... actually I just fixed it. I uninstalled the 1.7 JDK (32 bit), restarted VS, and it worked! My guess is that the key is to have either just 32-bit versions of the JDK or just 64-bit versions of it.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, February 28, 2017 4:11 AM

All replies

  • User303309 posted

    I'm getting the exact same problem, except that I'm using Visual Studio. I've updated the Java runtime, the JDK, Visual Studio, and the Android SDK (kept repeating the process until there was no more to update).

    The logs in ...\AppData\Local\Xamarin\Logs\14.0 all look clean except possibly this one, which I don't know how to interpret:

    MonoDroidLog: Information: 0: [I:]:                     Found Xamarin.Android 7.1.0
    MonoDroidLog: Information: 0: [I:sdk]:                  Runtime path: C:\Program Files (x86)\MSBuild\Xamarin\Android
    MonoDroidLog: Information: 0: [I:sdk]:                  Framework path: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0
    MonoDroidLog: Information: 0: [I:sdk]:                    Key HKCU\SOFTWARE\Novell\Mono for Android\AndroidSdkDirectory not found.
    MonoDroidLog: Information: 0: [I:sdk]:                    Key HKCU\SOFTWARE\Novell\Mono for Android\AndroidNdkDirectory found:
        Path contains ndk-stack in \. (C:\ProgramData\Microsoft\AndroidNDK\android-ndk-r10e\).
    MonoDroidLog: Information: 0: [I:sdk]:                    Key HKCU\SOFTWARE\Novell\Mono for Android\JavaSdkDirectory not found.
    MonoDroidLog: Information: 0: [I:sdk]:                  Looking for Android SDK..
    MonoDroidLog: Information: 0: [I:sdk]:                    Key HKCU\SOFTWARE\Novell\Mono for Android\AndroidSdkDirectory not found.
    MonoDroidLog: Information: 0: [I:sdk]:                    Key HKLM\SOFTWARE\Novell\Mono for Android\AndroidSdkDirectory found:
        Path does not contain adb in \platform-tools (C:\android-sdk-windows).
    MonoDroidLog: Information: 0: [I:sdk]:                    Key HKCU\SOFTWARE\Xamarin\MonoAndroid\PrivateAndroidSdkPath not found.
    MonoDroidLog: Information: 0: [I:sdk]:                    Key HKCU\SOFTWARE\Android SDK Tools\Path not found.
    MonoDroidLog: Information: 0: [I:sdk]:                    Key HKLM\SOFTWARE\Android SDK Tools\Path found:
        Path contains adb in \platform-tools (C:\Program Files (x86)\Android\android-sdk).
    MonoDroidLog: Information: 0: [I:sdk]:                    Key HKCU\SOFTWARE\Novell\Mono for Android\JavaSdkDirectory not found.
    MonoDroidLog: Information: 0: [I:sdk]:                    Key HKLM\SOFTWARE\Novell\Mono for Android\JavaSdkDirectory not found.
    MonoDroidLog: Information: 0: [I:sdk]:                  Looking for Java 6 SDK..
    MonoDroidLog: Information: 0: [I:sdk]:                    Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion found.
    MonoDroidLog: Information: 0: [I:sdk]:                    Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.6\JavaHome not found.
    MonoDroidLog: Information: 0: [I:sdk]:                    Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.7\JavaHome found:
        Path contains jarsigner.exe in \bin (C:\Program Files (x86)\Java\jdk1.7.0_55).
    MonoDroidLog: Information: 0: [I:]:                     Found Android SDK. API levels: 22, 23, 24, 25
    MonoDroidLog: Information: 0: [I:]:                     Tracking android devices started
    MonoDroidLog: Information: 0: [D:]:                     Tracking avd started
    MonoDroidLog: Information: 0: [D:]:                     avd watcher *.ini path: 'C:\Users\mmorr_000\.android\avd'
    MonoDroidLog: Information: 0: [D:]:                     TrackDeviceTask got: 
    MonoDroidLog: Information: 0: [I:]:                     Got new device list from adb with 0 devices
    MonoDroidLog: Information: 0: [D:]:                     avd watcher: got device list from avd with 2 devices
    

    I see it look for JDK 1.7 but why doesn't it proceed to 1.8, which is also present? (In case it matters: 1.7 is under WOW6432Node but 1.8 isn't.)

    Tuesday, February 28, 2017 4:08 AM
  • User303309 posted

    Er... actually I just fixed it. I uninstalled the 1.7 JDK (32 bit), restarted VS, and it worked! My guess is that the key is to have either just 32-bit versions of the JDK or just 64-bit versions of it.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, February 28, 2017 4:11 AM
  • User4902 posted

    Yep, same here. I have Java SE Development kit 8 Update 101 but got that error. I uninstalled the Java SE Development Kit 7 Update 55 and it now seems to be working just fine.

    Thursday, March 2, 2017 12:04 AM