ayyshim / esewa_pnp

Unofficial esewa plugin for flutter application.
MIT License
40 stars 23 forks source link

Bug: Execution failed for task ':esewa_pnp:bundleDebugAar'. #15

Closed Abhishek-Khanal closed 3 years ago

Abhishek-Khanal commented 3 years ago

Describe the bug

Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :esewa_pnp project caused this error: C:\flutter.pub-cache\hosted\pub.dartlang.org\esewa_pnp-1.0.4\android\libs\eSewaSdk.aar

To Reproduce Steps to reproduce the behavior:

  1. Using distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip classpath 'com.android.tools.build:gradle:4.1.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

Environment (please complete the following information):

ayyshim commented 3 years ago

Try with https://services.gradle.org/distributions/gradle-5.6.2-all.zip once and classpath 'com.android.tools.build:gradle:3.5.0'

Abhishek-Khanal commented 3 years ago

@ayyshim It works but stuck on verifing merchant screen

ayyshim commented 3 years ago

Getting stuck on verifying merchant screen is not an issue related to plugin but eSewa's SDK itself. I suggest you to look #14 and wait while eSewa works on fixing that error. And also I am closing this issue because your main issue has been resolved.

Ps: It would be great if you could give this repo a star 😊

Abhishek-Khanal commented 3 years ago

Try to make the package work in the newer gradle versions as well.

prasid444 commented 3 years ago

@ayyshim won't it work for gradle-6.1.1?

ayyshim commented 3 years ago

@prasid444 I haven't tested with 6.x.x gradle yet. If it does not work then I will make sure it will be fixed in new update.

prasid444 commented 3 years ago

@ayyshim its not working, can you please have a looks.

prasid444 commented 3 years ago

@ayyshim any update regarding on issue for distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip ??

ayyshim commented 3 years ago

@prasid444 I have recently added and been using esewa_pnp 1.0.4 in my new flutter project and it's working fine with distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip and classpath 'com.android.tools.build:gradle:3.5.0'. It didn't prompt me with any sorts of error.

prasid444 commented 3 years ago

@ayyshim thanks, it looks like it is not working for 6.1.1... , I updated it with 6.7-all and it's working now. Cheeers 🍸