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

250105_no Java in Android Studio

Posted at

1.no Java in Android Studio
2.新建项目的时候无法选择Java语言,创建出来的是kotlin项目
3.新しいプロジェクトを作成する際に、Java言語を選べなくて、作成したプロジェクトはKotlinプロジェクトになって、「Android StudioでJavaが使えない」となっている。

1.Solution: When creating a new project, do not select "Empty Activity" (it will default to Kotlin and you won't be able to choose Java).
Instead, choose either "No Activity" or "Empty Views Activity" to create the project. The former has no activity, while the latter comes with a default main activity.
2.解决:
新建project的时候不要选Empty Activity(会启用kotlin, 无法选择java);
可以选择No Activity或Empty Views Activity来新建项目。
No Activity没有activity。
Empty Views Activity有默认的main acitivty.

image.png
image.png
3.解決策:
新しいプロジェクトを作成する際に「Empty Activity」を選ばないようにしましょう(これを選ぶとKotlinがデフォルトで有効になり、Javaを選べなくなります)。
代わりに、「No Activity」または「Empty Views Activity」を選んでプロジェクトを作成します。前者はアクティビティがなく、後者はデフォルトでメインアクティビティが含まれています。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?