重构某些变量后找不到默认活动

时间:2019-05-05 12:27:12

标签: android xml

我已经更新了我的android版本,并重构了某些类中的一些变量,并在运行代码期间得到Default Activity not found错误。由于名称已从“名称”更改为“至”,因此发生了此问题。如何在清单Error: Default Activity Not Found中重构to变量 但没人能解决我的问题

清单文件

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

    <uses-permission android:to="android.permission.INTERNET" />
    <uses-permission android:to="android.permission.CAMERA" />
    <uses-permission android:to="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:to="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:to="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:to="android.permission.ACCESS_FINE_LOCATION" />
    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:xlargeScreens="true" />
    <uses-feature
        android:to="android.hardware.camera"
        android:required="true" />




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


        <activity android:to=".WelcomeScreen">
            <intent-filter>
                <action android:to="android.intent.action.MAIN" />
                <category android:to="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity
            android:to="com.theartofdev.edmodo.cropper.CropImageActivity"
            android:theme="@style/Base.Theme.AppCompat" />

        <activity android:to=".MainActivity" />
        <activity android:to=".Sgin_Up" />
        <activity android:to=".Customers" />
        <activity android:to=".AddDriverAndCarData" />
        <activity android:to=".AddTimeAndData2" />
        <activity android:to=".DateAndTime2" />
        <activity android:to=".DriverData" />
        <activity android:to=".DriverActivity" />
        <activity android:to=".DisplayCustomerTIme" />
        <activity android:to=".DriverCollection" />
        <activity android:to=".DriverLicenceAndCarPic" />
        <activity android:to=".UploadCarImageAndDriverlicnce" />
        <activity android:to=".DisableSomeDate" />
        <activity android:to=".DisplayDriverTime" />
        <activity android:to=".ListAllBookedTimeDriver" />
        <activity android:to=".ChatActivity"/>
        <activity android:to=".CustomerLogin" />

        <activity
            android:to=".Customer"
            android:label="Customer "
            android:theme="@style/AppTheme" />
        <activity android:to=".loginPage" />
        <!--
             The API key for Google Maps-based APIs is defined as a string resource.
             (See the file "res/values/google_maps_api.xml").
             Note that the API key is linked to the encryption key used to sign the APK.
             You need a different API key for each encryption key, including the release key that is used to
             sign the APK for publishing.
             You can define the keys for the debug and release targets in src/debug/ and src/release/.
        -->
        <meta-data
            android:to="com.google.android.geo.API_KEY"
            android:value="@string/google_maps_key" />

        <activity
            android:to=".DriverMap"
            android:label="@string/title_activity_driver_map" />
        <activity android:to=".UpdateAndDelete" />

    </application>

</manifest>

0 个答案:

没有答案