blandware/android-atleap

Is it possible to configure android-atleap to work with "targetSdkVersion" less than 19?

nouvak opened this issue · 3 comments

Hi guys!

If I decrease the "targetSdkVersion" to less than 19 (e.g. targetSdkVersion=18),
I get the following error from Gradle:

:app:generateDebugBuildConfig
:app:mergeDebugAssets
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources
:app:mergeDebugResources
:app:processDebugManifest
[/Users/markonovak/AndroidStudioProjects/TomUp/app/src/main/AndroidManifest.xml, /Users/markonovak/AndroidStudioProjects/TomUp/app/build/exploded-aar/com.blandware.android.atleap/core/0.1/AndroidManifest.xml:2] Main manifest has but library uses targetSdkVersion='19'

Is there perhaps a reason why android-atleap needs targetSdkVersion=19?
Do you perhaps have some suggestion what else I could do to to fix the error
above, besides setting targetSdkVersion to 19? I had to decrease targetSdkVersion in the first place, because the Robolectric library doesn't work for targetSdkVersion=19.
Thank you for your answer.

Marko Novak

Hi @nouvak

According to documentation http://developer.android.com/guide/topics/manifest/uses-sdk-element.html there is the following statement about android:targetSdkVersion

To maintain your application along with each Android release, you should increase the value of this attribute to match the latest API level, then thoroughly test your application on the corresponding platform version.

At the same time there an issue with Android Gradle plugin https://code.google.com/p/android/issues/detail?id=56182

At present moment I can offer you the workaround like this https://gist.github.com/goldierox/9533466
It should help.

Could you tried to ask Robolectric library developers about their targetSdkVersion?

Hi!

Thank you very much for the instructions! :)

Unfortunately i cannot test them because I already switched to SQLite from ORMLite
and am not using android-atlep.

But perhaps somebody else will benefit from this one...

Greetings
Marko

@nouvak Android AtLeap has universal content provider for the case using SQLite only (without ORMLite). Have a look. Probably it can help you.