dynamitechetan/razorpay_flutter

app crashes when compiled with 0.2.9

raveesh-me opened this issue · 2 comments

When in pubspec.yaml

  razorpay_plugin: ^0.2.9 

Flutter app crashes on launch. Even if I did not import or use any code from within the app.
Removing it makes the app work again.

Flutter doctor -v:

flutter doctor -v
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Linux, locale en_IN)
    • Flutter version 1.5.4-hotfix.2 at /home/raveesh/Android/flutter
    • Framework revision 7a4c33425d (11 days ago), 2019-04-29 11:05:24 -0700
    • Engine revision 52c7a1e849
    • Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /home/raveesh/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /home/raveesh/Android/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1343-b16-5323222)
    • All Android licenses accepted.

[✓] Android Studio (version 3.4)
    • Android Studio at /home/raveesh/Android/android-studio
    • Flutter plugin version 34.0.2
    • Dart plugin version 183.5901
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1343-b16-5323222)

[✓] VS Code (version 1.33.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.0.0

[✓] Connected device (1 available)
    • Moto G 5 Plus • 192.168.1.2:5555 • android-arm • Android 8.1.0 (API 27)

• No issues found!

flutter analyze:

Analyzing dole_app...                                                   
No issues found! (ran in 17.0s)

flutter run -v

[ +322 ms] Running Gradle task 'assembleDebug'... (completed in 20.4s)
[ +438 ms] calculateSha: LocalDirectory: '/media/raveesh/Archiver4T/current_active_project/dole/dole_app/build/app/outputs/apk'/app.apk
[+4546 ms] Built build/app/outputs/apk/debug/app-debug.apk.
[  +77 ms] executing: /home/raveesh/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /media/raveesh/Archiver4T/current_active_project/dole/dole_app/build/app/outputs/apk/app.apk AndroidManifest.xml
[  +17 ms] Exit code 0 from: /home/raveesh/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /media/raveesh/Archiver4T/current_active_project/dole/dole_app/build/app/outputs/apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x3
               A: android:versionName(0x0101021c)="0.0.3" (Raw: "0.0.3")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="in.cookytech.dole_app" (Raw: "in.cookytech.dole_app")
               A: platformBuildVersionCode=(type 0x10)0x3
               A: platformBuildVersionName="0.0.3" (Raw: "0.0.3")
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=17)
                 A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE")
               E: uses-permission (line=18)
                 A: android:name(0x01010003)="android.permission.WAKE_LOCK" (Raw: "android.permission.WAKE_LOCK")
               E: uses-permission (line=19)
                 A: android:name(0x01010003)="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" (Raw: "com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE")
               E: uses-permission (line=20)
                 A: android:name(0x01010003)="com.google.android.c2dm.permission.RECEIVE" (Raw: "com.google.android.c2dm.permission.RECEIVE")
               E: application (line=28)
                 A: android:label(0x01010001)="FitExpo 2019" (Raw: "FitExpo 2019")
                 A: android:icon(0x01010002)=@0x7f0a0000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:supportsRtl(0x010103af)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=35)
                   A: android:theme(0x01010000)=@0x7f0d00a5
                   A: android:name(0x01010003)="in.cookytech.dole_app.MainActivity" (Raw: "in.cookytech.dole_app.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x400037b4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: intent-filter (line=52)
                     E: action (line=53)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=55)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=60)
                   A: android:name(0x01010003)="com.facebook.sdk.ApplicationId" (Raw: "com.facebook.sdk.ApplicationId")
                   A: android:value(0x01010024)=@0x7f0c0052
                 E: activity (line=64)
                   A: android:theme(0x01010000)=@0x7f0d0165
                   A: android:label(0x01010001)=@0x7f0c0027
                   A: android:name(0x01010003)="com.facebook.FacebookActivity" (Raw: "com.facebook.FacebookActivity")
                   A: android:configChanges(0x0101001f)=(type 0x11)0x5b0
                 E: activity (line=69)
                   A: android:name(0x01010003)="com.facebook.CustomTabActivity" (Raw: "com.facebook.CustomTabActivity")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   E: intent-filter (line=72)
                     E: action (line=73)
                       A: android:name(0x01010003)="android.intent.action.VIEW" (Raw: "android.intent.action.VIEW")
                     E: category (line=75)
                       A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
                     E: category (line=76)
                       A: android:name(0x01010003)="android.intent.category.BROWSABLE" (Raw: "android.intent.category.BROWSABLE")
                     E: data (line=78)
                       A: android:scheme(0x01010027)=@0x7f0c0053
                 E: activity (line=83)
                   A: android:name(0x01010003)="com.hashbnm.razorpayplugin.RazorpayActivity" (Raw: "com.hashbnm.razorpayplugin.RazorpayActivity")
                   A: android:configChanges(0x0101001f)=(type 0x11)0x4e0
                 E: activity (line=86)
                   A: android:theme(0x01010000)=@0x1030010
                   A: android:name(0x01010003)="com.google.firebase.auth.internal.FederatedSignInActivity" (Raw: "com.google.firebase.auth.internal.FederatedSignInActivity")
                   A: android:permission(0x01010006)="com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN" (Raw: "com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
                   A: android:launchMode(0x0101001d)=(type 0x10)0x2
                 E: service (line=94)
                   A: android:name(0x01010003)="com.google.firebase.components.ComponentDiscoveryService" (Raw: "com.google.firebase.components.ComponentDiscoveryService")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   E: meta-data (line=97)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar" (Raw: "com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=100)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar" (Raw: "com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=103)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar" (Raw:
                     "com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=106)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.iid.Registrar" (Raw: "com.google.firebase.components:com.google.firebase.iid.Registrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                 E: receiver (line=111)
                   A: android:name(0x01010003)="com.razorpay.RzpTokenReceiver" (Raw: "com.razorpay.RzpTokenReceiver")
                   E: intent-filter (line=112)
                     E: action (line=113)
                       A: android:name(0x01010003)="rzp.device_token.share" (Raw: "rzp.device_token.share")
                 E: activity (line=117)
                   A: android:theme(0x01010000)=@0x7f0d00a4
                   A: android:name(0x01010003)="com.razorpay.CheckoutActivity" (Raw: "com.razorpay.CheckoutActivity")
                   A: android:configChanges(0x0101001f)=(type 0x11)0x4b0
                   E: intent-filter (line=121)
                     E: action (line=122)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: data (line=124)
                       A: android:scheme(0x01010027)="io.rzp" (Raw: "io.rzp")
                       A: android:host(0x01010028)="rzp.io" (Raw: "rzp.io")
                 E: activity (line=129)
                   A: android:theme(0x01010000)=@0x1030010
                   A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.internal.SignInHubActivity" (Raw: "com.google.android.gms.auth.api.signin.internal.SignInHubActivity")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
                 E: service (line=138)
                   A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.RevocationBoundService" (Raw: "com.google.android.gms.auth.api.signin.RevocationBoundService")
                   A: android:permission(0x01010006)="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION" (Raw: "com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                 E: activity (line=143)
                   A: android:name(0x01010003)="com.facebook.CustomTabMainActivity" (Raw: "com.facebook.CustomTabMainActivity")
                 E: provider (line=153)
                   A: android:name(0x01010003)="com.facebook.internal.FacebookInitProvider" (Raw: "com.facebook.internal.FacebookInitProvider")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:authorities(0x01010018)="in.cookytech.dole_app.FacebookInitProvider" (Raw: "in.cookytech.dole_app.FacebookInitProvider")
                 E: receiver (line=158)
                   A: android:name(0x01010003)="com.facebook.CurrentAccessTokenExpirationBroadcastReceiver" (Raw: "com.facebook.CurrentAccessTokenExpirationBroadcastReceiver")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   E: intent-filter (line=161)
                     E: action (line=162)
                       A: android:name(0x01010003)="com.facebook.sdk.ACTION_CURRENT_ACCESS_TOKEN_CHANGED" (Raw: "com.facebook.sdk.ACTION_CURRENT_ACCESS_TOKEN_CHANGED")
                 E: receiver (line=165)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementReceiver" (Raw: "com.google.android.gms.measurement.AppMeasurementReceiver")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=170)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver" (Raw: "com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver")
                   A: android:permission(0x01010006)="android.permission.INSTALL_PACKAGES" (Raw: "android.permission.INSTALL_PACKAGES")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   E: intent-filter (line=175)
                     E: action (line=176)
                       A: android:name(0x01010003)="com.android.vending.INSTALL_REFERRER" (Raw: "com.android.vending.INSTALL_REFERRER")
                 E: service (line=180)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementService" (Raw: "com.google.android.gms.measurement.AppMeasurementService")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: service (line=184)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementJobService" (Raw: "com.google.android.gms.measurement.AppMeasurementJobService")
                   A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw: "android.permission.BIND_JOB_SERVICE")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=190)
                   A: android:name(0x01010003)="com.google.firebase.iid.FirebaseInstanceIdReceiver" (Raw: "com.google.firebase.iid.FirebaseInstanceIdReceiver")
                   A: android:permission(0x01010006)="com.google.android.c2dm.permission.SEND" (Raw: "com.google.android.c2dm.permission.SEND")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   E: intent-filter (line=194)
                     E: action (line=195)
                       A: android:name(0x01010003)="com.google.android.c2dm.intent.RECEIVE" (Raw: "com.google.android.c2dm.intent.RECEIVE")
                 E: service (line=202)
                   A: android:name(0x01010003)="com.google.firebase.iid.FirebaseInstanceIdService" (Raw: "com.google.firebase.iid.FirebaseInstanceIdService")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   E: intent-filter (line=205)
                     A: android:priority(0x0101001c)=(type 0x10)0xfffffe0c
                     E: action (line=206)
                       A: android:name(0x01010003)="com.google.firebase.INSTANCE_ID_EVENT" (Raw: "com.google.firebase.INSTANCE_ID_EVENT")
                 E: activity (line=210)
                   A: android:theme(0x01010000)=@0x1030010
                   A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: provider (line=215)
                   A: android:name(0x01010003)="com.google.firebase.provider.FirebaseInitProvider" (Raw: "com.google.firebase.provider.FirebaseInitProvider")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:authorities(0x01010018)="in.cookytech.dole_app.firebaseinitprovider" (Raw: "in.cookytech.dole_app.firebaseinitprovider")
                   A: android:initOrder(0x0101001a)=(type 0x10)0x64
                 E: meta-data (line=221)
                   A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version")
                   A: android:value(0x01010024)=@0x7f080004
