Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Build issue ionic 4 #42

Open
Subodh18 opened this issue May 17, 2020 · 0 comments
Open

Build issue ionic 4 #42

Subodh18 opened this issue May 17, 2020 · 0 comments

Comments

@Subodh18
Copy link

Subodh18 commented May 17, 2020

Hi Arun,

i am trying to integrate this paytm plugin in ionic 4 application .
i have run the command

  1. cordova plugin add cordova-plugin-paytm --variable MERCHANT_ID= --variable INDUSTRY_TYPE_ID= --variable WEBSITE= --save
  2. npm i cordova-plugin-paytm

after installing i have added these lines in config.xml



when i am referring paytm developer resources .
i got the information to add following line platform build.gradle file
maven {
url "https://artifactory.paytm.in/libs-release-local"
}

and in platform/app build.gradle file following line .
implementation 'com.paytm.appinvokesdk:appinvokesdk:1.2’

after adding these lines in build.gradle
i am getting error while building apk .

  • What went wrong:
    A problem occurred evaluating project ':app'.
    > Could not find method implementation() for arguments
    [com.paytm.appinvokesdk:appinvokesdk:1.2] on object of type
    org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

in plugins folder paytm-cordova-plugin android build.gradle file giving error like

A problem occurred evaluating root project 'android'.
Could not find method compile() for arguments [com.paytm:pgplussdk:1.3.3, build_dvdpi277ijw11ql5ew5nm8u9v$_run_closure1$_closure2@7389f3fe] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.Java(0)
Could not run phased build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-6.3-bin.zip'.
Build file 'D:\Exel\ionic\homeCart\payment\homeCart\wb\cl\homeCart\plugins\cordova-plugin-paytm\src\android\build.gradle' line: 2

is there anything i am missing or anything wrong i have done.kindly suggest at the earliest.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant