Giter Club home page Giter Club logo

Comments (3)

braebot avatar braebot commented on June 28, 2024

Hey there! When you select pay by credit card, the camera should open by default. If you only see a manual entry form, there's a problem. Please double check that you're allowing the right permissions (see the Sample app and/or readme instructions), and that you're using the latest version of the sdk. If you are unable to identity the problem, then check the logcat for anything suspicious.

from paypal-android-sdk.

DrParanoia avatar DrParanoia commented on June 28, 2024

Thanks for your reply!

Well i have found the problem! When i tried to compile the project in Eclipse, it worked (even the camera icon showed up on the button). But since i am using Android Studio, i tried to find the problem.

The SDK readme file has a line:

  • Some tools (including IntelliJ) will require that you add libs/PayPalSDK.jar to their dependencies path.

But the thing is, there is nothing said about the static libraries that are not compiled by default, so to solve the problem, i added these lines to my build.gradle file:

task copyNativeLibs(type: Copy) {
from(new File('libs')) { include '**' }
into new File(buildDir, 'native-libs')
}
tasks.withType(Compile) { compileTask -> compileTask.dependsOn copyNativeLibs }

clean.dependsOn 'cleanCopyNativeLibs'

tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask ->
pkgTask.jniDir new File(buildDir, 'native-libs')
}

So now everything works as expected though it instantly added a 2.10MB to the apk size! Hope it helps someone.

from paypal-android-sdk.

braebot avatar braebot commented on June 28, 2024

Great! Glad you were able to resolve the problem. Regarding Gradle: we are not officially providing support until we get a certain set of missing features (specifically, ndk integration). When that happens, we'll jump in head first! 🔨

from paypal-android-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.