Problem building for Android (PC)

I am trying to update an old app and are having some problems.

On PC Export → Export for Android in Fuse 1.10 or tries fuse build --target=Android it fails trying to install dependency https://www.nuget.org/api/v2/package/uno-base-android-static-armv7/0.8.730.

If I use Fuse X beta 10 it builds and installs preview on my phone, but I am unable to use the command line to build a release version.

Any tips on how to resolve this?

Can you use the uno command on the CLI ? if yes, what it said when you run uno --version if it print version 2.0 then you’re using uno from Fuse X.

In order to build the app from the command line you can use uno command: uno build android or uno build ios. You can pass -c option to make a release version ex: uno build android -c release

See available options on uno command: uno --help or uno build --help

Hi Hassan,

Than you for your answer.

I got it working by installing fuse-libs and uno in the project and android-build-tools globally using npm and then run uno using an npm script.

I actually had this in my notes from last time, but was too quick when skimming through them and missed it. :roll_eyes: :grinning_face_with_smiling_eyes:

hi wodger ,
thanks for your comment it helped me a lot as i’m new to fuse but have proplem hope you can help me solve it .
i’ve and old project fomr 2017 and i’m trying to export this project to android but i get this error and i don’t exactly what’s wrong
here’s the log :

Uno 2.0.0-beta.12 (build 914) Windows 10 x64 4888845
Copyright (C) 2018-present Fuse Open

Configuring  5.86 s
Compiling syntax tree  1.85 s
Generating code and data  10.84 s
Building android app (debug)
D:\iSaghaMobileApp-master\build\android\debug\app\src\main\java\com\foreign\ExternedBlockHost.java:2399: error: method RegistrationIDUpdated(String) is already defined in class ExternedBlockHost
    public static void RegistrationIDUpdated(final String regid)
                       ^
D:\iSaghaMobileApp-master\build\android\debug\app\src\main\java\com\fuse\firebase\Notifications\PushNotificationIDService.java:4: error: cannot find symbol
import com.google.firebase.iid.FirebaseInstanceIdService;
                              ^
  symbol:   class FirebaseInstanceIdService
  location: package com.google.firebase.iid
D:\iSaghaMobileApp-master\build\android\debug\app\src\main\java\com\fuse\firebase\Notifications\PushNotificationIDService.java:6: error: cannot find symbol
public class PushNotificationIDService extends FirebaseInstanceIdService
                                               ^
  symbol: class FirebaseInstanceIdService
D:\iSaghaMobileApp-master\build\android\debug\app\src\main\java\com\fuse\firebase\Notifications\PushNotificationReceiver.java:3: error: cannot find symbol
import android.support.v4.app.NotificationCompat;
                             ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
D:\iSaghaMobileApp-master\build\android\debug\app\src\main\java\com\foreign\Firebase\AdMob\AndroidGADBannerView.java:35: error: cannot find symbol
        AdView adView = new AdView(com.isagha.isagha.iSagha.GetRootActivity());
                                                           ^
  symbol:   method GetRootActivity()
  location: class iSagha
D:\iSaghaMobileApp-master\build\android\debug\app\src\main\java\com\foreign\HomeScreen.java:29: error: cannot find symbol
        android.app.Activity a = com.isagha.isagha.iSagha.GetRootActivity();
                                                         ^
  symbol:   method GetRootActivity()
  location: class iSagha
D:\iSaghaMobileApp-master\build\android\debug\app\src\main\java\com\foreign\HomeScreen.java:39: error: cannot find symbol
        android.app.Activity a = com.isagha.isagha.iSagha.GetRootActivity();
                                                         ^
  symbol:   method GetRootActivity()
  location: class iSagha
D:\iSaghaMobileApp-master\build\android\debug\app\src\main\java\com\fuse\firebase\Notifications\PushNotificationIDService.java:8: error: method does not override or implement a method from a supertype
    @Override
    ^
D:\iSaghaMobileApp-master\build\android\debug\app\src\main\java\com\fuse\firebase\Notifications\PushNotificationReceiver.java:200: error: package NotificationCompat does not exist
        NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context)
                          ^
D:\iSaghaMobileApp-master\build\android\debug\app\src\main\java\com\fuse\firebase\Notifications\PushNotificationReceiver.java:200: error: package NotificationCompat does not exist
        NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context)
                                                                               ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
10 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 22s
Using C:\Android\sdk\cmake\3.10.2.4988404
This app only has 32-bit [armeabi-v7a] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:compileDebugAidl NO-SOURCE
> Task :app:checkDebugManifest
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig
> Task :app:mainApkListPersistenceDebug
> Task :app:javaPreCompileDebug
> Task :app:generateDebugResValues
> Task :app:generateDebugResources

> Task :app:processDebugGoogleServices
Parsing json file: D:\iSaghaMobileApp-master\build\android\debug\app\google-services.json

> Task :app:createDebugCompatibleScreenManifests
> Task :app:processDebugManifest
> Task :app:mergeDebugResources
> Task :app:processDebugResources

> Task :app:compileDebugJavaWithJavac

> Task :app:compileDebugJavaWithJavac FAILED
11 actionable tasks: 11 executed
(unknown): E0200: android build failed
> 23.79 s

Build failed in 42.36 seconds
    1 error