Cannot resolve symbol ‘context’

You need to do some basic Java programming tutorials. Java is totally different to JavaScript. Here, you use context as a variable but you have neither declared it, or initialised it, hence the error. You could define it (and initialise at the same time) since this refers to the current object instance of a class and Activity is a Context, or more … Read more

IDEA: javac: source release 1.7 requires target release 1.7

Most likely you have incorrect compiler options imported from Maven here: Also check project and module bytecode (target) version settings outlined on the screenshot. Other places where the source language level is configured: Project Structure | Project Project Structure | Modules (check every module) | Sources Maven default language level is 1.5 (5.0), you will see this version as the Module language level … Read more

Error:java: javacTask: source release 8 requires target release 1.8

Go to File > Settings > Build, Execution, Deployment > Compiler > Java Compiler If on a Mac, it’s under Intellij IDEA > Preferences… > Build, Execution, Deployment > Java Compiler Change Target bytecode version to 1.8 of the module that you are working for. If you are using Maven Add the compiler plugin to pom.xml under the top-level project node: (Hoisted from the comments.) Note: … Read more

intellij incorrectly saying no beans of type found for autowired repository

I had this same issue when creating a Spring Boot application using their @SpringBootApplication annotation. This annotation represents @Configuration, @EnableAutoConfiguration and @ComponentScan according to the spring reference. As expected, the new annotation worked properly and my application ran smoothly but, Intellij kept complaining about unfulfilled @Autowire dependencies. As soon as I changed back to using @Configuration, @EnableAutoConfiguration and @ComponentScan separately, the errors ceased. It seems Intellij 14.0.3 (and most likely, earlier versions too) is not yet … Read more

How to fix “unsupported class file major version 60” in IntelliJ?

I fixed this problem by changing the Gradle JVM settings in IntelliJ settings: In the Settings/Preferences dialog, go to Build, Execution, Deployment | Build Tools | Gradle. Under the Gradle section, change the Gradle JVM option. Select a Gradle JVM which works for you. See https://www.jetbrains.com/help/idea/gradle-jvm-selection.html#jvm_settings