Data analysis for android-21 failed. Unsupported version of major.minor 51.0 on mac os Eclipse

I am using Mac os x Yosemite version 10.10.1 and Eclipse Luna 4.4

i integrated the Android SDK into Eclipse and showed the following error

when i open the project its says like this

I searched on the net and I found out that this problem is based on the Java JDK issue.

In My mac, I also installed JDK 1.6 and 1.7 and 1.8.

I know that JDK 1.6 does not support android 5. so in Eclipse I install the java compiler in JDK 1.7, but after installation, if I restart Eclipse, it will install JDK 1.6 again.

My question is which JDK will support the Android SDK on Mac. And how to completely remove JDK 1.6 from my Mac machine.

I have encountered this problem in the last two days, but so far I can’t get a solution. can anyone help to overcome this problem.

My simple need is that I want to run Android on a Mac machine.

+6
source share
3 answers

The problem is resolved. after searching a lot of this I got a solution.

Answer

Eclipse must be 64-bit, and for using android java JDK must be 1.7

+7
source

Upgrading to Eclipse Luna 64 bit with at least JDK 1.7, and I almost guarantee that everything will work.

+1
source

Source: https://habr.com/ru/post/982815/


All Articles