I accidentally clicked something somewhere I think and now my project won't build/run. When I click Run, it Just get message stating "Error running MainActivity: The activity must be exported or contain an intent-filter"
what can I do to fix this error?
When I click on that error I get a huge log stating:
10/19 11:54:27: Launching app
Split APKs installed
$ adb shell am start -n "com.example.robjohns.something/com.example.robjohns.something.Introduction" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Waiting for process to come online
Connected to process 2181 on device Nexus_5X_API_24 [emulator-5554]
Application terminated.
My AndroidManifest.xml
EDIT: I updated my AndroidManifest.xml and now when I build/run app, it starts from my MainActivity file instead of how it's supposed to start from my Introduction file. HOW DO I GET IT TO START FROM INTRODUCTION FILE?
I know there are others who posted this question but those answerers said to add "android:exported="true" which I did but nothing changed.
似乎红线文件不在原始文件夹中,请尝试查找活动文件,祝您好运
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.