[   +2 ms] Stopping app 'app.apk' on Moto G 5 Plus.
[        ] executing: /home/raveesh/Android/Sdk/platform-tools/adb -s 192.168.1.2:5555 shell am force-stop in.cookytech.dole_app
[ +195 ms] executing: /home/raveesh/Android/Sdk/platform-tools/adb -s 192.168.1.2:5555 shell pm list packages in.cookytech.dole_app
[ +710 ms] package:in.cookytech.dole_app
[   +3 ms] executing: /home/raveesh/Android/Sdk/platform-tools/adb -s 192.168.1.2:5555 shell cat /data/local/tmp/sky.in.cookytech.dole_app.sha1
[  +53 ms] 9cf17ff69b31f5a564964c665e1d4062f6d8f6e8
[   +1 ms] Installing APK.
[   +1 ms] executing: /home/raveesh/Android/Sdk/platform-tools/adb version
[  +11 ms] Android Debug Bridge version 1.0.40
           Version 28.0.2-5303910
           Installed as /home/raveesh/Android/Sdk/platform-tools/adb
[        ] executing: /home/raveesh/Android/Sdk/platform-tools/adb start-server
[  +11 ms] Installing build/app/outputs/apk/app.apk...
[        ] executing: /home/raveesh/Android/Sdk/platform-tools/adb -s 192.168.1.2:5555 install -t -r /media/raveesh/Archiver4T/current_active_project/dole/dole_app/build/app/outputs/apk/app.apk
[+40151 ms] Performing Streamed Install
                     Success
[        ] Installing build/app/outputs/apk/app.apk... (completed in 40.2s)
[   +1 ms] executing: /home/raveesh/Android/Sdk/platform-tools/adb -s 192.168.1.2:5555 shell echo -n e98d2d7b164f03007f42e12cfad4876bc53e7ef6 > /data/local/tmp/sky.in.cookytech.dole_app.sha1
[  +35 ms] Moto G 5 Plus startApp
[   +1 ms] executing: /home/raveesh/Android/Sdk/platform-tools/adb -s 192.168.1.2:5555 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez
verify-entry-points true in.cookytech.dole_app/in.cookytech.dole_app.MainActivity
[ +204 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=in.cookytech.dole_app/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...

Hi @raveesh-me . I just tried using the 0.2.9 version on an empty project. Its working absolutely fine.

Agreed. Might have been some build error. Running flutter clean did the trick for me.