I’m no more able to build a APK. It worked fine up to yesterday but now I keep getting the following error:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
I build with the command: uno build --configuration=Release --target=Android --clean -v -l
. Following I report part of the verbose output of the process that in my opinion may be significant:
'Packages.SourcePaths' was not found in .unoconfig
...\Fuse.Controls.Primitives\0.47.7\textcontrols\fallbacktextrenderer\$.uno(166): W4139: Uno.Content.Fonts.CharacterSets is obsolete
...\Uno.Data.Json\0.47.4\source\$.uno(182): W4139: 'Uno.Data.Json.JsonReader.AsFloat()' is obsolete: 'Use AsNumber() instead'
...\Uno.Data.Json\0.47.4\source\$.uno(192): W4139: 'Uno.Data.Json.JsonReader.AsInteger()' is obsolete: 'Use AsNumber() instead'
...\UnoCore\0.47.13\source\uno\$.uno(95): W4139: 'Uno.Application.set_Window(Uno.Platform.Window)' is obsolete: 'Deprecated on mobile. Please interact with UI through fuselibs'
...\Fuse.Reactive.JavaScript\0.47.7\$.uno(1758): W4139: 'Uno.Application.get_Current()' is obsolete: 'Application.Current class is deprecated on mobile. Please use CoreApp.Current'
...\Fuse.Controls.Primitives\0.47.7\textcontrols\fallbacktextrenderer\$.uno(164): W4139: Uno.Content.Fonts.BitmapFont is obsolete
...\Fuse.Controls.Primitives\0.47.7\textcontrols\fallbacktextrenderer\$.uno(167): W4139: Uno.Content.Fonts.BitmapFont is obsolete.
...\Fuse.Controls.Primitives\0.47.7\textcontrols\fallbacktextrenderer\$.uno(65): W4139: Uno.Content.Fonts.BitmapFont is obsolete
...\Fuse.Controls.Primitives\0.47.7\textcontrols\fallbacktextrenderer\$.uno(184): W4139: Uno.Content.Fonts.TextTransform is obsolete
...\Fuse.Controls\0.47.7\$.uno(266): W4139: 'Fuse.Controls.Control.CreateNativeView()' is obsolete
...\Fuse.Android\0.47.7\$.uno(698): W4139: 'Uno.Application.get_Current()' is obsolete: 'Application.Current class is deprecated on mobile. Please use CoreApp.Current'
[...]
Running dex in-process requires build tools 23.0.2.
For faster builds update this project to use the latest build tools.
[...]
A problem occurred configuring project ':app'.
> java.lang.NullPointerException (no error message)
I updated Android SDK using fuse install Android
. I updated Java (don’t know if necessary). After updating I rebooted the PC and uno clean
the project. My project does not use any foreing code, external APIs, other complex things, etc. It simpy fetches data from a MySQL dB using an PHP API I made by myself and it worked fine up to yesterday.
The APK is actually built and saved in the /Release
folder but when I try to install it to my Huawei Honor 7 (Android 6.0) I get “APK not compatible” (from the Huawei’s PC software). As said, it worked fine.
The -Xlint:deprecation
option suggested by uno build
seems to not be present (I tried uno build --help
and it is not listed).
Preview works despite the errors:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
(Fuse 0.36.1, build 12010, Window 10 64bit)