# New Kotlin plugin for IDEA generates odd warnings and produce not valid class for .apk

**URL:** <https://discuss.kotlinlang.org/t/new-kotlin-plugin-for-idea-generates-odd-warnings-and-produce-not-valid-class-for-apk/1255>\
**Category:** Uncategorized\
**Created:** [March 14, 2012, 4:12pm UTC](https://discuss.kotlinlang.org/t/new-kotlin-plugin-for-idea-generates-odd-warnings-and-produce-not-valid-class-for-apk/1255 "2012-03-14T16:12:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![philipto](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@philipto](https://discuss.kotlinlang.org/u/philipto)\
**Post date:** [March 14, 2012, 4:12pm UTC](https://discuss.kotlinlang.org/t/new-kotlin-plugin-for-idea-generates-odd-warnings-and-produce-not-valid-class-for-apk/1255/1 "2012-03-14T16:12:30Z")

</div>

Hi,

I have two problems:

1. updated plugin [kotlin-plugin-0.1.1787.zip](http://teamcity.jetbrains.com/repository/download/bt345/61493:id/kotlin-plugin-0.1.1787.zip) installed in IDEA still generates&nbsp;&nbsp;wrong class (probably with ACCT\_STATIC flag set) which causes resulting .apk can not be installed on Android emulator with INSTALL\_FAILED\_DEXOPT error message. May I have an updated standalone compiler to check the issue with ant, without IDE? The details of the story are at [http://youtrack.jetbrains.com/issue/KT-1554?projectKey=KT](http://youtrack.jetbrains.com/issue/KT-1554?projectKey=KT)

2. The IDE shows errors in correct Kotlin code (which can be compiled without even warnings), screenshot attached.  
Can it be an issue of IDEA itself?

Philip

  
  
 [idea-odd-kotlin-message.jpg](https://discuss.kotlinlang.org/uploads/short-url/dlP1DekelRLCh8YaUrgVkn33oTU.jpg) (125 KB)

---

<div class="post-metadata">

**Author:** ![abreslav](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/abreslav/32/8279_2.png) [@abreslav](https://discuss.kotlinlang.org/u/abreslav)\
**Post date:** [March 15, 2012, 12:23pm UTC](https://discuss.kotlinlang.org/t/new-kotlin-plugin-for-idea-generates-odd-warnings-and-produce-not-valid-class-for-apk/1255/2 "2012-03-15T12:23:59Z")

</div>

This looks like a bug in the Kotlin front-end. Could you give us your project? E.g. file an issue and attach the project to it? Thanks

---

<div class="post-metadata">

**Author:** ![philipto](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@philipto](https://discuss.kotlinlang.org/u/philipto)\
**Post date:** [March 15, 2012, 1:42pm UTC](https://discuss.kotlinlang.org/t/new-kotlin-plugin-for-idea-generates-odd-warnings-and-produce-not-valid-class-for-apk/1255/3 "2012-03-15T13:42:58Z")

</div>

Hi Andrey,

yes, I did: IDEA-82820.

Philip

---

<div class="post-metadata">

**Author:** ![abreslav](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/abreslav/32/8279_2.png) [@abreslav](https://discuss.kotlinlang.org/u/abreslav)\
**Post date:** [March 15, 2012, 1:53pm UTC](https://discuss.kotlinlang.org/t/new-kotlin-plugin-for-idea-generates-odd-warnings-and-produce-not-valid-class-for-apk/1255/4 "2012-03-15T13:53:39Z")

</div>

Thanks, it's now [http://youtrack.jetbrains.com/issue/KT-1587](http://youtrack.jetbrains.com/issue/KT-1587). We'll look into it.
