Android N Requires the IDE To be running with Java 1.8 or later. Install a supported JDK.
Eventhough we install the JDK 1.8, this error comes up, and we are not able to work on Design view of a Mobile Phone.
Solution to the Problem :
Found a solution here http://stackoverflow.com/questions/35928580/android-n-requires-the-ide-to-be-running-with-java-1-8-or-later/35935433#35935433
- Quit Android Studio
- Edit the file
/Applications/Android\ Studio.app/Contents/Info.plist
, - remove the versions and change it to 1.8
- The changes in my file looks as below
<string>1.8</string>
- Restart Android Studio.
Now the problem will be resolved in the Design view of the Activity View
No comments:
Post a Comment