FATAL EXCEPTION: main
Opened this issue · 0 comments
febriantok29 commented
I found a problem when createSingleUseToken()
, I have followed the package installation method and tried to follow what is written in the example tab. I changed the XCard()
information following my debit card, but got an error like this:
W/pool-5-thread-1(15296): type=1400 audit(0.0:61348): avc: denied { read } for name="version" dev="proc" ino=4026532087 scontext=u:r:untrusted_app:s0:c112,c257,c512,c768 tcontext=u:object_r:proc_version:s0 tclass=file permissive=0 app=com.example.app.example_mobile_app
I/TetheringManager(15296): registerTetheringEventCallback:com.example.app.example_mobile_app
D/AndroidRuntime(15296): Shutting down VM
E/AndroidRuntime(15296): FATAL EXCEPTION: main
E/AndroidRuntime(15296): Process: com.example.app.example_mobile_app, PID: 15296
E/AndroidRuntime(15296): java.lang.IllegalArgumentException: Unsupported value: 'com.xendit.Models.XenditError@edd7e9b' of type 'class com.xendit.Models.XenditError'
E/AndroidRuntime(15296): at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:292)
E/AndroidRuntime(15296): at io.flutter.plugin.common.StandardMethodCodec.encodeErrorEnvelope(StandardMethodCodec.java:75)
E/AndroidRuntime(15296): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:243)
E/AndroidRuntime(15296): at com.xendit.fxendit.FxenditPlugin$1.onError(FxenditPlugin.java:97)
E/AndroidRuntime(15296): at com.xendit.Xendit$7.onFailure(Xendit.java:703)
E/AndroidRuntime(15296): at com.xendit.network.NetworkHandler.deliverError(NetworkHandler.java:34)
E/AndroidRuntime(15296): at com.xendit.network.NetworkHandler.handleError(NetworkHandler.java:28)
E/AndroidRuntime(15296): at com.xendit.network.DefaultResponseHandler.onErrorResponse(DefaultResponseHandler.java:31)
E/AndroidRuntime(15296): at com.android.volley.Request.deliverError(Request.java:652)
E/AndroidRuntime(15296): at com.xendit.network.BaseRequest.deliverError(BaseRequest.java:153)
E/AndroidRuntime(15296): at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:104)
E/AndroidRuntime(15296): at android.os.Handler.handleCallback(Handler.java:938)
E/AndroidRuntime(15296): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(15296): at android.os.Looper.loop(Looper.java:223)
E/AndroidRuntime(15296): at android.app.ActivityThread.main(ActivityThread.java:7664)
E/AndroidRuntime(15296): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(15296): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/AndroidRuntime(15296): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
I/Process (15296): Sending signal. PID: 15296 SIG: 9
Lost connection to device.
My AndroidManifest.xml
:
xmlns:tools="http://schemas.android.com/tools"
package="com.idogo.app.example_mobile_app">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<application
android:icon="@mipmap/ic_launcher"
android:label="example_mobile_app"
tools:replace="android:label">
<activity
android:name=".MainActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:exported="true"
android:hardwareAccelerated="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.xendit.example.CreateTokenActivity"
android:theme="@style/NormalTheme" />
<activity
android:name="com.xendit.example.AuthenticationActivity"
android:theme="@style/NormalTheme" />
<activity
android:name="com.xendit.example.ValidationUtilActivity"
android:theme="@style/NormalTheme" />
<activity android:name="com.xendit.XenditActivity" />
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
</manifest>
My Flutter doctor:
[√] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.19042.1387], locale en-US)
• Flutter version 2.5.3 at E:\Dev\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 18116933e7 (7 weeks ago), 2021-10-15 10:46:35 -0700
• Engine revision d3ea636dc5
• Dart version 2.14.4
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:\Users\Prog4\AppData\Local\Android\sdk
• Platform android-31, build-tools 30.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 2020.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[√] IntelliJ IDEA Community Edition (version 2021.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.2
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
[√] IntelliJ IDEA Ultimate Edition (version 2020.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2020.3.2
• Flutter plugin version 58.0.2
• Dart plugin version 203.8292
[√] IntelliJ IDEA Ultimate Edition (version 2021.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2021.1.3
• Flutter plugin version 59.0.3
• Dart plugin version 211.7727
[√] IntelliJ IDEA Ultimate Edition (version 2021.2)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2021.2.3
• Flutter plugin version 60.1.4
• Dart plugin version 212.4746.57
[√] VS Code (version 1.62.3)
• VS Code at C:\Users\Prog4\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.28.0
[√] Connected device (3 available)
• Redmi Note 7 (mobile) • ed1130f • android-arm64 • Android 11 (API 30)
• Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.45
• Edge (web) • edge • web-javascript • Microsoft Edge 96.0.1054.34
• No issues found!