android - Build target with API level below 14 and v7 appcompat library -
having issues appcompat-v7 , compilesdkversion, app build target api 10 set compilesdkversion 10 compile code safely, expected works support-v4: app compiles , runs on api 10 devices.
then want add together appcompat-v7 dependencies (or replace v4 it) , perform clean re-build of app without changes @ code or resources, build fails @ r generation stage unless compilesdkversion set higher value.
i understand v7 library using values unavailable @ api 10. raises question of how can go on write safe code , utilize v7 without need manually check api level of each variable , method. there way maintain using v7 (that claimed "designed used android 2.1 (api level 7)") , compilesdkversion 10 ?
apparently @ newest intellij version lint produces errors if methods form api above minsdkversion used (can enabled/disabled @ preferences-inspections, expand android lint @ list, calling new methods on older versions or utilize "newapi" annotation suppress error if needed).
that'll have until kind of dynamic resources compilation introduced. i'm going leave question here future reference.
android gradle appcompat
No comments:
Post a Comment