Error on compilation

The problem occurs with all projects (i.e. the new ones and the downloaded samples). This started happening only since last two days. Probably, after I updated the fuse tools to the latest version. Also, I applied the latest patch for android studio 2.1.*(just fyi, in case it matters).

Current fuse version on my machine: Fuse version 0.12.4 (build 6406)

On running with fuse build --target=Android --run -v, here’s the output:

Uno 0.27.19 (build 2575) Windows 10 x86 125974c

Configuring
Project file: fp1.unoproj
Search paths: C:\Program Files (x86)\Fuse\Packages, C:\ProgramData\Uno\Packages
Packages:     UnoCore (0.27.22), Uno.Collections (0.27.3), ObjC (0.27.2), Experimental.iOS (0.27.2), Uno.Geometry (0.27.3), Uno.Threading (0.27.22), Uno.Net.Sockets (0.27.3), Fuse.Designer (0.27.16), FuseCore (0.27.16), Experimental.Physics (0.27.16), Fuse.Animations (0.27.16), Fuse.Drawing (0.27.16), Fuse.Drawing.Batching (0.27.16), Fuse.Drawing.Meshes (0.27.16), Fuse.Drawing.Planar (0.27.16), Android (0.27.4), Experimental.TextureLoader (0.27.3), Uno.Net.Http (0.27.22), Experimental.Http (0.27.16), Fuse.Scripting (0.27.16), Fuse.Triggers (0.27.16), Fuse.Elements (0.27.16), Fuse.Drawing.Primitives (0.27.16), Fuse.Drawing.Polygons (0.27.16), Fuse.Drawing.Paths (0.27.16), Fuse.Entities (0.27.16), Fuse.Gestures (0.27.16), Fuse.Navigation (0.27.16), Uno.Data.Json (0.27.3), Uno.Testing (0.27.22), Fuse.Camera (0.27.16), Fuse.GeoLocation (0.27.16), Fuse.Launcher (0.27.16), Fuse.Scripting.Duktape (0.27.16), Fuse.Scripting.JavaScriptCore (0.27.16), Fuse.Scripting.Jurassic (0.27.16), Fuse.Scripting.V8 (0.27.16), Fuse.Storage (0.27.16), Fuse.UserEvents (0.27.16), Fuse.Vibration (0.27.16), Fuse.Reactive (0.27.16), Fuse.Shapes (0.27.16), Fuse.Controls (0.27.16), Fuse.Effects (0.27.16), Fuse.Physics (0.27.16), Fuse.BasicTheme (0.27.16), Fuse.Video (0.27.16), Fuse.Themes (0.27.16), Fuse.Android (0.27.16), Fuse.Desktop (0.27.16), Fuse.iOS (0.27.16), fp1 (0.0.0)
Output dir:   build\Android\Debug
(13,506.84 ms)

Compiling syntax tree (29,461.71 ms)
Generating code and data
 309 namespaces stripped.
 5082 types stripped.
 47323 fields stripped.
 102102 functions stripped.
 582 classes sealed.
 1104 functions sealed.
* 195 functions stripped from vtable.
(53,669.20 ms)

Building Android app
1/2: libfp1.so


2/2: fp1.apk
Buildfile: F:\My Programs\Fuse Stuffs\Projects\fp1\build\Android\Debug\fp1\app\src\main\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 24.4.1
 [checkenv] Installed at C:\Users\Pratik\AppData\Local\Android\sdk

-setup:
     [echo] Project Name: fp1
  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.2
     [echo] Resolving Build Target for fp1...
[gettarget] Project Target:   Android 5.0.1
[gettarget] API level:        21
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: F:\My Programs\Fuse Stuffs\Projects\fp1\build\Android\Debug\fp1\app\src\main\bin\rsObj
    [mkdir] Created dir: F:\My Programs\Fuse Stuffs\Projects\fp1\build\Android\Debug\fp1\app\src\main\bin\rsLibs
     [echo] ----------
     [echo] Resolving Dependencies for fp1...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] 
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-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...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Found Deleted Target File
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 76 source files to F:\My Programs\Fuse Stuffs\Projects\fp1\build\Android\Debug\fp1\app\src\main\bin\classes
    [javac] public class fp1 extends android.app.Activity implements ActivityCompat.OnRequestPermissionsResultCallback
    [javac]                                                                        ^
    [javac]   symbol:   class OnRequestPermissionsResultCallback
    [javac]   location: class ActivityCompat
    [javac]     @Override
    [javac]     ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 2 errors
    [javac] 3 warnings
(12,315.83 ms)

