googlecodelabs / android-agera

Apache License 2.0
58 stars 12 forks source link

Android Studio 2.2 Preview 5: issues with runConfigurations #6

Closed tmtron closed 8 years ago

tmtron commented 8 years ago

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

vipinagrahari commented 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.

tmtron commented 8 years ago

try to add this to the intent-filter

<category android:name="android.intent.category.LAUNCHER" />

JoseAlcerreca commented 8 years ago

Found the problem, working on it.

JoseAlcerreca commented 8 years ago

Filed bug https://code.google.com/p/android/issues/detail?id=218981&thanks=218981&ts=1470126691

JoseAlcerreca commented 8 years ago

I don't recommend you to add LAUNCHER intent-filter, fixed in https://github.com/googlecodelabs/android-agera/commit/682324b4cbbc9a184fd052b21229a81e98289b5e

vipinagrahari commented 8 years ago

Thanks Jose. android:exported=true fixed it