Unsupported major.minor version 52.0 in my app

后端 未结 28 2746
心在旅途
心在旅途 2020-11-28 03:43

I\'m trying to compile my Android project and I\'m getting this error

[INFO] Exception in thread \"main\" java.lang.UnsupportedClassVersionError: com/android         


        
28条回答
  •  心在旅途
    2020-11-28 03:57

    I also faced this problem when making a new project in eclipse.

    1. Open your eclipse installation directory
    2. Open the file eclipse.ini
    3. Modify

      Dosgi.requiredJavaVersion=1.6 
      

      to

      Dosgi.requiredJavaVersion=1.7
      

    Hope this helps

提交回复
热议问题