Error reported by androidstudio and error reported by androidstudio
Change the IDE today and an error will be reported when the result comes up,
Androidstudio
Message: Error: java. lang. UnsupportedClassVersionError: com/android/dx/command/Main: Unsupported major. minor version 52.0
Error: Execution failed for task': myapplication: transformclasseswithdexfordebug '.
> Com. android. build. api. transform. transformException: java. lang. runtimeException: com. android. ide. common. process. processException: java. util. concurrent. executionException: com. android. ide. common. process. processException: org. gradle. process. internal. execException: Process 'COMMAND 'd: \ Program Files \ Java \ jdk1.7.0 _ 67 \ bin \ java.exe ''finished with non-zero exit value 1
My solution: Because build. in grade, the inconsistency between compileSdkVersion 23 and buildToolsVersion "24.0.1 leads to the change of buildToolsVersion to 23.01. In clean mode, IDE prompts you to download version 23.01, hoping to help you solve the problem.