Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By trcooke

Thread: How to set an AAPT flag in Eclipse?

  1. #1
    Zarah is offline Senior Member
    Join Date
    Mar 2014
    Posts
    286
    Rep Power
    7

    Default How to set an AAPT flag in Eclipse?

    I am using Eclipse for Android development, instead of Android Studio. (I have my reasons; I can't use AS at the moment.)

    Now I need to use VectorDrawableCompat at the moment. As mentioned in the section titled "First things first" here, we have to turn on an AAPT flag in order to use VectorDrawableCompat. Now in the post, the method mentioned is for Gradle (i.e. Android Studio):

    Java Code:
    android {
      defaultConfig {
        vectorDrawables.useSupportLibrary = true
      }
    }
    My question is that how do I set this AAPT flag in Eclipse?

  2. #2
    trcooke is offline Tim Cooke
    Join Date
    Jul 2014
    Location
    Belfast
    Posts
    101
    Rep Power
    0

    Default Re: How to set an AAPT flag in Eclipse?

    Gradle is a build and dependency management tool. It is not related to Android Studio. So those instructions should be the same no matter what IDE you are using.
    Zarah likes this.

  3. #3
    Zarah is offline Senior Member
    Join Date
    Mar 2014
    Posts
    286
    Rep Power
    7

    Default Re: How to set an AAPT flag in Eclipse?

    Quote Originally Posted by trcooke View Post
    Gradle is a build and dependency management tool. It is not related to Android Studio. So those instructions should be the same no matter what IDE you are using.
    Thank you for your response.

    I installed the Eclipse Gradle plugin named "Buildship" and added Gradle support to my project following this guide. But I am getting the android.content.res.Resources$NotFoundException: File res/vector_circle.xml from drawable resource id #0x7f02004c, which this tutorial has warned against, if we don't set the flag (mentioned in the question) in build.gradle. I did add the mentioned snippet into build.gradle. What should I do?

Similar Threads

  1. Invalid flag error
    By Javellotto in forum New To Java
    Replies: 7
    Last Post: 01-15-2013, 09:59 AM
  2. Flag and words in one string
    By NetJava in forum New To Java
    Replies: 0
    Last Post: 11-20-2011, 05:44 PM
  3. Invalid flag problem
    By Cheynems in forum New To Java
    Replies: 6
    Last Post: 09-16-2011, 06:56 AM
  4. Flag and data passing
    By jack_nutt in forum New To Java
    Replies: 6
    Last Post: 06-10-2011, 01:31 AM
  5. Okay..I'm waiving the white flag on this
    By velvetymold in forum New To Java
    Replies: 10
    Last Post: 02-22-2011, 06:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •