One, ADT configuration error
Learn Android Programming the fourth chapter, Debug, and then do it again and again this is too simple, usually really have problems is a lot of bugs.
Is thinking, learned the last Android Lint problem, found a lot of error is appcompat_v7 mistake, because this book I am intermittent to see, I do not know why the package Explorer under the V7 folder, so I have a flick of the deleted. All right, here comes a bunch of bugs that I'm longing for.
And then learn that this thing is Android in Eclipse plug-in, no this thing, new project when not even Android application options will not come out. But I do not know how, when the deletion did not choose to delete from the hard disk, but still can not restore. I later view the information, the original restore, to reconfigure built path, I did not turn, so will V7 deleted, re-downloaded in ADT Manager, and then more irreparable, should be old did not delete clean, new version of the latest conflict.
Anyway, finally, I unloaded eclipse and reinstalled it again. Fortunately I wrote a log before, uninstall did not waste me too much time.
Two. Reinstall Eclipse
There was a new problem with the reinstallation, the original Mac upgrade to the Yosemite version, the new eclipse needs at least JDK7 environment, the Mac comes with a version of 1.6.
So I simply downloaded the version of JDK8. The problem is that several versions of the download can not be installed, first downloaded from the Baidu Software Center, installation display requires "Oracle Java requires Mac OS X 10.7.3 or later":
Then go to the official web download. Http://www.oracle.com/technetwork/java/javase/downloads/index.html
After downloading, the installation always displays "Preparing for installation" and the progress bar has been shown to complete, but it cannot be completed.
Finally, the Command+option+esc force exits the installer.
Then there are a lot of installed versions of the File Manager device that I have open. Pgk, pop-up. It pops up, or it can't be installed.
Each time you double-click the DMG installation package, the PGK will hang under the device, and then double-click the installation to get stuck.
Later restart the computer, do not know how, and then double-click DMG, the Pgk window appears, the device will not hang this package, and then I brainwave, double-click the installation, and soon succeeded.
Conclusion: After double-clicking the DMG, the PGK package is not automatically suspended under the device, but only when the Pgk installation window is ejected separately, the double-click will install normally.
Third, after installation appears the alarm: This version of the rendering library are more recent than your version of ADT plug-in. Please update ADT plug-in.
Here's how to fix it:
- Click help > Install New software.
- In the work with field, enter:
https://dl.google.com/android/eclipse/
- Select Developer tools/android development Tools.
- Click Next and complete the wizard.
Sometimes the check box does not display the content, this time, the following filter conditions are ticked off, the content is out.
At this time, you can edit the running program.
Android upgrade JDK and configuration issues.