logo
down
shadow

Dagger 2: Unable to find generated class in Intellij Idea (Kotlin)


Dagger 2: Unable to find generated class in Intellij Idea (Kotlin)

By : Ronald_Bulkins
Date : October 18 2020, 03:08 PM
With these it helps This looks like KT-17923. Please update your Kotlin IDE plugin version to 1.1.60 or 1.2-Beta.
Also, as a work-around, you can specify the generated directories manually:
code :
apply plugin: 'idea'
idea {
    module {
        sourceDirs += file('build/generated/source/kapt/main')
        generatedSourceDirs += file('build/generated/source/kapt/main')
    }
}


Share : facebook icon twitter icon
Is there any way of making IntelliJ IDEA recognizing Dagger 2 generated classes in a Java project?

Is there any way of making IntelliJ IDEA recognizing Dagger 2 generated classes in a Java project?


By : dmitri leto
Date : March 29 2020, 07:55 AM
this will help Finally I made it!
I had to add the apt and the idea plugin so right now my build.gradle file look like this:
code :
buildscript {
    repositories {
        maven {
            url "https://plugins.gradle.org/m2/"
        }
    }
    dependencies {
        classpath "net.ltgt.gradle:gradle-apt-plugin:0.4"
    }
}

apply plugin: "net.ltgt.apt"
apply plugin: 'java'
apply plugin: 'idea'

repositories {
    mavenCentral()
}

dependencies {
    testCompile group: 'junit', name: 'junit', version: '4.12'

    compile 'com.google.dagger:dagger:2.0.1'
    apt 'com.google.dagger:dagger-compiler:2.0.1'
}
spring-configuration-metadata.json file is not generated in IntelliJ Idea for Kotlin @ConfigurationProperties class

spring-configuration-metadata.json file is not generated in IntelliJ Idea for Kotlin @ConfigurationProperties class


By : Robert Medina
Date : March 29 2020, 07:55 AM
Any of those help Thank you for pointing me in the right direction. So the solution is to add
code :
dependencies {
    ...
    kapt "org.springframework.boot:spring-boot-configuration-processor"
    optional "org.springframework.boot:spring-boot-configuration-processor"
    ...
}
optional "org.springframework.boot:spring-boot-configuration-processor"
IntelliJ IDEA - could not find org.jetbrains.kotlin:kotlin-gradle-plugins

IntelliJ IDEA - could not find org.jetbrains.kotlin:kotlin-gradle-plugins


By : Abhishek kumar
Date : March 29 2020, 07:55 AM
I wish this help you There seems to be a typo in the build script: the correct name of the artifact is kotlin-gradle-plugin (without s).
Check the dependency declaration in your build.gradle:
code :
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:..."
IntelliJ Idea 2017.3 unable to start Kotlin Spring Boot App - @Configuration class may not be final

IntelliJ Idea 2017.3 unable to start Kotlin Spring Boot App - @Configuration class may not be final


By : Philipe
Date : March 29 2020, 07:55 AM
Hope that helps Fixed upgrading IntelliJ's Kotlin pluging to 1.2.21: https://plugins.jetbrains.com/plugin/6954-kotlin/update/42501
Where to put gradle dependencies block in kotlin native project generated by Intellij IDEA?

Where to put gradle dependencies block in kotlin native project generated by Intellij IDEA?


By : user3469621
Date : March 29 2020, 07:55 AM
I hope this helps you . As it was pointed out by this comment we cannot use TornadoFX in Kotlin Native, so I was doing everything wrong since the beginning, and this is not really a gradle issue.
Related Posts Related Posts :
  • How to create a jar with tests and run it from another version of project?
  • SelectOutput malfunctioning
  • How to display time in HHhMM a format in java ?
  • Is this the right way to change the charset of a String?
  • Apache-poi Restrict the user to select only the values of drop down list
  • Junit4 with Parameterized Test
  • How to print server responses using LoggingFeature in Dropwizard 1.0.2?
  • rabbitmq setting requeue in spring xd
  • Evaluator Expression: How to know if the input is wrong
  • Drawing a JLabel with X,Y coordinate of the center
  • How to check when a bookmark placed inside a cell?
  • Access fields in class
  • What are all the events captured by Websphere JAVA_DUMP_OPTS conditions?
  • About compile servlets from command line: the provided solution didn't work
  • RegEx to extract text between tags in Java
  • JSON ObjectMapper with javac "-parameters" behaves when run via maven, not via InteliJ IDEA
  • datepickerdialog hide calendar and change my date picker view to standard mode
  • How to create config properties for tinylog at runtime with User preferences
  • MessageArrived MQTT paho library
  • Why java doesn't allow to create instance of inner class?
  • Getting NullPointerException while using Lambda expression
  • Reading values from a text file and separating into String and double
  • Gson: skip different fields with different gsons
  • Java this in parent and child not working as expected
  • Java Android - close application (notifications) after swiping in recents
  • I am using Authorize.net payment gateway and doing transaction through Direct Post Method,is it possible to just validat
  • Java Agent wont load into JVM
  • android error: The RealmClass annotation does not support nested classes
  • Hadoop: There are 0 datanodes running and no nodes & cannot connect to namenode
  • Return Response arraylist and 1 attribute
  • Java, why do my lines always white out in BlueJ?
  • starting apache drill process with java API?
  • Configuring a Maven plugin twice in a pom.xml
  • How to work with Lombok?
  • How to parse list of object from Json Object
  • Adding certificate in .cer format into to .bks keystore
  • String array initialization using for loop
  • Dynamic element inside several 'li'
  • Unable to upload a file to Spring REST service via RestTemplate
  • Scala: Why java.lang.IllegalArgumentException: Cannot format given Object as a Date?
  • How does CoreOS allocates memory to a Docker container?
  • Repaint never reaches paintComponent();
  • Instantiating a generic class in a generic class
  • Case insensitive path startsWIth endsWith
  • Deleting directory in finally block?
  • How to include resources from src/main/java
  • Cant assign found item to variable as array
  • add(T) in List cannot be applied to Java.lang.Number
  • Spring Data JPA Many to Many with extra column
  • How to index a boolean @Field in Hibernate Search if the field is not in the db table
  • Modify and access value outside a thread class
  • How to skip @Param in @Query if is null or empty in Spring Data JPA
  • Using AssertJ, how do I perform complex assertions on the contents of a list?
  • Get the corner value of dienantion array in java
  • How can I delete the available state in a local cache?
  • Can't get rid of the ugly border around ImageButton
  • Togglez feature activation based on input parameters from call
  • Passing confirmation to JSP from servlet, getting errors
  • How to check the date and timestamp is before 20mins
  • Java: How does a call to the super class constructor inside of a child class constructor work?
  • shadow
    Privacy Policy - Terms - Contact Us © soohba.com