LoginSignup
0
0

More than 5 years have passed since last update.

Unityのgradleビルドでエラー

Posted at

Unityで、FacebookやらFirebaseやらいろいろライブラリを入れていたら、以下のエラーが出た。
https://developer.android.com/studio/build/multidex.html

なので、gradleでビルドすることに。
そしたら、こんなエラーで毎回コケる。

* What went wrong:
Execution failed for task ':transformClassesAndResourcesWithProguardForRelease'.
> java.io.IOException: Please correct the above warnings first.

対策としては、
{Android sdk}/tools/proguard/proguard-android.txt
の末尾に、以下を追記したら、無事ビルド通った。

-ignorewarnings
-keep class * {
    public private *;
}

無視しちゃって大丈夫なのかがちょっと心配ではあるけど。。。
とりあえず問題なさそう。

僕もこんな備忘録みたいなのだけじゃなく、体系的に書きたいけど、
書かないよりは書いた方がまし、と思って残しておきます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0