question

vhernandez avatar image
vhernandez asked vhernandez commented

Cannot compile remote pay sample

Hello, I cannot compile the latest remote pay android sample, I got it from

https://github.com/clover/remote-pay-android

I am getting this issue


I'm using Android Studio 4.1 RC 2, any idea why the project does not compile?

Remote Pay Android
1600804161255.png (127.6 KiB)
2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image David Marginian ♦♦ commented ·

Curious, is there a reason why you need to compile it? Are you making changes to the SDK?

0 Likes 0 ·
vhernandez avatar image vhernandez David Marginian ♦♦ commented ·

It says, there is a sample code within there but I also found the sample here

https://github.com/clover/remote-pay-android-examples

Thanks

0 Likes 0 ·

1 Answer

·
Jeffrey Blattman avatar image
Jeffrey Blattman answered vhernandez commented

Try adding this to your top level gradle.properties:

upload_release_url=""
upload_snapshot_url=""
upload_user=""
upload_password=""
8 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

vhernandez avatar image vhernandez commented ·
Hello, if I add this lines it does not compile, I actually would like to modify the SDK, is a small change, can you tell me how can I compile the project without any errors please?
0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ vhernandez commented ·

It would be helpful if you would provide us with a text version of the errors you are receiving and information about your environment (Gradle version, etc.).

0 Likes 0 ·
vhernandez avatar image vhernandez David Marginian ♦♦ commented ·

Sure, after added the next properties

  1. upload_release_url=""
  2. upload_snapshot_url=""
  3. upload_user=""
  4. upload_password=""


I get the next error:

'org.gradle.internal.DisplayName org.gradle.internal.Describables.withTypeAndName(java.lang.String, java.lang.String)'

I 've tried the version suggested (4.10.3) and upper, I'm using Canary 11 Android studio, running on windows 10

Please let me know if you need anything else, thank you






0 Likes 0 ·
Show more comments
vhernandez avatar image vhernandez commented ·

I really need to modify the sdk, I've tried sending a pull request, and asking how to compile the code without errors, I don't know what else to do, please help.

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ vhernandez commented ·

I don't think your PR will actually accomplish what you desire. The app on the device has to understand how to interpret the properties on the request.

0 Likes 0 ·
vhernandez avatar image vhernandez David Marginian ♦♦ commented ·

That's why I would like to compile the project and verify,

Is not a big change you guys already have the property on the sdk, I only exposed it.

By the way we have made the same change on other sdk (windows sdk) and it works.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community