Imported project unable to run in Android studio

2019-08-22 07:18发布

问题:

I imported Google's HelloAr project after downloading and decompiling the code. I followed the accepted answer in this SO question to create all necessary folders. Then I imported it into android studio. But now I am unable to run the project.

build.gradle:

Modules :

UnityPlayerActivity:

回答1:

I figured it out. I was missing

settings.gradle

file at the root of the project. Android studio will not automatically add it for you. You have to manually add it to your root before you import the project into AS.