Android Studio needs JDK 7 for Android-L mac

后端 未结 6 662
醉话见心
醉话见心 2020-12-04 05:37

I was trying to look how my app looks in material design and I would like to use the new cards lib. My Problem is, that it\'s giving me this error within my gradle file and

6条回答
  •  被撕碎了的回忆
    2020-12-04 06:15

    The other answers are very correct but I want to be more concise and clear. To prevent others from visiting this page multiple times unnecessarily.

    Important* Old Path is /System/Library/Java... and New Path is /Library/Java... (Not under the System directory)

    Replace old path: /System/Library/Java/JavaVirtualMachines/jdk1.6.0_0.jdk/Contents/Home

    Set your new path: /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home

提交回复
热议问题