-4
昨天一切都很好,但是现在当我运行AVD时它不会显示出来。我的应用程序不显示在android studio模拟器上
不知道它是不是我的AndroidManifest.xml文件,它非常标准。
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name="com.example.app.Hoved"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
需要的不仅仅是帮助。清理项目,然后重建,然后检查'/build/outputs/apk /'中是否存在.apk文件。我猜你在你的资源xml文件中有一个错误导致R无法生成。我在 –
o0rebelious0o
之前已经看到导致无提示错误的问题/ outputs /文件夹中没有/ apk /文件夹。有一个/logs/manifest-merger-report.txt – Toeffen
这意味着你的应用程序无法构建。这个问题不太可能是清单文件本身,但由于某些原因,资源无法生成。如果它昨天为您工作,希望您正在进行某种版本控制工作,并且可以区分您已更改的内容以查看问题来自何处 – o0rebelious0o