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 8907481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:55:41+00:00 2026-06-15T02:55:41+00:00

I have a project which targetVersion is 16 and I’m using SherlockActionBar and support-library

  • 0

I have a project which targetVersion is 16 and I’m using SherlockActionBar and support-library for supporting down to API-level 8. I am trying to integrate CarouselView to my project. I am planning to use CarouselView for supported versions and pageViewer for other version. I am using Jetbrains IDEA for development. Normally I can build and deploy my application without any problem using IDEA. However I can’t build the application using android-tools. Resulting error is at the bottom.

While investigating the error I realized that renderscript triest compile with api-level 8. I looked at the %sdk.dir%\tools\ant\build.xml and see that renderscript target uses project.minSdkVersion for targetApi. Is this a bug or what?

<renderscript executable="${renderscript}"
            includePathRefId="android.renderscript.include.path"
            genFolder="${gen.absolute.dir}"
            resFolder="${out.res.absolute.dir}/raw"
            targetApi="${project.minSdkVersion}"
            optLevel="${renderscript.opt.level}"
            buildType="${build.is.packaging.debug}"
            previousBuildType="${build.last.is.packaging.debug}">
        <source path="${source.absolute.dir}"/
</renderscript> 

-code-gen:

[mergemanifest] Found Deleted Target File [mergemanifest] Merging
AndroidManifest files into one. [mergemanifest] Manifest merger
disabled. Using project manifest only.
[echo] Handling aidl files…
[aidl] No AIDL files to compile.
[echo] ———-
[echo] Handling RenderScript files… [renderscript] Found 1 RenderScript files.
[renderscript] Compiling 1 RenderScript files with -target-api 8 [renderscript] Optimization Level: 0 [llvm-rs-cc.exe]
D:\Projects\TEB\teb\src\com\pozitron\teb\customwidgets\carousel\carousel.rs:236:14:
error: structs containing vectors of dimension 3 cannot be exported at
this API level: ‘carouselPlane’ [llvm-rs-cc.exe]
D:\Projects\TEB\teb\src\com\pozitron\teb\customwidgets\carousel\carousel.rs:242:17:
error: structs containing vectors of dimension 3 cannot be exported at
this API level: ‘carouselCylinder’ [llvm-rs-cc.exe]
D:\Projects\TEB\teb\src\com\pozitron\teb\customwidgets\carousel\carousel.rs:254:21:
error: structs containing vectors of dimension 3 cannot be exported at
this API level: ‘cardVertices’ [llvm-rs-cc.exe]
D:\Projects\TEB\teb\src\com\pozitron\teb\customwidgets\carousel\carousel.rs:262:26:
error: structs containing vectors of dimension 3 cannot be exported at
this API level: ‘camera’ [llvm-rs-cc.exe]
D:\Projects\TEB\teb\src\com\pozitron\teb\customwidgets\carousel\carousel.rs:1503:20:
error: structs containing vectors of dimension 3 cannot be exported
at this API level: ‘p’ [llvm-rs-cc.exe]
D:\Projects\TEB\teb\src\com\pozitron\teb\customwidgets\carousel\carousel.rs:1045:9:
error: structs containing vectors of dimension 3 cannot be exported at
this API level: ‘ray’ [llvm-rs-cc.exe]
D:\Projects\TEB\teb\src\com\pozitron\teb\customwidgets\carousel\carousel.rs:1092:9:
error: structs containing vectors of dimension 3 cannot be exported at
this API level: ‘ray’ [llvm-rs-cc.exe] D:\Proj [llvm-rs-cc.exe]
ects\TEB\teb\src\com\pozitron\teb\customwidgets\carousel\carousel.rs:1503:20:
error: structs containing vectors of dimension 3 c [llvm-rs-cc.exe]
annot be exported at this API level: ‘p’ [llvm-rs-cc.exe]
D:\Projects\TEB\teb\src\com\pozitron\teb\customwidgets\carousel\carousel.rs:1781:17:
error: structs containing vectors of dimension 3 cannot be exported
at this API level: ‘ray’

BUILD FAILED D:\Android\android-sdk\tools\ant\build.xml:645: The
following error occurred while executing this line:
D:\Android\android-sdk\tools\ant\build.xml:665: null returned: 1

edit: As Selvin suggested I copied renderscript folder and llvm-rs-cc.exe from older version. Now I got the following error:

[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
[renderscript] Found 1 RenderScript files.
[renderscript] Compiling 1 RenderScript files with -target-api 8
[renderscript] Optimization Level: 0
[llvm-rs-cc.exe] Generating ScriptC_carousel.java ...
[llvm-rs-cc.exe] Generating ScriptField_ProgramStore_s.java ...
[llvm-rs-cc.exe] Generating ScriptField_Card.java ...
[llvm-rs-cc.exe] Generating ScriptField_FragmentShaderConstants_s.java ...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Found Deleted Target File
     [aapt] Generating resource IDs...

BUILD FAILED
D:\Android\android-sdk\tools\ant\build.xml:645: The following error occurred while executing this line:
D:\Android\android-sdk\tools\ant\build.xml:683: java.lang.IllegalAccessError: tried to access class com.google.common.base.Platform from class com.google.common.base.CharMatcher
        at com.google.common.base.CharMatcher.precomputed(CharMatcher.java:684)
        at com.google.common.base.CharMatcher.<clinit>(CharMatcher.java:63)
        at com.google.common.base.Splitter.on(Splitter.java:129)
        at com.android.sdklib.internal.build.SymbolWriter.write(SymbolWriter.java:51)
        at com.android.ant.AaptExecTask.execute(AaptExecTask.java:711)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
        at com.android.ant.IfElseTask.execute(IfElseTask.java:120)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
  • 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-15T02:55:42+00:00Added an answer on June 15, 2026 at 2:55 am

    i’ve got the same problem…

    i assuming that you’re using newest SDK (21) with platform tool 16…

    from this version render script doesn’t like structures like

    typedef struct Ray_s {
        float3 position;
        float3 direction;
    } Ray;
    

    with float3…
    so download older platform tools from:

    http://dl.google.com/android/repository/platform-tools_r15_rc9-linux.zip

    http://dl.google.com/android/repository/platform-tools_r15_rc9-windows.zip

    http://dl.google.com/android/repository/platform-tools_r15_rc9-macosx.zip

    make copy of your

    C:\adsdk\platform-tools\llvm-rs-cc.exe <= this file

    and

    C:\adsdk\platform-tools\renderscript <= whole folder

    and replace them with the ones from zip

    OR

    replace float3 with float4 in render script and do other code change(i’m pretty sure that changing only float3 to float4 will not work)

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

Sidebar

Related Questions

I have project in which I want to use check library for unit testing.
I have a project which is using umbraco cms, ie. MSSQL (Now we are
I have a project which I am working on which is a library .
I have a project which is source controlled using Subversion and VisualSVN. Since the
We have a project which uses serialization by implementing ISerializable and using BinaryFormatter. We
I have library project which referred by many applications. Now I got a new
I have a project which uses the ActionBarSherlock library. When I run Lint on
I have a project which I build using SCons (and MinGW/gcc depending on the
I have a project which has some lib's associated with it (in Build Path).
I have a project which uses groovy 1.7.5 and grails 1.3.4. but my new

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.