# Something Error Happend On AndroidStudio 2.2 pre2

**URL:** <https://discuss.kotlinlang.org/t/something-error-happend-on-androidstudio-2-2-pre2/1706>\
**Category:** Uncategorized\
**Created:** [June 2, 2016, 2:52am UTC](https://discuss.kotlinlang.org/t/something-error-happend-on-androidstudio-2-2-pre2/1706 "2016-06-02T02:52:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cosecant](https://avatars.discourse-cdn.com/v4/letter/c/6bbea6/32.png) [@Cosecant](https://discuss.kotlinlang.org/u/Cosecant)\
**Post date:** [June 2, 2016, 2:52am UTC](https://discuss.kotlinlang.org/t/something-error-happend-on-androidstudio-2-2-pre2/1706/1 "2016-06-02T02:52:37Z")

</div>

When I build my kotlin android-project, something error happend, how can I solve the problem? Thank U!  
Error:java.lang.NoSuchMethodError: com.google.protobuf.GeneratedMessageLite.newSingularGeneratedExtension(Lcom/google/protobuf/MessageLite;Ljava/lang/Object;Lcom/google/protobuf/MessageLite;Lcom/google/protobuf/Internal$EnumLiteMap;ILcom/google/protobuf/WireFormat$FieldType;)Lcom/google/protobuf/GeneratedMessageLite$GeneratedExtension;

---

<div class="post-metadata">

**Author:** ![yole](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/yole/32/1425_2.png) [@yole](https://discuss.kotlinlang.org/u/yole)\
**Post date:** [June 2, 2016, 10:34am UTC](https://discuss.kotlinlang.org/t/something-error-happend-on-androidstudio-2-2-pre2/1706/2 "2016-06-02T10:34:11Z")

</div>

This is a known issue which will be resolved in a forthcoming update. As a workaround, make sure that the Kotlin plugin is applied before the Android plugin in your build.gradle.

---

<div class="post-metadata">

**Author:** ![lukef](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/lukef/32/1796_2.png) [@lukef](https://discuss.kotlinlang.org/u/lukef)\
**Post date:** [June 28, 2016, 3:16pm UTC](https://discuss.kotlinlang.org/t/something-error-happend-on-androidstudio-2-2-pre2/1706/3 "2016-06-28T15:16:47Z")

</div>

Is there a youtrack issue for this that I can add to / watch? I’m still seeing it in 1.0.3-eap.

---

<div class="post-metadata">

**Author:** ![yole](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/yole/32/1425_2.png) [@yole](https://discuss.kotlinlang.org/u/yole)\
**Post date:** [June 28, 2016, 3:32pm UTC](https://discuss.kotlinlang.org/t/something-error-happend-on-androidstudio-2-2-pre2/1706/4 "2016-06-28T15:32:38Z")

</div>

The issue is [https://youtrack.jetbrains.com/issue/KT-12431](https://youtrack.jetbrains.com/issue/KT-12431) and the fix is included in 1.0.2-1 as well as the most recent 1.0.3 EAP build. Which exactly version are you using? Note that you need to update your build.gradle to reference the new version; it’s not enough to update the IntelliJ IDEA plugin.

---

<div class="post-metadata">

**Author:** ![lukef](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/lukef/32/1796_2.png) [@lukef](https://discuss.kotlinlang.org/u/lukef)\
**Post date:** [June 28, 2016, 5:23pm UTC](https://discuss.kotlinlang.org/t/something-error-happend-on-androidstudio-2-2-pre2/1706/5 "2016-06-28T17:23:25Z")

</div>

I’m using `1.0.3-eap-58` on Android Studio 2.2 - prev 4 (gradle 2.2.0-alpha4). I know it’s bleeding edge but I thought it relevant to point out regardless. I also tested on 1.0.2-1.

The exact error is:

````auto
Plugin Error: Kotlin threw an uncaught NoSuchMethodError. Disable Plugin
NoSuchMethodError: com.google.common.io.Files.newOutputStreamSupplier(Ljava/io/File;)Lcom/google/common/io/OutputSupplier;```

Let me know what you need.
````

---

<div class="post-metadata">

**Author:** ![yole](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/yole/32/1425_2.png) [@yole](https://discuss.kotlinlang.org/u/yole)\
**Post date:** [June 28, 2016, 5:45pm UTC](https://discuss.kotlinlang.org/t/something-error-happend-on-androidstudio-2-2-pre2/1706/6 "2016-06-28T17:45:34Z")

</div>

You’re not “seeing this”, you’re seeing a different problem. Please file a new YouTrack issue with the full exception stacktrace and, if possible, with a project that can be used to reproduce the problem.

---

<div class="post-metadata">

**Author:** ![lukef](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/lukef/32/1796_2.png) [@lukef](https://discuss.kotlinlang.org/u/lukef)\
**Post date:** [June 28, 2016, 7:34pm UTC](https://discuss.kotlinlang.org/t/something-error-happend-on-androidstudio-2-2-pre2/1706/7 "2016-06-28T19:34:57Z")

</div>

Ok. No problem. I wasn’t sure if they were the same root cause being manifested in a different way, that’s why I asked first.

The issue is logged as: [https://youtrack.jetbrains.com/issue/KT-12895](https://youtrack.jetbrains.com/issue/KT-12895)

---

<div class="post-metadata">

**Author:** ![Cosecant](https://avatars.discourse-cdn.com/v4/letter/c/6bbea6/32.png) [@Cosecant](https://discuss.kotlinlang.org/u/Cosecant)\
**Post date:** [August 15, 2016, 6:57am UTC](https://discuss.kotlinlang.org/t/something-error-happend-on-androidstudio-2-2-pre2/1706/8 "2016-08-15T06:57:43Z")

</div>

thank u everyone , I upgrade my kotlin-plugin, everything is ok！
