Closed tmtron closed 8 years ago
I made the changes in xml files. now the run configurations are displayed but their is an error saying
The activity must be exported or contain an intent-filter with android.intent.action.MAIN action
I checked the manifest file and all the activities have intent-filter action of android.intent.action.MAIN Any thoughts on what could be the possible solution.
try to add this to the intent-filter
<category android:name="android.intent.category.LAUNCHER" />
Found the problem, working on it.
I don't recommend you to add LAUNCHER intent-filter, fixed in https://github.com/googlecodelabs/android-agera/commit/682324b4cbbc9a184fd052b21229a81e98289b5e
Thanks Jose. android:exported=true
fixed it
to make the run-configurations work in Android Studio 2.2 Preview 5, I had to change the factoryName in the run-configuration xml files from Android Application to Android App.
since I'm a newbie to Android, I am not sure, if this is something that you can fix, or if it's a problem with Android Studio.
for details see this Stack Overflow thread