【问题标题】:I can not run my application Android Studio我无法运行我的应用程序 Android Studio
【发布时间】:2017-05-16 17:18:24
【问题描述】:

你能帮帮我吗?

当我尝试运行时,编译器会显示这个。有什么想法?谢谢

这是 AndroidManifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.cyrax.rocas">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity android:name=".Infoclase"></activity>

    </application>

</manifest>

【问题讨论】:

  • 请分享你的安卓清单
  • 此清单中有一些不可见的内容。我在这里对照 xml 验证器对其进行了检查,没有发现任何错误。 xmlvalidation.com/index.php?id=1&L=0
  • 您可以再次编写清单。清理并重建您的项目并再次运行。
  • 这是一个错误,您在清单末尾添加了一些未知字符(重建清单)并再次清理构建应用程序。

标签: android


【解决方案1】:

清理您的项目并重建它。

【讨论】:

    猜你喜欢
    • 2023-03-25
    • 1970-01-01
    • 1970-01-01
    • 2018-10-21
    • 2016-02-14
    • 1970-01-01
    • 1970-01-01
    • 2017-11-30
    • 1970-01-01
    相关资源
    最近更新 更多