我的AndroidManifest.xml文件充满了错误,为什么?

huangapple go评论63阅读模式
英文:

My AndroidManifest.xml is full of errors, why?

问题

这是你的翻译内容:

我正在尝试在Android Studio中制作我的第一个应用程序。我尝试在我的AndroidManifest.xml上编写了一些代码,但它没有起作用,所以我又将其删除了。但是现在我的AndroidManifest.xml中充满了错误,我无法运行我的应用程序。我不知道出了什么问题。关于编码我了解得不多。我希望有人能帮助我。我的AndroidManifest.xml看起来像这样:

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

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

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

</manifest>
英文:

I'm trying to make my first app in Android Studio. I tried to write something on my AndroidManifest.xml that didn't work, so I deleted it again. But now my AndroidManifest.xml is full of errors and I cant run my app. I have no idea whats wrong. I dont know so much about coding. I hope someone can help me. My AndroidManifest.xml looks like this:

    &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    xmlns:tools=&quot;http://schemas.android.com/tools&quot;
    package=&quot;com.example.bobbysmedicin&quot;&gt;

    &lt;application
        android:allowBackup=&quot;true&quot;
        android:icon=&quot;@mipmap/ic_launcher&quot;
        android:label=&quot;@string/app_name&quot;
        android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
        android:supportsRtl=&quot;true&quot;
        android:theme=&quot;@style/AppTheme&quot;&gt;
        &lt;activity android:name=&quot;.AboutActivity&quot;&gt;&lt;/activity&gt;
        &lt;activity
            android:name=&quot;.MainActivity&quot;
            android:screenOrientation=&quot;landscape&quot;/&gt;
            &lt;intent-filter&gt;
                &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;

                &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
    &lt;/application&gt;

&lt;/manifest&gt;

答案1

得分: 2

Sure, here's the translation:

移除这个(空格或制表符),然后尝试运行你的应用。

英文:

我的AndroidManifest.xml文件充满了错误,为什么?

Remove this (space or tab), then try to run your app

huangapple
  • 本文由 发表于 2020年9月23日 19:45:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/64027242.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定