Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8097169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:40:25+00:00 2026-06-05T21:40:25+00:00

Having this errors when trying to compile/run my app using Maven. I’ve succeeded to

  • 0

Having this errors when trying to compile/run my app using Maven. I’ve succeeded to install actionbarsherlock as a library into my local maven repository, and added the dependency to my app. But still a can’t compile my app, I’ve even tried to force sdk-15 when compiling.
Any ideas?

MAVEN LOG

C:\repository\myapp>mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building myapp 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- android-maven-plugin:3.1.1:generate-sources (default-generate-sources) @ myapp ---
[DEBUG] Expanding: user\.m2\repository\com\actionbarsherlock\library\4.1.0\library-4.1.0.apklib into C:\repository\myapp\target\unpack\apklibs\com.actionbarsherlock_library_apklib_4.1.0
[DEBUG] expand complete
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] C:\Program Files (x86)\Android-SDK\platform-tools\aapt.exe [package, -m, -J, C:\repository\myapp\target\generated-sources\r, -M, C:\repository\myapp\AndroidManifest.xml, -S, C:\repository\myapp\res, -S, C:\repository\myapp\target\unpack\apk
libs/com.actionbarsherlock_library_apklib_4.1.0/res, --auto-add-overlay, -I, C:\Program Files (x86)\Android-SDK\platforms\android-15\android.jar]
[INFO] C:\Program Files (x86)\Android-SDK\platform-tools\aapt.exe [package, -m, -J, C:\repository\myapp\target\generated-sources\r, --custom-package, com.actionbarsherlock, -M, C:\repository\myapp\AndroidManifest.xml, -S, C:\repository\myapp\res, -S, C
:\repository\myapp\target\unpack\apklibs/com.actionbarsherlock_library_apklib_4.1.0/res, --auto-add-overlay, -I, C:\Program Files (x86)\Android-SDK\platforms\android-15\android.jar]
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ myapp ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\repository\myapp\src\main\resources
[INFO] skip non existing resourceDirectory C:\repository\myapp\target\generated-sources\extracted-dependencies\src\main\resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ myapp ---
[INFO] Compiling 130 source files to C:\repository\myapp\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \repository\myapp\target\unpack\apklibs\com.actionbarsherlock_library_apklib_4.1.0\src\com\actionbarsherlock\internal\widget\IcsAdapterView.java:[31,33] cannot find symbol
symbol  : class AccessibilityNodeInfo
location: package android.view.accessibility
.....
[ERROR] \repository\myapp\target\unpack\apklibs\com.actionbarsherlock_library_apklib_4.1.0\src\com\actionbarsherlock\internal\ActionBarSherlockNative.java:[232,55] cannot find symbol
symbol  : class ActionMode
location: package android.view
.....
[ERROR] \repository\myapp\target\unpack\apklibs\com.actionbarsherlock_library_apklib_4.1.0\src\com\actionbarsherlock\internal\nineoldandroids\widget\NineLinearLayout.java:[62,17] cannot find symbol
symbol  : method setTranslationX(float)
location: class android.widget.LinearLayout
......
[ERROR] \repository\myapp\target\unpack\apklibs\com.actionbarsherlock_library_apklib_4.1.0\src\com\actionbarsherlock\internal\widget\IcsAdapterView.java:[878,4] method does not override or implement a method from a supertype
[INFO] 100 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.225s
[INFO] Finished at: Thu Jun 14 22:00:04 CEST 2012
[INFO] Final Memory: 15M/175M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project myapp: Compilation failure: Compilation failure:
[ERROR] \repository\myapp\target\unpack\apklibs\com.actionbarsherlock_library_apklib_4.1.0\src\com\actionbarsherlock\internal\widget\IcsAdapterView.java:[31,33] cannot find symbol
[ERROR] symbol  : class AccessibilityNodeInfo
[ERROR] location: package android.view.accessibility
[ERROR] \repository\myapp\target\unpack\apklibs\com.actionbarsherlock_library_apklib_4.1.0\src\com\actionbarsherlock\internal\widget\IcsAdapterView.java:[893,50] cannot find symbol
[ERROR] symbol  : class AccessibilityNodeInfo
[ERROR] location: class com.actionbarsherlock.internal.widget.IcsAdapterView<T>
.....
[ERROR] symbol  : class FragmentTransaction
[ERROR] location: package android.app
[ERROR] \repository\myapp\target\unpack\apklibs\com.actionbarsherlock_library_apklib_4.1.0\src\com\actionbarsherlock\internal\widget\IcsAdapterView.java:[67,32] cannot find symbol
[ERROR] symbol  : variable HONEYCOMB
[ERROR] location: class android.os.Build.VERSION_CODES
[ERROR] \repository\myapp\target\unpack\apklibs\com.actionbarsherlock_library_apklib_4.1.0\src\com\actionbarsherlock\internal\widget\ActionBarView.java:[201,34] cannot find symbol
......
[ERROR] symbol  : variable ICE_CREAM_SANDWICH
[ERROR] location: class android.os.Build.VERSION_CODES
[ERROR] \repository\myapp\target\unpack\apklibs\com.actionbarsherlock_library_apklib_4.1.0\src\com\actionbarsherlock\internal\widget\ActionBarView.java:[1318,21] cannot find symbol

My pom.xml

<project>
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.company.android</groupId>
    <artifactId>myapp</artifactId>
    <version>0.1-SNAPSHOT</version>
    <packaging>apk</packaging>

    <dependencies>
        <dependency>
            <groupId>com.google.android</groupId>
            <artifactId>android</artifactId>
            <version>2.2.1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.actionbarsherlock</groupId>
            <artifactId>library</artifactId>
            <version>4.1.0</version>
            <type>apklib</type>
        </dependency>
    </dependencies>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <java.version>1.6</java.version>
        <android.home>C:\Program Files (x86)\Android-SDK</android.home>
        <android.version>4.0.3</android.version>
        <android.platform>15</android.platform>
        <android-support.version>r7</android-support.version>
        <android-maven.version>3.1.1</android-maven.version>
        <junit.version>4.10</junit.version>
    </properties>

    <build>
        <sourceDirectory>src</sourceDirectory>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.8</version>
            </plugin>

            <plugin>
                <groupId>com.jayway.maven.plugins.android.generation2</groupId>
                <artifactId>android-maven-plugin</artifactId>
                <version>${android-maven.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <sdk>
                        <path>${android.home}</path>
                        <platform>${android.platform}</platform>
                    </sdk>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T21:40:26+00:00Added an answer on June 5, 2026 at 9:40 pm

    You need to compile against ICS. Change your android dependency version to 4.0.1.2.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to compile a small OpenCV program using Eclipse. I'm limited in library
I'm trying to compile and run a Java3D project on my mac and having
So I keep getting this error when trying to compile C++ code using CodeBlocks.
I'm trying to avoid having compile errors block the whole ASP site while we
I'm having trouble using variables in my SQL WHERE clause. I'm getting this error:
Having this code: using (BinaryWriter writer = new BinaryWriter(File.Open(ProjectPath, FileMode.Create))) { //save something here
I'm having trouble with an Expect regular expression. I'm trying to match on this
I'm trying to get started using agsXMPP , but I'm having some problems. I'm
I am trying to run this example http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/doc/PoolingDataSourceExample.java?view=markup but somehow I am not able
I'm creating a Mavenised Grails project but am having trouble running the maven install

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.