Android Kotlin 勉強しながら ARCore をさわっていく #01
開発環境
Android Studio
Android SDK Platform v 7.0 (API level 24) +
android { defaultConfig { … minSdkVersion 24 } }
ARCoreを有効にする
必須アプリ と オプションアプリ
必須/非必須、自動インストールする/しない
<uses-permission android:name="android.permission.CAMERA" /> <uses-feature android:name="android.hardware.camera.ar" /> <application …> … <!-- "AR Required" app, requires "Google Play Services for AR" (ARCore) to be installed, as the app does not include any non-AR features. --> <meta-data android:name="com.google.ar.core" android:value="required" /> </application>
カメラ機能の使用許可
<uses-permission android:name="android.permission.CAMERA" />
カメラ利用の宣言
<uses-feature android:name="android.hardware.camera.ar" />
必須/非必須
<!-- Indicates whether "Google Play Services for AR" (ARCore) is "required" or "optional". --> <meta-data android:name="com.google.ar.core" android:value="required" />