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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:05:50+00:00 2026-06-14T03:05:50+00:00

I am having trouble building a simple android project using Gradle. My build file

  • 0

I am having trouble building a simple android project using Gradle. My build file is below:

buildscript {
    repositories {
      mavenCentral()
      // To use a development snapshot version of the plugin, add the
      // Sonatype Snapshots repository.
      maven {
        url "https://oss.sonatype.org/content/repositories/snapshots"
      }
    }

    dependencies {
      classpath 'org.gradle.api.plugins:gradle-android-plugin:1.2.1'
    }
  }

  apply plugin: 'android'

  repositories {
      mavenCentral()
  }

  // Sets the package version
  version = "1.0.0"



  // Signing configuration, valid for all builds (1)
  androidSignAndAlign {
    keyStore = "path/to/my/keystore"
    keyAlias = "my-key-alias"
    keyStorePassword = "mystorepass"
    keyAliasPassword = "myaliaspass"
  }

  // Configure the filtering of resources with properties from the Gradle's project scope (2)
  processResources {
    expand (project.properties)
  }

  // Configure a dedicated debug build (3)
  task configureDebug << {
    jar.classifier = "debug"
  }

  // Configure a dedicated release build (4)
  task configureRelease << {
    proguard.enabled = true
  }

The error i get is this:

  11:08:24.812 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
11:08:24.822 [ERROR] [org.gradle.BuildExceptionReporter]
11:08:24.829 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
11:08:24.834 [ERROR] [org.gradle.BuildExceptionReporter] Build file 'C:\Users\Work\AndroidProjects\RssUnified\build.gradle' line: 114
11:08:24.840 [ERROR] [org.gradle.BuildExceptionReporter]
11:08:24.845 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
11:08:24.850 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred evaluating root project 'RssUnified'.
11:08:24.855 [ERROR] [org.gradle.BuildExceptionReporter] > For input string: "21 rc11"
11:08:24.864 [ERROR] [org.gradle.BuildExceptionReporter]
11:08:24.870 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
11:08:24.875 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'RssUnified'.
11:08:24.880 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFac
tory.java:54)
11:08:24.885 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.jav
a:127)

using gradle 1.2

edit: here is my layout xml file

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

</RelativeLayout>

And here is the actvivity

public class RssListActivity extends Activity {

    /*
     * (non-Javadoc)
     * @see android.app.Activity#onCreate(android.os.Bundle)
     */
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.list_activity_layout);
    }

}

Project structure below:

├───.gradle
│   └───1.2
│       └───taskArtifacts
├───assets
├───bin
│   ├───classes
│   │   └───com
│   │       ├───jr
│   │       │   ├───screenLogic
│   │       │   └───screens
│   │       └───richy
│   │           └───rssunified
│   └───res
├───build
│   └───gen
│       └───com
│           └───richy
│               └───rssunified
├───gen
│   └───com
│       └───richy
│           └───rssunified
├───res
│   ├───drawable-hdpi
│   ├───drawable-ldpi
│   ├───drawable-mdpi
│   ├───drawable-xhdpi
│   ├───layout
│   ├───values
│   ├───values-v11
│   └───values-v14
└───src
    └───com
        └───jr
            ├───screenLogic
            └───screens

Here is what is in the root folder of the project

AndroidManifest.xml  assets  bin  build  build.gradle  gen  gradle.properties  ic_launcher-web.png  local.properties  project.properties  res  src

And finaly the android manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.richy.rssunified"
    android:versionCode="1"
    android:versionName="1.0">

    <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" />

    <application android:label="@string/app_name"
        android:icon="@drawable/ic_launcher"
        android:theme="@style/AppTheme">

    </application>

</manifest>

Local.properties

sdk.dir = C:/Program Files (x86)/Android/android-sdk

project.properties

# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-15

edit:

i have reverted back to older version of the adt/sdk plugins and managed to fix the issues above, however after i did that, i now get the above error below:

15:24:24.558 [LIFECYCLE] [org.gradle.TaskExecutionLogger] :androidProcessResources FAILED
15:24:24.571 [ERROR] [org.gradle.BuildExceptionReporter]
15:24:24.575 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
15:24:24.582 [ERROR] [org.gradle.BuildExceptionReporter]
15:24:24.588 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
15:24:24.597 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':androidProcessResources'.
15:24:24.602 [ERROR] [org.gradle.BuildExceptionReporter] > Unexpected internal error near index 1
15:24:24.607 [ERROR] [org.gradle.BuildExceptionReporter]   \
15:24:24.613 [ERROR] [org.gradle.BuildExceptionReporter]    ^
15:24:24.621 [ERROR] [org.gradle.BuildExceptionReporter]
15:24:24.626 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
15:24:24.631 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':androidProcessResources'.
15:24:24.636 [ERROR] [org.gradle.BuildExceptionReporter]        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecu
ter.java:68)
  • 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-14T03:05:51+00:00Added an answer on June 14, 2026 at 3:05 am

    As is described in:
    http://tools.android.com/tech-docs/new-build-system/using-the-new-build-system#TOC-Working-with-and-Customizing-SourceSets

    Default sourceset location is under src/<sourceset>

    Your sourceset name is main so location is src/main

    Additionally, manifest property is described:

    manifest, type AndroidSourceFile, default location src/<sourceset>/AndroidManifest.xml

    I guess that declaration of manifest:

       manifest {
                    srcFile 'AndroidManifest.xml'
                }
    

    is same as default and ends up with location:

    src/main/AndroidManifest.xml
    

    which is listed in exception message.

    I think this is how gradle android plugin works.
    Correct me if I’m wrong, I don’t know Gradle.

    EDIT

    Ok, now I know what’s wrong. Your build script mixes settings from two different plugins.

    Change:

    classpath 'com.android.tools.build:gradle:0.1'
    

    to

    classpath 'org.gradle.api.plugins:gradle-android-plugin:1.2.1'
    

    Remove android block, but keep the body.

    Remove sourceSets block with body.

    Then it should work, I tested it this time.

    EDIT 2

    This is Windows related bug, fixed 6 days ago:

    https://github.com/jvoegele/gradle-android-plugin/pull/89

    that what you can do is to download latest plugin version

    git clone git://github.com/jvoegele/gradle-android-plugin.git
    

    and install it in local maven repository:

    gradle install
    

    then add mavenLocal() to repositories:

    repositories {
        mavenCentral()
        mavenLocal()
    }
    

    and change plugin version to the snapshot:

    dependencies {
        classpath 'org.gradle.api.plugins:gradle-android-plugin:1.2.2-SNAPSHOT'
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having trouble building my Java src code via a Jenkins project using
I am building a simple Android app, but I am having trouble getting the
I'm building a simple interpreter in python and I'm having trouble handling differing numbers
I'm building an application in ruby using the sinatra framework and am having trouble
I'm building my first simple Windows Phone app. I'm having some trouble though. I'm
I am having trouble getting a png file to display in a simple Flash
I'm having trouble building a simple c++ program that tests out regex's from the
I am building a simple 3D game for practice, and I am having trouble
Following up from my solved [previous issue][1], I'm having trouble building a simple HTML
I'm building a simple web-based RSS reader in Python, but I'm having trouble parsing

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.