小编cha*_*teg的帖子

获取 http://schemas.android.com/apk/res/android 时出错

好吧,我正在网上浏览教程,然后当我尝试将 build.gradle 文件更改为compileSdkVersion 21 而不是 23 时,一切都失去了情节,现在我之前的所有项目等都显示错误。

在 AndroidManifest.xml 中,2 个http行和所有android: 都是红色的,并且活动开始标记下面也有一条红色的波浪线。我对我做错了什么一无所知!就像互联网已经消失了一样?只是一个菜鸟,所以我不知道请帮忙!

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:android="http://schemas.android.com/tools"
          package="com.site.project" >

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >

        <activity
            android:name=".MainActivity"
            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>
Run Code Online (Sandbox Code Playgroud)

android android-manifest android-studio

6
推荐指数
1
解决办法
3万
查看次数

标签 统计

android ×1

android-manifest ×1

android-studio ×1