Reputation: 29
I am a beginner in android studio, but i have to do some not-so-beginner stuff. I am building an app that uses braintree payments, anything related to braintree needs to be separate from the main app so i put it in an android library. The problem is I cannot access classes that are in the library from the main app, for example, in the library i have a class with this function getDropInRequest function
When i try to call the function from the main app I get no errors Calling the function
But when i try to build the project i get this error: error when building the project
When i make a simple function, like for adding two numbers it works fine, so i guess i have written the function in a wrong way or there is a problem with dependencies. These are the dependencies i am using in the main app: main app dependancies. In the braintree library i am only using implementation 'com.braintreepayments.api:drop-in:3.7.1'..
I have tried cleaning the project, rebuilding, reloading the project, making a fresh project from scratch but nothing seems to solve the problem.
Upvotes: 1
Views: 725