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?

Pixcel 6 API 33で実行

Posted at

Android Studio Iguana Kotlin

で実行すると

:app:mergeDebugResouces 1 warning
 AGPBI: {"kind":"error","text":"
  ","sources":[{"file":"C:\\Users\\lhssy\\AndroidStudioProjects\\Test\\app\\src\\main\\res\\values
:app:packageDebugResouces 1 warning
:app:writeDebugSigningConfigVersionas UP-TO-DATE6errors
 com.android.build.gradle.tasks.ResourceException:
 com.android.build.gradle.tasks.ResourceException:
 C:\Users\lhssy\AndroidStudioProjects\Toushiup\app\src\main\res\values\strings.xml:2:6

と出てエラーになります。

activity_main.xml strings.xml MainActivity.ktにはエラーはありません。

setContentView(R.layout.activity_main)

の後にKotlinを書き込んでも

ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
           val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
           v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
           insets
       }

の後にKotlinを書き込んでもエラーになります。

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?