I installed the ADT bundle from http://developer.android.com/sdk/index.html yesterday, and I was following a basic Hello World tutorial. I created a new Android Application Project with a Blank Activity named MainActivity
. The resulting project has an empty src
folder and empty reslayout
folder. There is a R.java
file in the gen
folder but it has no reference to MainActivity
. This is what the SDK manager says I have installed
- Android SDK Tools v 22.6
- Android SDK Platform-tools v 19.0.1
- Android SDK Build-tools v 19
- SDK Platform v 3
- ARM EABI v7a System Image v 2
- Android Support Library v 19.0.1
- Google USB Driver v 9
I also tried manually creating an activity by right clicking the src
folder and going to Android Activity, but when I hit Finish on the creation wizard, nothing happens. Does anyone have any clues as to what's going on? Did I miss a key component to install or something?
question from:
https://stackoverflow.com/questions/22190578/adt-will-not-allow-creation-of-android-activity 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…