导入的项目无法在Android Studio中运行 [英] Imported project unable to run in Android studio

查看:118
本文介绍了导入的项目无法在Android Studio中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在下载并反编译代码后,我导入了 Google的 HelloAr项目.我遵循了

模块:

UnityPlayerActivity:

解决方案

我知道了.我不见了

settings.gradle

文件位于项目的根目录.Android Studio不会自动为您添加它.在将项目导入AS之前,必须手动将其添加到根目录中.

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:

解决方案

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.

这篇关于导入的项目无法在Android Studio中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