amorenew / alps_rfid_n6737

Other
3 stars 4 forks source link

Crashes upon load if installed from VS Code #5

Closed bean5 closed 4 years ago

bean5 commented 4 years ago

Expected Code builds and runs on ax6737 65n device.

Actual

About My Device Model Number: ax6737_65_n Android version: 7.0 Kernel version: 3.18.35 Custom build version: alps-mp-n0.mp1-V1.0.2_ax6737.65.n

There is no error message I can use to determine why it crashes.

amorenew commented 4 years ago

@bean5 Try to run without debugging mode The library uses 32-bit .so files https://github.com/amorenew/alps_rfid_n6737/tree/master/android/src/main/jniLibs/armeabi-v7a While running debug mode Flutter uses 64bit mode then the crash will happen. Try to generate the APK and put it on the device manually Also in your app Gradle exclude flutter 64bit .so

//#RFID
packagingOptions {
    exclude 'lib/arm64-v8a/libflutter.so'
    exclude 'lib/arm64-v8a/libapp.so'
   }
bean5 commented 4 years ago

I am using the example code. Do I need to update the gradle file in the example?

amorenew commented 4 years ago

Yes, but I wonder do you have a native SDK for your ALPS device

bean5 commented 4 years ago

How do I find what SDK the device uses?

amorenew commented 4 years ago

@bean5 From where you got that device? is it a Chinese company? if they didn't give you native SDK for RFID ask them because it is custom hardware and maybe no RFID at all on your device. Device info either use and app like system info or maybe in About page in settings

bean5 commented 4 years ago

About Device Model Number: ax6737_65_n Android version: 7.0 Kernel version: 3.18.35 Custom build version: alps-mp-n0.mp1-V1.0.2_ax6737.65.n

bean5 commented 4 years ago

I cannot install using VS Code. However, the following works:

flutter build apk
adb install -r build/app/outputs/apk/release/app-release.apk
bean5 commented 4 years ago

It is from a Chinese company.

amorenew commented 4 years ago

@bean5 So is it working now or you don't have RFID cards?

bean5 commented 4 years ago

I'm going to advise adding to README. Give me a moment to create a PR.

bean5 commented 4 years ago

No, it does not work. The app builds and starts, but it will not read the RFID cards that I have. I think we can ticket that separately.