Eclipse doesn't generate MainActivity.java & activity_main.xml

前端 未结 9 659
太阳男子
太阳男子 2020-12-03 03:45

On creating a new Android Application Project, MainActivity.java under its package name should be generated automatically in src folder &

9条回答
  •  执念已碎
    2020-12-03 04:00

    Same thing happened to me couple days ago after updating SDK through android SDK Manager. When I rebooted eclipse, I got a pop-up saying my Android Development Tool (ADT) or a plugin for Eclipse needs update to version 22.6.2

    Here is the information http://developer.android.com/tools/sdk/eclipse-adt.html

    and click updating ADT, the download instructions are in there.

    I copied it out here just in case,

    Download the ADT Plugin Start Eclipse, then select Help > Install New Software. Click Add, in the top-right corner. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location: https://dl-ssl.google.com/android/eclipse/ Note: The Android Developer Tools update site requires a secure connection. Make sure the update site URL you enter starts with HTTPS. Click OK. In the Available Software dialog, select the checkbox next to Developer Tools and click Next. In the next window, you'll see a list of the tools to be downloaded. Click Next. Read and accept the license agreements, then click Finish. If you get a security warning saying that the authenticity or validity of the software can't be established, click OK. When the installation completes, restart Eclipse.

    Hope this helps.

提交回复
热议问题