YFeizi
YFeizi

Reputation: 1528

Error with appcompat module

My problem was Ide didnt detect Theme.AppCompat.Light

<style name="mytheme" parent="Theme.AppCompat.Light">

Then i decide to add appcompat module to my project!

When i add appcompat module to my project its return this error when compile it :

Error:android-apt-compiler: [android-support-v7-appcompat] ERROR: Unknown option '--output-text-symbols'
Error:android-apt-compiler: [android-support-v7-appcompat] Android Asset Packaging Tool

Im using Intelij Idea ide and android api 17 and also :

<uses-sdk
            android:minSdkVersion="9"
            android:targetSdkVersion="19"/>

Upvotes: 1

Views: 342

Answers (1)

heliotrope
heliotrope

Reputation: 349

The minsdkVersion should be set as high as your targetsdkVersion(or atleast >= api version 11) to use the appcompat library.

If you're using intelliJ you'd want to go to project structure-->module-->Android-Gradle and put all sdkversions under properties and flavors to the most recent.

And if you'd set the dependency in build.gradle to the following:

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:+'
}

Or at least that solved the problem for me.

Upvotes: 2

Related Questions