Mess with Fuse and Android

All started from tying to run QRReader on Android device… I am on Mac.

No resource found that matches the given name (at 'theme' with value '@style/Theme.AppCompat').

I spent whole day to resolve it, then install Fuse 0.34 and error gone. But QRreader didn’t recognize anything (
iOS version working great.

Then I remove Android Studio, reinstall it, and install Fuse 0.33. Everything the same…
I install Fuse 0.35 again and my old project not run even in local preview! I can se only Loading on the screen…

How can I totally remove Fuse and Android and reinstall it again?
Already tried you remove fuse script.

Help me to start from scratch

Hey dima,

As I asked in slack. Please provide:

  • A link to the project you are having issues with.
  • info on how you are building the project (if from command line then show the full command you run)
  • the FULL build log

Hey Chris,

The project https://github.com/zean00/fuse-qreader

The log

Dmitrys-iMac-2:fuse-qreader-master ideveloper$ fuse install android
Fuse 0.35.0 (build 10867)
# Starting android installer
# Done installing android
Dmitrys-iMac-2:fuse-qreader-master ideveloper$ 

Dmitrys-iMac-2:fuse-qreader-master ideveloper$ fuse preview -tandroid
Fuse 0.35.0 (build 10867)
Build started: FullCompile
Configuring (2.9 s)
Compiling syntax tree (2.3 s)
Generating code and data (9.0 s)
Building Android app
1/2: libQreaderLibrary.so
2/2: QreaderLibrary.apk

BUILD FAILED
/Users/ideveloper/Downloads/fuse-qreader-master/build/Android/Preview/QreaderLibrary/app/src/main/build.xml:90: Cannot find /Users/ideveloper/Library/Android/sdk/tools/ant/build.xml imported from /Users/ideveloper/Downloads/fuse-qreader-master/build/Android/Preview/QreaderLibrary/app/src/main/build.xml

Total time: 0 seconds
## 1/2: libQreaderLibrary.so
BootstrapperImpl_Android.cpp
hb-ft-cached.cc
_root.g.cpp
_root.MainView.cpp
_root.Qreader.cpp
_root.QreaderImpl.cpp
_root.QreaderLibrary_FuseControlsTextControl_Value_Property.cpp
OpenGL.g.cpp
Uno.g.cpp
Uno.Collections.g.cpp
Uno.Compiler.g.cpp
Uno.Compiler.ExportTargetInterop.g.cpp
Uno.Compiler.ExportTargetInterop.Foreign.Android.g.cpp
Uno.Compiler.ExportTargetInterop.Android.g.cpp
Uno.Compiler.ImportServices.g.cpp
Uno.Compiler.ShaderGenerator.g.cpp
Uno.Content.Fonts.g.cpp
Uno.Content.Images.g.cpp
Uno.Content.Models.g.cpp
Uno.Content.Splines.g.cpp
Uno.Diagnostics.g.cpp
Uno.Graphics.g.cpp
Uno.IO.g.cpp
Uno.Platform.g.cpp
Uno.Platform.EventSources.g.cpp
Uno.Reflection.g.cpp
Uno.Runtime.Implementation.g.cpp
Uno.Runtime.Implementation.Internal.g.cpp
Uno.Runtime.Implementation.ShaderBackends.OpenGL.g.cpp
Uno.Runtime.InteropServices.g.cpp
Uno.Text.g.cpp
Uno.Threading.g.cpp
Uno.Time.g.cpp
Uno.Time.Calendars.g.cpp
Uno.Time.Text.g.cpp
Uno.UX.g.cpp
Uno.Geometry.g.cpp
Uno.Net.g.cpp
Uno.Net.Sockets.g.cpp
Uno.Net.Http.g.cpp
Uno.Net.Http.Implementation.g.cpp
Uno.Data.Xml.g.cpp
Uno.Testing.g.cpp
Java.g.cpp
Android.g.cpp
Android.Base.g.cpp
Android.Base.Primitives.g.cpp
Android.Base.Types.g.cpp
Android.Base.Wrappers.g.cpp
Android.com.fuse.ExperimentalHttp.g.cpp
Fuse.g.cpp
Fuse.Designer.g.cpp
Fuse.Platform.g.cpp
Fuse.Internal.g.cpp
Fuse.Internal.Drawing.g.cpp
Fuse.Animations.g.cpp
Fuse.Preview.g.cpp
Fuse.Input.g.cpp
Fuse.Input.UX.g.cpp
Fuse.Reactive.g.cpp
Fuse.Reactive.FuseJS.g.cpp
Fuse.Resources.g.cpp
Fuse.Scripting.g.cpp
Fuse.Scripting.V8.g.cpp
Fuse.Scripting.V8.Simple.g.cpp
Fuse.Motion.g.cpp
Fuse.Motion.Simulation.g.cpp
Fuse.Drawing.g.cpp
Fuse.Drawing.Internal.g.cpp
Fuse.Drawing.Tesselation.g.cpp
Fuse.Drawing.Tesselation.Collections.g.cpp
Fuse.Drawing.Batching.g.cpp
Fuse.Drawing.Meshes.g.cpp
Fuse.Drawing.Primitives.g.cpp
Fuse.Triggers.g.cpp
Fuse.Triggers.Actions.g.cpp
Fuse.Elements.g.cpp
Fuse.Elements.Internal.g.cpp
Fuse.Elements.UX.g.cpp
Fuse.Effects.g.cpp
Fuse.Controls.g.cpp
Fuse.Controls.Native.g.cpp
Fuse.Controls.Native.Android.g.cpp
Fuse.Controls.Native.iOS.g.cpp
Fuse.Controls.Graphics.g.cpp
Fuse.Controls.Primitives.g.cpp
Fuse.Controls.FallbackTextEdit.g.cpp
Fuse.Controls.FallbackTextRenderer.g.cpp
Fuse.Controls.FuseTextRenderer.g.cpp
Fuse.Controls.NavigationInternal.g.cpp
Fuse.Controls.VideoImpl.g.cpp
Fuse.Controls.VideoImpl.Android.g.cpp
Fuse.Gestures.g.cpp
Fuse.Gestures.Internal.g.cpp
Fuse.Navigation.g.cpp
Fuse.Layouts.g.cpp
Fuse.Text.g.cpp
Fuse.Text.Bidirectional.g.cpp
Fuse.Text.Bidirectional.Implementation.g.cpp
Fuse.Text.Edit.g.cpp
Fuse.Text.Implementation.g.cpp
Fuse.Android.g.cpp
Fuse.Android.Bindings.g.cpp
Fuse.Android.Controls.g.cpp
Fuse.Android.Controls.WebViewUtils.g.cpp
Fuse.iOS.g.cpp
Fuse.iOS.Bindings.g.cpp
Fuse.FileSystem.g.cpp
Fuse.Physics.g.cpp
Fuse.Selection.g.cpp
Fuse.Storage.g.cpp
Fuse.WebSocket.g.cpp
Experimental.Http.g.cpp
Experimental.Http.Internal.g.cpp
Experimental.Cache.g.cpp
Experimental.TextureLoader.g.cpp
Neovisionaries.g.cpp
Polyfills.Window.g.cpp
FuseJS.g.cpp
Outracks.Simulator.g.cpp
Outracks.Simulator.ByteFileSource.cpp
Outracks.Simulator.FileCache.cpp
Outracks.Simulator.GeneratedApplication.cpp
Outracks.Simulator.Bytecode.g.cpp
Outracks.Simulator.Protocol.g.cpp
Outracks.Simulator.Runtime.g.cpp
Outracks.Simulator.Runtime.SimulatedObjectTypeRegistry.cpp
Outracks.Simulator.Runtime.UxProperty-1.cpp
Outracks.Simulator.Runtime.UxTemplate.cpp
Outracks.Simulator.Reflection.g.cpp
Outracks.Simulator.Reflection.Native.g.cpp
Uno/_invoke.cpp
Uno/_mainMobile.cpp
Uno/Memory.cpp
Uno/ObjectModel.cpp
Uno/Support.cpp
Uno/Base64.cpp
Uno/Reflection.cpp
Uno/EntryPoints.cpp
Uno/JNIHelper.cpp
Source/pugixml.cpp
Uno/Graphics/GLHelper.cpp
Implementation/Cpp/posix_mutex.cpp
Implementation/Cpp/posix_reset_event.cpp
Implementation/Cpp/posix_semaphore.cpp
Implementation/Cpp/posix_thread.cpp

## 2/2: QreaderLibrary.apk
Buildfile: /Users/ideveloper/Downloads/fuse-qreader-master/build/Android/Preview/QreaderLibrary/app/src/main/build.xml
(unknown): E0200: Android build failed
?: Error E0200: Android build failed
(1:18)

Build completed in 92.57 seconds
    1 error
Build ended
fuse: Failed to compile project
 

Thanks, that’s very useful. Well the good news is that on our internal build for the next release the following works fine: uno build -tandroid -r QreaderLibrary.unoproj. However this doesnt cover preview, I will look into this next.

I’ll then look to see how this behaves on the previous release

Also the github says you should build like this: fuse build -t=android -DGRADLE -r QreaderLibrary.unoproj that -DGRADLE part in there is very important as that makes it build using gradle.

Your log shows you building with fuse preview -tandroid please try fuse preview -tandroid -DGRADLE and post the log here. Thanks!

fuse build -tandroid QreaderLibrary.unoproj -r

Fails with:

[echo] Handling Resources...
     [aapt] Generating resource IDs...
     [aapt] /Users/Baggers/Code/fuse-qreader/build/Android/Debug/QreaderLibrary/app/src/main/bin/AndroidManifest.xml:60: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.AppCompat').
     [aapt]
(31.0 s)

Which makes sense because we didnt follow the instructions:

fuse build -tandroid QreaderLibrary.unoproj -DGRADLE -r

works fine.

fuse preview -tandroid QreaderLibrary.unoproj -DGRADLE -r

also works fine. Hope this works for you.

Nope (

MacBook-Pro-Dmitry:fuse-qreader-master dmitrylisin$ fuse preview -tandroid QreaderLibrary.unoproj -DGRADLE -r
Fuse 0.35.0 (build 10867)
Build started: FullCompile
Configuring (2.6 s)
Compiling syntax tree (1.8 s)
Generating code and data (8.4 s)
Building Android app
2/2: QreaderLibrary.apk
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
ninja: error: '/Users/dmitrylisin/Library/Application', needed by '../obj/armeabi-v7a/libQreaderLibrary.so', missing and no known rule to make it


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:externalNativeBuildDebug'.
> Build command failed.
  Error while executing '/Users/dmitrylisin/Library/Android/sdk/cmake/3.6.3155560/bin/cmake' with arguments {--build /Users/dmitrylisin/Downloads/fuse-qreader-master/build/Android/Preview/QreaderLibrary/app/.externalNativeBuild/cmake/debug/armeabi-v7a --target QreaderLibrary}
  ninja: error: '/Users/dmitrylisin/Library/Application', needed by '../obj/armeabi-v7a/libQreaderLibrary.so', missing and no known rule to make it


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
## 2/2: QreaderLibrary.apk
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2340Library
:app:prepareComAndroidSupportAppcompatV72340Library
:app:prepareComAndroidSupportDesign2340Library
:app:prepareComAndroidSupportRecyclerviewV72340Library
:app:prepareComAndroidSupportSupportV42340Library
:app:prepareComAndroidSupportSupportVectorDrawable2340Library
:app:prepareComGoogleAndroidGmsPlayServicesBase921Library
:app:prepareComGoogleAndroidGmsPlayServicesBasement921Library
:app:prepareComGoogleAndroidGmsPlayServicesTasks921Library
:app:prepareComGoogleAndroidGmsPlayServicesVision921Library
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
:app:processDebugManifest
:app:processDebugResources
:app:generateDebugSources
:app:incrementalDebugJavaCompilationSafeguard
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
:app:generateJsonModelDebug
:app:externalNativeBuildDebug
  building /Users/dmitrylisin/Downloads/fuse-qreader-master/build/Android/Preview/QreaderLibrary/app/.externalNativeBuild/cmake/debug/obj/armeabi-v7a/libQreaderLibrary.so
:app:externalNativeBuildDebug FAILED

BUILD FAILED

Total time: 11.531 secs
(unknown): E0200: Android build failed
?: Error E0200: Android build failed
(12.3 s)

Build completed in 25.22 seconds
    1 error
Build ended
fuse: Failed to compile project
MacBook-Pro-Dmitry:fuse-qreader-master dmitrylisin$ 

Gotcha. That is a bug fixed in the next release. You can find the workaround near the bottom of this thread: https://github.com/cbaggers/Fuse.Firebase/issues/36