Build completed in 108.99 seconds.
    0 Warning(s)
    1 Error(s)

Same here in OSX. I had the error with 0.12.3 updated to 0.12.4 and the error keeps the same. My log:

-build-setup:
[getbuildtools] Using latest Build Tools: 22.0.1
     [echo] Resolving Build Target for testing...
[gettarget] Project Target:   Android 5.0.1
[gettarget] API level:        21
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /Volumes/Macintosh HD/dev/probando/testing/build/Android/Preview/testing/app/src/main/bin/rsObj
    [mkdir] Created dir: /Volumes/Macintosh HD/dev/probando/testing/build/Android/Preview/testing/app/src/main/bin/rsLibs
     [echo] ----------
     [echo] Resolving Dependencies for testing...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] 
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on
-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...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Found Deleted Target File
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
    [javac] Compiling 76 source files to /Volumes/Macintosh HD/dev/probando/testing/build/Android/Preview/testing/app/src/main/bin/classes
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] /Volumes/Macintosh HD/dev/probando/testing/build/Android/Preview/testing/app/src/main/java/com/testing/testing.java:56: error: cannot find symbol
    [javac] public class testing extends android.app.Activity implements ActivityCompat.OnRequestPermissionsResultCallback
    [javac]                                                                            ^
    [javac]   symbol:   class OnRequestPermissionsResultCallback
    [javac]   location: class ActivityCompat
    [javac] /Volumes/Macintosh HD/dev/probando/testing/build/Android/Preview/testing/app/src/main/java/com/testing/testing.java:341: error: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 2 errors
    [javac] 3 warnings
BUILD FAILED
/Users/david/Library/Android/sdk/tools/ant/build.xml:716: The following error occurred while executing this line:
/Users/david/Library/Android/sdk/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.
Total time: 2 seconds
(unknown): E0200: Android build failed
?: Error E0200: Android build failed
(3,448.00 ms)
Build completed in 52.68 seconds.
    0 Warning(s)
    1 Error(s)
jdk was found.
Checking if /Users/david/Library/Android/sdk exists.
/Users/david/Library/Android/sdk was found.
Checking if /Users/david/Library/Android/sdk/tools exists.
/Users/david/Library/Android/sdk/tools was found.
Checking if Android SDK is corrupt.
Checking if all required Android components are installed.
androidsdk was found.
Checking if /Users/david/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/ndk-build exists.
/Users/david/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/ndk-build was found.
Checking if /Users/david/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/toolchains exists.
/Users/david/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/toolchains was found.
Checking if /Users/david/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/prebuilt exists.
/Users/david/Library/Application Support/Fusetools/Fuse/Android/AndroidNDK/prebuilt was found.
androidndk was found.
Checking if /Users/david/Library/Application Support/Fusetools/Fuse/Android/Ant exists.
/Users/david/Library/Application Support/Fusetools/Fuse/Android/Ant was found.
Checking if Ant is corrupt
ant was found.
Build ended
fuse: Failed to compile project

Same here, Most of the projects seems not working in Android. They should also focus on Android platform like in iPhone.

Hey folks, sorry that you’ve been hit by this, it is rather odd as it looks like the support lib is being copied to the build folder. You can check this by looking in <your-project-dir/build/Android/Release/<your-project-name>/app/src/main/libs and seeing if you have the android-support-v4.jar there.

We have seen issues with the support library before though, which is odd as our scripts just call the default tools to download these.

If any of you could try the following and report back here whether it fixed the issue we would be super grateful.

  • Open the terminal/command-line
  • run uno android sdk. This should open the android SDK Manager that Fuse is using
  • Click the Deselect All link at the bottom of the SDK Manager.
  • Click the Updates link just above the Deselect All link
  • Check to see if the Android Support Library is marked for update. If it hasn’t been install please let us know and check the tick-box next to Android Support Library
  • Click the Install _ packages button.
  • Once the install is complete run a clean and then build your project Fuse project again.

Once again sorry this is happening, up until now we have seen this in very rare circumstances so any data you folks can provide will be immensely useful

Uninstalling the support library, and then re-installing it using the fuse SDK manager (uno android sdk) did the trick for me. The build now succeeds.

Thanks so much for following up on this. Glad to hear it is working.

@Anyone-Else-With-This-Issue: Please post a “Me too” comment below. It will really help us get a feel for who is getting hit by this.

It is really unsatisfying to us that we can’t roll out a real fix to all of you, we are holding out that somehow there is something we can do to mitigate this. Feel free to throw ideas at us!

Library updated through “uno android sdk” and working like a charm!