3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AndroidStudio3.1でエラーいっぱいでたお話

Last updated at Posted at 2018-03-30

はじめに

すごい独り言します.
AndroidStudioの安定版の新しいバージョンがリリースされました.
https://android-developers.googleblog.com/2018/03/android-studio-3-1.html
JetbrainsのIDEの新しいバージョンがリリースされるとワクワクしますよね.
いつもありがとうございます.Jetbrains.

よしAndroidStudio3.1に!
スクリーンショット 2018-03-30 20.47.48.png

すごいエラー出ました.

結局何がいけなかったのか

大きく二つあります.

Null安全についての構文エラー

https://kotlinlang.org/docs/reference/null-safety.html
公式ガイドが一番わかりやすいですね.
https://qiita.com/koher/items/d9411a00986f14683a3f
こちらも参考になりました.

継承についてのエラー

Class 'RecyclerViewAdapter' is not abstract and does not implement abstract base class member 
@NonNull public abstract fun onCreateViewHolder(@NonNull p0: ViewGroup, p1: Int): RecyclerViewAdapter.ViewHolder 
defined in android.support.v7.widget.RecyclerView.Adapter	

abstractクラスはNonNullなのに,実装してるのはNull許容してますよ?
きちんと継承してください?
という感じのエラーでしょうか.

最後に

早く学生レベルから現場レベルのエンジニアになりたい今日この頃です.
何言ってるんだコイツってなりましたら是非突いてくれると幸いです.
独り言に付き合っていただきありがとうございました.:sunny:

3
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
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?