When running an android applet, the following message is displayed:
No compatible targets were found do you wish to a add new Android virtual device?
No compatible targets (programs) are found. Do you want to add an AVD?
The main cause of this problem is that the project version is different from the created simulator (AVD) version. Sometimes we delete the simulator we created earlier. When you build the simulator again, when running the program, you may be prompted with no compatible targets were found. Do you wish to a add new Android virtual device. if the version you created is the same as that used in the previous project, this will not happen.
To sum up the SDK version and project version, if you build a high version of the project, you cannot deploy the AVD created in the following versions. Therefore, you can use version 1.6 as the AVD created by development and building project 1.6 or later. Another method is to create several different versions of AVD, in this way, projects of different versions can run on different avds without this error.
Therefore, the versions of the previous project must be consistent with those of the new AVD. Otherwise, they will not work.