改换包装名称后意外顶级异常 [英] Unexpected top-level exception after changing package name

查看:184
本文介绍了改换包装名称后意外顶级异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作在Android Studio项目,并遇到了一个问题,当我试图创建一个大写字母开始包(我忘了那是什么在这一点上,但这并不是眼前的问题)。所以,我从适配器改包的名字适配器,现在我不能再编译。

I am working on an Android Studio project and ran into a problem when I tried to create a package that started with a capital letter (I forgot what it was at this point, but that's not the issue at hand). So I changed the package name from Adapters to adapters and now I can no longer compile.

我收到以下错误信息:

com.android.dx.cf.iface.ParseException:类名
  (COM /例子/安卓/ myAppName /适配器/ AccountAdapter $ ViewHolder)
  不匹配路径
  (COM /例子/安卓/ myAppName /适配器/ AccountAdapter $ ViewHolder.class)

com.android.dx.cf.iface.ParseException: class name (com/example/android/myAppName/adapters/AccountAdapter$ViewHolder) does not match path (com/example/android/myAppName/Adapters/AccountAdapter$ViewHolder.class)

怎样才能改变它,使它不再尝试以配合大写A的路径?

How can I change it so that it no longer tries to match the path with the capital A?

推荐答案

此问题已得到解决。由于援助评论者,我不再接受Android Studio中运行清洁工程后,此异常。

This issue has been resolved. Thanks to aid of a commenter, I no longer received this exception after running "Clean Project" in Android Studio.

查看评论的问题上,为什么发生这种情况更多的解释。

See the comments to the question for more explanation on why this happened.

这篇关于改换包装名称后意外顶级异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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