Fuse Community

Have trouble with QReader with fuse X

Hi, I have been just integrate Qreader from zean00 repository GitHub - zean00/fuse-qreader: QR Code Reader for Fusetool to read qrcode, but every time that i want to compile to android (preview or debug) i have some issues. I have do this integration in the past (3 years) with fuse and everithing work fine, but now…not working.

Uno 2.0.0-beta.10 (build 897) Windows 10 x64 e9bd6aa
Copyright (C) 2018-present Fuse Open

Configuring  0.37 s
Target is up-to-date -- stopping build (pass --force to override)

Building android app (debug)
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:31: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
                                 ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:32: error: package android.support.design.widget does not exist
import android.support.design.widget.Snackbar;
                                    ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:33: error: cannot find symbol
import android.support.v4.app.ActivityCompat;
                             ^
  symbol:   class ActivityCompat
  location: package android.support.v4.app
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:34: error: package android.support.v7.app does not exist
import android.support.v7.app.AppCompatActivity;
                             ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:57: error: cannot find symbol
public final class BarcodeCaptureActivity extends AppCompatActivity {
                                                  ^
  symbol: class AppCompatActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\CameraSource.java:28: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
                                 ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\CameraSource.java:29: error: package android.support.annotation does not exist
import android.support.annotation.RequiresPermission;
                                 ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\CameraSource.java:30: error: package android.support.annotation does not exist
import android.support.annotation.StringDef;
                                 ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\CameraSourcePreview.java:21: error: package android.support.annotation does not exist
import android.support.annotation.RequiresPermission;
                                 ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\CameraSource.java:94: error: cannot find symbol
    @StringDef({
     ^
  symbol:   class StringDef
  location: class CameraSource
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\CameraSource.java:106: error: cannot find symbol
    @StringDef({
     ^
  symbol:   class StringDef
  location: class CameraSource
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:252: error: cannot find symbol
                                           @NonNull String[] permissions,
                                            ^
  symbol:   class NonNull
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:253: error: cannot find symbol
                                           @NonNull int[] grantResults) {
                                            ^
  symbol:   class NonNull
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\CameraSource.java:331: error: cannot find symbol
    @RequiresPermission(Manifest.permission.CAMERA)
     ^
  symbol:   class RequiresPermission
  location: class CameraSource
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\CameraSource.java:365: error: cannot find symbol
    @RequiresPermission(Manifest.permission.CAMERA)
     ^
  symbol:   class RequiresPermission
  location: class CameraSource
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\CameraSource.java:517: error: cannot find symbol
    @Nullable
     ^
  symbol:   class Nullable
  location: class CameraSource
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\CameraSource.java:565: error: cannot find symbol
    public void autoFocus(@Nullable AutoFocusCallback cb) {
                           ^
  symbol:   class Nullable
  location: class CameraSource
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\CameraSource.java:601: error: cannot find symbol
    public boolean setAutoFocusMoveCallback(@Nullable AutoFocusMoveCallback cb) {
                                             ^
  symbol:   class Nullable
  location: class CameraSource
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\CameraSourcePreview.java:65: error: cannot find symbol
    @RequiresPermission(Manifest.permission.CAMERA)
     ^
  symbol:   class RequiresPermission
  location: class CameraSourcePreview
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\CameraSourcePreview.java:79: error: cannot find symbol
    @RequiresPermission(Manifest.permission.CAMERA)
     ^
  symbol:   class RequiresPermission
  location: class CameraSourcePreview
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\CameraSourcePreview.java:98: error: cannot find symbol
    @RequiresPermission(Manifest.permission.CAMERA)
     ^
  symbol:   class RequiresPermission
  location: class CameraSourcePreview
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:80: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:83: error: cannot find symbol
        super.onCreate(icicle);
        ^
  symbol:   variable super
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:85: error: incompatible types: BarcodeCaptureActivity cannot be converted to Context
        LinearLayout linLayout = new LinearLayout(this);
                                                  ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:88: error: incompatible types: BarcodeCaptureActivity cannot be converted to Context
        mPreview = new CameraSourcePreview(this);
                                           ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:89: error: incompatible types: BarcodeCaptureActivity cannot be converted to Context
        mGraphicOverlay = new GraphicOverlay<BarcodeGraphic>(this);
                                                             ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:93: error: cannot find symbol
        setContentView(linLayout, linLayoutParam);
        ^
  symbol:   method setContentView(LinearLayout,LayoutParams)
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:98: error: cannot find symbol
        int rc = ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA);
                 ^
  symbol:   variable ActivityCompat
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:117: error: cannot find symbol
        if (!ActivityCompat.shouldShowRequestPermissionRationale(this,
             ^
  symbol:   variable ActivityCompat
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:119: error: cannot find symbol
            ActivityCompat.requestPermissions(this, permissions, RC_HANDLE_CAMERA_PERM);
            ^
  symbol:   variable ActivityCompat
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:123: error: incompatible types: BarcodeCaptureActivity cannot be converted to Activity
        final Activity thisActivity = this;
                                      ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:128: error: cannot find symbol
                ActivityCompat.requestPermissions(thisActivity, permissions,
                ^
  symbol: variable ActivityCompat
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:134: error: cannot find symbol
                Snackbar.LENGTH_INDEFINITE)
                ^
  symbol:   variable Snackbar
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:133: error: cannot find symbol
        Snackbar.make(mGraphicOverlay, "Access to the camera is needed for detection",
        ^
  symbol:   variable Snackbar
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:150: error: cannot find symbol
        Context context = getApplicationContext();
                          ^
  symbol:   method getApplicationContext()
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:176: error: cannot find symbol
            boolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;
                                    ^
  symbol:   method registerReceiver(<null>,IntentFilter)
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:179: error: no suitable method found for makeText(BarcodeCaptureActivity,String,int)
                Toast.makeText(this, "Face detector dependencies cannot be downloaded due to low device storage", Toast.LENGTH_LONG).show();
                     ^
    method Toast.makeText(Context,CharSequence,int) is not applicable
      (argument mismatch; BarcodeCaptureActivity cannot be converted to Context)
    method Toast.makeText(Context,int,int) is not applicable
      (argument mismatch; BarcodeCaptureActivity cannot be converted to Context)
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:187: error: cannot find symbol
        CameraSource.Builder builder = new CameraSource.Builder(getApplicationContext(), barcodeDetector)
                                                                ^
  symbol:   method getApplicationContext()
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:205: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:207: error: cannot find symbol
        super.onResume();
        ^
  symbol:   variable super
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:214: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:216: error: cannot find symbol
        super.onPause();
        ^
  symbol:   variable super
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:226: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:228: error: cannot find symbol
        super.onDestroy();
        ^
  symbol:   variable super
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:250: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:256: error: cannot find symbol
            super.onRequestPermissionsResult(requestCode, permissions, grantResults);
            ^
  symbol:   variable super
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:275: error: cannot find symbol
                finish();
                ^
  symbol: method finish()
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:279: error: incompatible types: BarcodeCaptureActivity cannot be converted to Context
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
                                                              ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:294: error: cannot find symbol
                getApplicationContext());
                ^
  symbol:   method getApplicationContext()
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:297: error: incompatible types: BarcodeCaptureActivity cannot be converted to Activity
                    GoogleApiAvailability.getInstance().getErrorDialog(this, code, RC_HANDLE_GMS);
                                                                       ^
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:316: error: cannot find symbol
            setResult(CommonStatusCodes.SUCCESS, data);
            ^
  symbol:   method setResult(int,Intent)
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:317: error: cannot find symbol
            finish();
            ^
  symbol:   method finish()
  location: class BarcodeCaptureActivity
C:\Users\DELL\Documents\fuse X\PMQ2\build\android\debug\app\src\main\java\com\fuse\qreader\BarcodeCaptureActivity.java:321: error: method does not override or implement a method from a supertype
    @Override
    ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
53 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 3s
(unknown): E0200: android build failed
Using C:\Users\DELL\AppData\Local\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 UP-TO-DATE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig UP-TO-DATE
> Task :app:javaPreCompileDebug UP-TO-DATE
> Task :app:mainApkListPersistenceDebug UP-TO-DATE
> Task :app:generateDebugResValues UP-TO-DATE
> Task :app:generateDebugResources UP-TO-DATE
> Task :app:mergeDebugResources UP-TO-DATE
> Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
> Task :app:processDebugManifest UP-TO-DATE
> Task :app:processDebugResources UP-TO-DATE

> Task :app:compileDebugJavaWithJavac FAILED
10 actionable tasks: 1 executed, 9 up-to-date
> 9.44 s

Build failed in 9.83 seconds
    1 error

My second question or help is why i have this message everytime that i build an app with some native Android files/API and how can i resolv it

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

I don’t know what happend! need help

Hello,

Please check the update for your question on slack, @Anagr has made some great work on a JS package to work for your case.

Regarding the GitHub - zean00/fuse-qreader: QR Code Reader for Fusetool, I think I have somewhere a more adapted version, ill try to push that to git so that you can give it a try.

If it isn’t much of a hassle, can you please post your question on stackoverflow to give this technology more visibility? We will be thankful for that.

Thanks!

1 Like

Thanks, waiting your package about qrcode reader.

There you go, tell me how that goes

1 Like

i use this package:

I Have just integrate Qreader from repository GitHub - bwail/fuse-qreader: QR Code Reader for Fusetool and i confirm that it work very very FINE!
Thanks
ps : We have to update FuseOpen integration with this new Qreader update on the website
Thanks @bwail

Glad it helped @MVONDO_Yannick, I’ve made a pull request just now to the original repo, I hope it gets merged!

2 Likes

The pull request was merged into the original repo, you can use it now.

2 Likes