Hi!
I have just install Uno ( sudo npm install -g @fuse-open/uno
) and fuselibs (npm install @fuse-open/fuselibs). but now i want to use command like fuse preview -tandroid or fuse build -tandroid withoud fuseStudio. how can do? need help please.
sudo apt install mono-devel
sudo npm install -g @fuse-open/uno
npm install @fuse-open/fuselibs
these are my errors when i try uno build command
/Documents/fuse/lorem$ uno build
Uno 1.11.1 (build 253) Linux 5.0 x86_64 376e6e9
Copyright © 2018-present Fuse Open
Configuring 0.55 s
Installing dependencies
stuff: GET https://www.nuget.org/api/v2/package/fuselibs-desktop-fonts/1.0.0
stuff: GET https://www.nuget.org/api/v2/package/FuseOpen.Xamarin.Mac/3.4.0.2
13.72 s
Compiling syntax tree 2.41 s
Generating code and data
lorem.unoproj: E3503: No non-abstract application classes found in project
1.03 s
Build completed in 17.72 seconds
1 error
need help please!
Thanks
Make sure you have <App>
tag in your file inside your project
1 Like
I don’t know where this error come from
/Documents/fuse/lorem$ uno build -tandroid -vvv
Uno 1.11.1 (build 253) Linux 5.0 x86_64 376e6e9
Copyright © 2018-present Fuse Open
Configuring
Project file: lorem.unoproj
Search paths: ../node_modules/@fuse-open/fuselibs/Source/build, /usr/local/lib/node_modules/@fuse-open/uno/lib/build
include MainView.ux; type: UX
76.35 ms Uno.Build.Packages.PackageCache
130.46 ms
Target is up-to-date -- stopping build (pass --force to override)
Building Android app
bash build.sh (in build/Android/Debug)
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine java version from '11.0.2'.
* 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
(exit code: 1)
(unknown): E0200: Android build failed
754.94 ms
Build completed in 0.89 seconds
1 error
This is my java version
$ java -version
java version "11.0.2" 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)
My Java Installation PATH
$ echo $JAVA_HOME
/usr/bin/java
Development on Android only supports using java version <=8. More info here
You have to downgrade your java
I have installed OpenJDK-8 on my ubuntu, and now my problem with java 8 is resolve.
But i have this
Warning: License for package Android SDK Build-Tools 27.0.3 not accepted.
Warning: License for package Android SDK Platform 26 not accepted.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
platforms;android-26 Android SDK Platform 26
build-tools;27.0.3 Android SDK Build-Tools 27.0.3
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
Using Android SDK: /home/dell/Documents/fuse/lorem/build/Android/Debug
* 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 1m 0s
How can i accept Licence for Android SDK?
Thanks
try this : yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses
Thanks, i have build my first android App with fuse on my Linux Ubuntu .
But now when i open my sublime Text 3 (with fuse sublime text package installed) i have this errors
. How can i resolve it?
My Config:
Linux Ubuntu 19.04
Sublime text 3.2.1 Build 3207
Product information
Product.Commit 376e6e921f0b3985e603bc1dd16517580ed8226e
Product.Version 1.11.1.253
Runtime environment
Environment.OSVersion Unix 5.0.0.15
Environment.Version 4.0.30319.42000
fuselibs version “1.11.3”
Thanks
Fuse Studio where Fuse command line live is not yet available in Linux
1 Like