相关疑难解决方法(0)

Android Studio - 自动完成和其他功能无法正常工作

我安装了android studio ..它运行正常.现在突然间,没有一个自动完成功能正常工作..我可以在任何地方输入任何无变量检查,没有功能帮助或检查任何东西.我仍然可以编译项目,当发生这种情况时我会收到错误.

任何人都可以帮我解决这个问题.

android-studio

102
推荐指数
16
解决办法
12万
查看次数

Android Studio不为我的导入项目生成R.java

我将项目导入Android Studio,但R.java始终为空.

public final class R {
}
Run Code Online (Sandbox Code Playgroud)

我试过了:

  1. 制作项目,制作模块,翻拍等
  2. Project Setting-modules-sources,然后添加src和gen作为我的源文件夹.

但它们没有生效.

android android-studio

25
推荐指数
3
解决办法
11万
查看次数

输出:错误:找不到资源样式/ TextAppearance.Compat.Notification.Info(又名package_name:style/TextAppearance.Compat.Notification.Info)

切换到Android Studio 3.2 canary后,我收到以下构建错误.

我看过这个帖子,那个人有类似的问题,但没有提到他们的解决方案.

我想尝试新的材料组件和喷气背包,所以有可能我不需要换回.

com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
Output:  error: resource style/TextAppearance.Compat.Notification.Info (aka com.nsnik.nrs.kotlintest.debug:style/TextAppearance.Compat.Notification.Info) not found.
error: resource style/TextAppearance.Compat.Notification.Info (aka com.nsnik.nrs.kotlintest.debug:style/TextAppearance.Compat.Notification.Info) not found.
error: resource style/TextAppearance.Compat.Notification.Info (aka com.nsnik.nrs.kotlintest.debug:style/TextAppearance.Compat.Notification.Info) not found.
error: resource style/TextAppearance.Compat.Notification (aka com.nsnik.nrs.kotlintest.debug:style/TextAppearance.Compat.Notification) not found.
error: resource style/TextAppearance.Compat.Notification (aka com.nsnik.nrs.kotlintest.debug:style/TextAppearance.Compat.Notification) not found.
error: resource style/TextAppearance.Compat.Notification (aka com.nsnik.nrs.kotlintest.debug:style/TextAppearance.Compat.Notification) not found.
error: resource style/TextAppearance.Compat.Notification.Time (aka com.nsnik.nrs.kotlintest.debug:style/TextAppearance.Compat.Notification.Time) not found.
error: resource style/TextAppearance.Compat.Notification.Time (aka com.nsnik.nrs.kotlintest.debug:style/TextAppearance.Compat.Notification.Time) not found.
error: resource style/TextAppearance.Compat.Notification.Time (aka com.nsnik.nrs.kotlintest.debug:style/TextAppearance.Compat.Notification.Time) not found.
error: resource …
Run Code Online (Sandbox Code Playgroud)

android android-custom-view android-notifications android-resources android-styles

12
推荐指数
1
解决办法
1549
查看次数

第一行断点仅起作用

我在Android Studio中开发(我使用过IntelliJ IDEA + SDK)我遇到了调试问题.我的所有断点都不适用于所有项目.排除是方法第一行的断点,例如: 在此输入图像描述 第1行的断点工作,第2行没有断点的提示告诉没有找到此行的来源.似乎proguard已启用,但它没有.

我尝试过创建新的空项目(Gradle).它也不起作用.你知道吗?

debugging android breakpoints

7
推荐指数
1
解决办法
4487
查看次数