Reputation: 17788
All, I'm having a difficult time performing a simple task: take my existing project I made a few months ago and recompile it and run it on my android-v19 phone.
No matter what I do, and I've done a lot (to the point of frustration), appcompat just won't be accepted.
I've tried:
Adding AppCompat to Eclipse
My first approach was adding appcompat to my workspace (this is A STUPID STUPID REQUIREMENT).
Adding AppCompat Jars To My Project
It has difficulty finding values for the styles values, specifically for the AppCompat themes.
I get it, I should move up to v21. BUT I DON'T WANT TO YET. That's my right, that's my belief, that's my goal. How can starting up an old project be so difficult?
Upvotes: 0
Views: 169
Reputation: 1007399
it needs to be set to 19 because I don't want to compile for 21
I have no idea why. The compileSdkVersion
(what in Eclipse is the build target set in Project > Properties > Android) has no impact on what devices you can run on.
Is this not possible?
You cannot use code that conditionally uses API Level 21 constructs (classes, styles/themes, etc.) without having your compileSdkVersion
/build target set to 21 or higher.
Your choices are:
Set your compileSdkVersion
/build target to 21, or
See if you can find an older copy of appcompat_v7
, or
Stop using appcompat_v7
Upvotes: 1