LoginSignup
0
0

More than 3 years have passed since last update.

IntelliJ IDEA 2019.1 で Kotlin で mobile project を新規作成したら sync でエラー

Posted at

TL;DR

  • IntelliJ IDEA 2019.1 で Kotlin で Mobile アプリでも作ろうかと思ったら新規プロジェクト作っただけでエラー
  • gradle 4.7 が悪いらしい
  • gradle をバージョンアップしたらいけたのでメモ
  • PROJECT_HOME/gradle/wrapper/gradle-wrapper.properties の distributionUrl を https://services.gradle.org/distributions/gradle-4.7-bin.zip から https://services.gradle.org/distributions/gradle-5.4.1-bin.zip にする

log

  • IntelliJ 2018.3 を 2019.1 にバージョンアップ(なんか勝手に飛んできたから
  • Kotlin を薦められたのでハロワした。うまくいった
  • じゃあ次はモバイルアプリかってんで new project
  • sync ってところでエラー
Gradle sync failed: Cause: sun.misc.Unsafe.defineClass(Ljava/lang/String;[BIILjava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class; Consult IDE log for more details (Help | Show Log) 
gradle-wrapper.properties
# distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip
  • 保存したところ自動で再度syncが実行されてダウンロードが始まりしばらく待ったら成功になった

note

  • 普段から使い慣れてる人には大したことではないのかもだけど不慣れだと何かなんだか
  • qiita ならメモっておけばそのうちどっかで検索にひっかかるようになるかと思ってメモ
  • ブログ書けよって話w
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