ayyshim / esewa_pnp

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

Error while building in gradle plugin:4.1.0 and gradle version:6.5 #7

Closed aarjan closed 3 years ago

aarjan commented 4 years ago

The app is not building after upgrading Gradle.

Execution failed for task ':esewa_pnp:bundleDebugAar'.

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: ~/.pub-cache/hosted/pub.dartlang.org/esewa_pnp-1.0.0/android/libs/eSewaSdk.aar

ayyshim commented 3 years ago

I tried to reproduce the error by creating a new flutter project and adding esewa_pnp plugin in it but I didn't get the error you've mentioned. Can you help me reproduce this error?

ayyshim commented 3 years ago

I am closing this issue, marking it Unclear because you couldn't present the method to reproduce the issue.

aarjan commented 3 years ago

@ayyshim Can you test it by upgrading gradle in following files, android/build.gradle classpath 'com.android.tools.build:gradle:4.1.1'

android/gradle/wrapper/gradle-wrapper.properties distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

Abhishek-Khanal commented 3 years ago

Current solution is to downgrade the android gradle version to 3.x.x