Error Occurs while Running Android Project - Unsupported major.minor version

后端 未结 5 799
失恋的感觉
失恋的感觉 2020-12-13 11:08

While running the code it shows a alert

Errors occurred during the build Errors running builder \'Android Package Builder\' on project \'Tes

相关标签:
5条回答
  • 2020-12-13 11:24

    Solved the issue , Previously I compiled with jAVA 1.7 and run in jdk 1.8 that was the reason of my issue now i download JAVA 1.8 now it is running

    • J2SE 8=52,
    • J2SE 7=51,
    • J2SE 6.0=50,
    • J2SE 5.0=49,
    • JDK 1.4=48,
    • JDK 1.3=47,
    • JDK 1.2=46
    • JDK 1.1=45

    0 讨论(0)
  • 2020-12-13 11:26

    I have got the same exact issue, but not the same solution solved it :

    To fix this, i have to go in my project.properties file :

    And in this file add this line :

    sdk.buildtools=23.0.3
    
    0 讨论(0)
  • 2020-12-13 11:28

    The only one reason for Unsupported major.minor version 52.0 in eclipse is API Level 24

    So please do following things to resolve Issue in Eclipse :

    1. GO To Window menu
      2.Open Android SDK manager
      3.Check is API level 24 is installed any Platform
      4.If YES Please Uninstall this API level 24 Packages.
      5.Clean Project and Run Again.

    And its Work fine.

    0 讨论(0)
  • 2020-12-13 11:31

    your code might has been compiled with Java Higher version(i.e. 8), while you are trying to run it with Java Lower version(i.e. 7). Note that Eclipse has it's own compiler and does not use the one from the JDK and most probably it is configured to use Java Higher version(i.e. 8). Check you eclipse compiler preferences.

    0 讨论(0)
  • 2020-12-13 11:35

    Adding the below line in project.properties and setting Java to 1.7 solved the issue to me.

    sdk.buildtools=23.0.3

    0 讨论(0)
提交回复
热议问题