I can not create a new Activity

1

I'm doing a project that uses the jar support v4. However, when I create a new Activity, the project has errors, as it informs that support v7 is required. Is it possible to continue developing this project using only v4, or has it been discontinued and is now only possible using v7?

Here's my Android_Manifest :

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="br.exemploactionbar"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="11"
        android:targetSdkVersion="18" />

    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.Holo.Light" >
        <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>
        <activity
            android:name=".NoticeActivity"
            android:label="@string/title_activity_notice" >
        </activity>
        <activity
            android:name=".TesteActivity"
            android:label="@string/title_activity_teste" >
        </activity>
    </application>

</manifest>
    
asked by anonymous 04.06.2015 / 18:13

1 answer

1

If you are including the v4 e bibliotecas AppCompat v7 support in your application, you must specify a minimum SDK de 7 version (not 4 ).

The highest level of the support library that you include in your application determines the lowest version of the API it can operate on.

Font

    
23.02.2016 / 21:49