question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG - Kotlin boolean variable

See original GitHub issue

i have this fields in a presenter:

@State var firsTime: Boolean = false
@State var isFlavorGo: Boolean = false

And the annotation processor gives me this error:

error: Field must be either non-private or provide a getter and setter method e: private boolean isFlavorGo; e: ^

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
recoverrelaxcommented, May 15, 2017

yes. it fixes the issue with the 1.1.0-SNAPSHOT. Thanks for the fast feedbacl

0reactions
vRallevcommented, May 15, 2017

It’ll be fixed in the next version. I’d appreciate if you give the snapshot build a try

repositories {
    jcenter()

    maven {
        url 'https://oss.sonatype.org/content/repositories/snapshots/'
    }
}

dependencies {
    compile 'com.evernote:android-state:1.1.0-SNAPSHOT'
    kapt 'com.evernote:android-state-processor:1.1.0-SNAPSHOT'
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Kotlin - Booleans - Tutorialspoint
Kotlin Boolean Expression​​ A Boolean expression returns either true or false value and majorly used in checking the condition with if...else expressions. A...
Read more >
How Boolean works in Kotlin with Examples? - eduCBA
It supports only true and false statements if the input condition is satisfied it will execute the loop conditions else it will exit...
Read more >
Use of Boolean? in Kotlin if Statement - Baeldung
A straightforward approach to checking nullable Boolean variables in if statements is comparing the variable with the expected value. An example ...
Read more >
Use of Boolean? in if expression - kotlin - Stack Overflow
You can compare nullable boolean with true , false or null using equality operator: var b: Boolean? = null if (b == true)...
Read more >
Kotlin Booleans - W3Schools
A Boolean expression returns a Boolean value: true or false . You can use a comparison operator, such as the greater than (...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found