简体   繁体   中英

Eclipse is letting me export my project with errors

I set android:minSdkVersion="7" while my code had GridLayout s (which were added in api level 14).

Now, unless I click on my gridlayout in the java file, make a change, then save it - eclipse won't say that there is an error and I can export the project and create an apk from it.

I would really like eclipse to be able to detect when a method etc has been added in an api higher than your minimum. Is there anything I can do?

Lint options are under preferences - Window->Preferences->Android. In order for Lint to check every time you have to enable the "Run full error check when exporting app and abort if fatal errors are found" Also you might have to see if Lint is enabled for the project you are exporting. In order to check it right click on the project and go to Properties -> Android Lint Preferences

皮棉偏好

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM