Should be similar to: buildscript apply plugin: ‘.ugin’ Step 4 - Edit your AndroidManifest.xmlĪdd Camera permission and Camera Feature (Always needed in AR) Open a new project or edit an existing one Step 2 - Edit your Project adleĪdd classpath ‘.sceneform:plugin:’ to your Project gradle file under the dependencies section. The reason for applying app.gradle last is that it should be able to override any properties or settings that any plugin might have set.This is part 2 of a series about ARCore and Sceneform using Android Studio In this part we will focus on the project setup In most of the cases, this is the file which you should use when you need to add some gradle code in your application. You can also add your native dependencies here. In this file you can set the default Android configurations like minSdkVersion and targetSdkVersion. Then, in your gradle script file, you can access the property by accessing it on the project object as project.m圜ustomVariable.
For example, if you want to define the variable m圜ustomVariable with a value m圜ustomValue, you would need to add the following in your gradle.properties file: m圜ustomVariable=m圜ustomValue In this file you can set various properties which could be used at a later point in the gradle script files.