未为模块“示例-示例"指定 APK 路径; [英] APK path is not specified for module "Example-Example"

查看:26
本文介绍了未为模块“示例-示例"指定 APK 路径;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Android 应用程序开发领域的新手.我在 Android Studio 上创建了一个项目示例.我在 src/main/java/apt.tutorial.lunchlist 中有我的 LunchList.java 文件.直到昨天一切正常.但是当我今天打开 android Studio 时出现错误提示

I am newbie in the world of android app development. I was creating a project Example on Android Studio. I have my LunchList.java file in src/main/java/apt.tutorial.lunchlist .Till yesterday Everything was working fine. But when I open android Studio today I got an error saying

"以下模块已从 Gradle 结构中删除.查看那些也将从项目中删除的:"

"The modules below have been removed from Gradle structure. Check those to be removed from the project too:"

☑ 午餐清单

☑ 午餐清单-午餐清单

☑ LunchList-LunchList

还有确定取消按钮.我不想删除它们.所以我点击取消并继续.

And there is OK and Cancel Button. I don't want to remove them. So I click cancel and proceed.

然后当我尝试在模拟器中运行应用程序时,模拟器运行但没有任何反应.我得到了这个错误

Then when I tried to run the application in emulator the emulator runs but nothing happens. And I got this error

等待设备.

目标设备:emulator-5554 (Android)

Target device: emulator-5554 (Android)

错误:未为模块LunchList-LunchList"指定 APK 路径

ERROR: APK path is not specified for module "LunchList-LunchList"

我不知道出了什么问题.请帮帮我.

I don't know what went wrong. Please help me.

推荐答案

退出 Android studio.使用管理员权限启动它.
这解决了 Windows 7Android Studio v0.1 的问题.

Exit Android studio. Launch it with Administrator Privilege.
This solved the problem with Android Studio v0.1 in Windows 7.

这篇关于未为模块“示例-示例"指定 APK 路径;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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