我在开发应用程序时遇到此错误,所有事情突然都能正常运行,并且在运行应用程序并检查更改时发生了此错误,因为我告诉一切一切都突然很好,这种情况我没有在Manifest.xml文件中进行任何更改.,这是清单文件,请帮帮我。
this is the error i am getting
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.habitreminder">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
<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=".OnboardingPackage.OnboardingSlider"
android:theme="@style/Theme.AppCompat.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".userhome.UserDashboardActivity"
android:theme="@style/Theme.AppCompat.NoActionBar"
android:label="@string/title_activity_user_dashboard">
</activity>
<activity
android:name=".signup.UserCalenderSignupActivity"
android:theme="@style/Theme.AppCompat.NoActionBar" />
<activity
android:name=".signup.UserMapSignupActivity"
android:theme="@style/Theme.AppCompat.NoActionBar" />
<activity
android:name=".signup.UserDetailsSignupActivity"
android:theme="@style/Theme.AppCompat.NoActionBar" />
<activity
android:name=".login.LoginActivity"
android:theme="@style/Theme.AppCompat.NoActionBar" />
<activity
android:name=".LoginSignup.LoginSignupActivity"
android:theme="@style/Theme.AppCompat.NoActionBar" />
<activity
android:name=".MainActivity"
android:theme="@style/Theme.AppCompat.NoActionBar">
</activity>
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyCy-z3OoXACHh_MKBLoCPjdNo2ySD1ogU8" />
<meta-data android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id"/>
<activity android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="@string/app_name" />
<activity
android:name="com.facebook.CustomTabActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="@string/fb_login_protocol_scheme" />
</intent-filter>
</activity>
<activity android:name=".ProfileSettings.changeprofilename"
android:theme="@style/AppThemepopup"/>
</application>
</manifest>
答案 0 :(得分:0)
您的活动是否在َ AndroidManifest中这样声明?
<activity
android:name=".launchactivity"
android:label="@string/title_activity_login"
android:windowSoftInputMode="stateHidden" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
答案 1 :(得分:0)
enter image description here 我只是关闭Android Studio,然后删除2个文件夹名称缓存和tmp,然后再次启动Android Studio,它就可以了。