openedx-unsupported / edx-app-android

The Open edX mobile app for Android!
https://docs.google.com/document/d/15MYZ2LAmahB82P5wkPkQOqjszfou0Qkeae3qz7STxUQ/edit
Apache License 2.0
299 stars 332 forks source link

Not able to integrate PayUMoney #962

Closed raghavsatyadev closed 7 years ago

raghavsatyadev commented 7 years ago

I am not able to import a module of PayUMoney SDK in EDX project, however I got successful with other simple projects.

PayUMoney Sample App: https://github.com/payu-intrepos/Android-SDK-Sample-App

payumoney

miankhalid commented 7 years ago

AFAIK the culprit here seems to be the 3rd error i.e. Failed to resolve: annotationProcessor, cuz thats the issue I faced while integrating a library (but didn't as the requirements changed).

Currently, we are updating the project to support AS v2.3, after we are done with that I'll give this issue a go and update accordingly.

For now you can checkout the changes in this PR https://github.com/edx/edx-app-android/pull/938 and try import the library you want.

raghavsatyadev commented 7 years ago

Sorry the issue was on my side, I had contacted to the PayUMoney Support team and they told me to add in build.gradle at project level

allprojects {
    repositories {
        jcenter()
    }
}
ankushgupta1393 commented 6 years ago

Hi @miankhalid I updated AS to 3.0 and I'm getting following errors

image

Please help to resolve these.

farhan commented 6 years ago

Hi @ankushgupta1393 , don't update your AS to 3.0, we are only supporting 2.3.x so far, will add the notes about it in readme. If you face any issue in 2.3.x please read the FAQs for that https://github.com/edx/edx-app-android#frequently-asked-questions

Note: Also don't update the gradle version.

ankushgupta1393 commented 6 years ago

I've updated both AS and gradle plugin. Do I need to install the AS again now or Is it possible to resolve the issues ?

farhan commented 6 years ago

:worried: Sorry for trouble, to fix for now you can download the Android Studio 2.3.3 from here: https://developer.android.com/studio/archive.html and can revert the gradle to '2.3.0'

ankushgupta1393 commented 6 years ago

hey @farhan Thanks for the support. The error got resolved when I added following code in build.gradle at project level :

allprojects { repositories { jcenter() } }

farhan commented 6 years ago

@ankushgupta1393 , great, thanks for sharing that. It will help us in our updating task which we are planning ahead. For information which gradle version are you using currently ?

ankushgupta1393 commented 6 years ago

hey @farhan you can use Gradle version 4.1 or higher. I've updated version in distribution url to 4.3.1 - its latest gradle version. But now I'm getting following error -

Gradle sync failed: Execution failed for task ':buildSrc:plugins/edx-app-gradle-plugin:compileGroovy'.

Any idea how to solve this issue?

RicardoJiang commented 6 years ago

same problem,Failed to resolve: annotationProcessor thanks to @ankushgupta1393