NetBeans IDE 7.2.1 cannot access java.lang Fatal Error: Unable to find package java.lang in classpath or bootclasspath

我只是一个虾纸丫 提交于 2019-12-04 04:31:12

The project has an old hotspot, in Netbeans:

  • Right click the project
  • properties
  • libraries
  • update "Java Platform"

Not exclusive to Android, this happened to me while trying to compile a very old project.

Nezir

I just found what the problem was.

  1. I updated this path to my correct path sdk.dir=E:\\ANDROID\\Eclipse371\\android-sdk in project file local.properties.

  2. I updated project.properties file # Project target.target=android-8, to target 8 I had 7 before that obviously does not supported in this version of SDK.

and I successfully build my project :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!