简体   繁体   中英

Set the Activity Class in Intellij Idea 10.5 for Running Android App on Emulator

Recently I created and application under eclipse and it worked just fine later on I tried to transfer the codes to Intellij idea 10.5 and what I did is removing the Original MyActivity.java and replace it with the class I made under eclipse... Now every time I try to run my app it says that I need to define the Android Activity class and when I select that file it says that the class is not Acceptable.

Since I look at the codes in the original MyActivity class and my own class everything looks similar and I didn't change the structure of an activity class... so what is the problem?

Did you add this activity in AndroidManifest.xml ? Does your class extend Activity ?

If the class meets the above requirements, you will be able to specify it in Android Run/Debug configuration.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM