# Error building for Android

**URL:** <https://forums.fusetools.com/t/error-building-for-android/3925>\
**Category:** General\
**Created:** [August 9, 2017, 11:22am UTC](https://forums.fusetools.com/t/error-building-for-android/3925 "2017-08-09T11:22:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ana\_Almeida](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Ana\_Almeida](https://forums.fusetools.com/u/Ana_Almeida)\
**Post date:** [August 9, 2017, 11:22am UTC](https://forums.fusetools.com/t/error-building-for-android/3925/1 "2017-08-09T11:22:49Z")

</div>

Hi guys,

I’m getting this error when I try to build my app for Android.  
I’m using [Google Analytics Package](https://github.com/ErickTamayo/fuse-google-analytics) so I’m running the following command

`fuse build -t=android -DGRADLE -run`

I get this error

```auto
Uno 1.1.3 (build 5510) macOS 10.12 i386 933ea5b
Configuring (1.2 s)
Compiling syntax tree (3.1 s)
Generating code and data (8.6 s)
Building Android app
2/2: fuse-tim-phone-employee.apk
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> The 'java' plugin has been applied, but it is not compatible with the Android plugins.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
## 2/2: fuse-tim-phone-employee.apk
Defining custom 'clean' task when using the standard Gradle lifecycle plugins has been deprecated and is scheduled to be removed in Gradle 3.0
BUILD FAILED
Total time: 3.1 secs
(unknown): E0200: Android build failed
(3.7 s)
Build completed in 16.61 seconds
    1 error
fuse: Errors were encountered while building the project

```

I already did a `uno clean` and a `fuse install android`.

Can anyone help me find out what is wrong?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [August 9, 2017, 11:27am UTC](https://forums.fusetools.com/t/error-building-for-android/3925/2 "2017-08-09T11:27:08Z")

</div>

Which Fuse version are you on? Passing `-DGRADLE` is not necessary on the latest Fuse, since Android builds are by default made using Gradle for a good while now.

What happens if you run `fuse build -t=android -run`?

---

<div class="post-metadata">

**Author:** ![Ana\_Almeida](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Ana\_Almeida](https://forums.fusetools.com/u/Ana_Almeida)\
**Post date:** [August 9, 2017, 2:32pm UTC](https://forums.fusetools.com/t/error-building-for-android/3925/3 "2017-08-09T14:32:19Z")

</div>

Hi Uldis,

I’m using Fuse version 1.1.1 (build 13893).

I’ve tried that too. I tested on another computer with same OS and it worked well. Is anything that can cause this in specific computers?

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [August 9, 2017, 2:34pm UTC](https://forums.fusetools.com/t/error-building-for-android/3925/4 "2017-08-09T14:34:41Z")

</div>

Well the best we see is that error message:

```auto
The 'java' plugin has been applied, but it is not compatible with the Android plugins.

```

If you have access to a similar system that builds the project fine, I’d check the versions of Java, Android packages etc. That should be a good starting point.
