Issue
On creating a new Android Application Project, MainActivity.java
under its package name should be generated automatically in src folder & activity_main.xml
should be created inside layout folder. But it is not created.
And also in manifest it doesn`t generate this POC
<activity
android:name="info.androidhive.slidingmenu.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
However, I added all these things manually.
activity_main.xml then shows this error
Eclipse is loading framework information and the layout library from the SDK folder. activity_main.xml will refresh automatically once the process is finished.
MainActivity.java doesn't recognize the layout field in
setContentView(R.layout.activity_main)
And yesterday I downloalded the updates from SDK Manager these tools are installed /updated
I tried cleaning the project,changing the workspace,restarting the eclipse & windows but it doesn't helps :(
Solution
As one guy said
I had the same problem even though I downloaded the Android SDK and did a clean install, but I just resolved it. I tried to click "Help" -> "Check for updates", and then I got a pop-up message saying everything was up to date, but after further research it appeared to me it wasn't up to date. What you need to do is click "Help" -> "Install new software" and install (this will update it) from this url: https://dl-ssl.google.com/android/eclipse/
See here thread https://code.google.com/p/android/issues/detail?id=66647
Answered By - Ajay S
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.