Issue with building paypal here sdk - android

I'm trying to allow customers to pay with their credit card on my app. So I followed these instructions to run the paypal here sdk sample app but I'm having trouble building the sample app. It gives me the following errors.
:processDebugResources
warning: string 'sdk_dlg_title_card_swipe' has no default translation.
C:\Users\HaMiD\Downloads\Source\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.2\res\values-sw600dp\values.xml
Error:(2) Resource entry abc_action_bar_default_height_material is already defined.
C:\Users\HaMiD\Downloads\Source\build\intermediates\exploded-aar\paypal-here-sdk\res\values-sw600dp-v13\values.xml
Error:(2, 1) Originally defined here.
Next, I added the SDK to my own project (File->New->New Module->aar) and add compile project(':PayPalHereSDK') to the build.gradle. But when I try to build the project I get the exact same error once again. For some reason I'm having issues building with the SDK. Any help would be appreciated.
Thanks

Seems that was an issue with SDk 1.6. The new version (1.6.1) that posted to github a few hours ago doesn't have this problem anymore.
Thanks guys

Related

Compiling and using AppCompatActivity in Eclipse

I have the latest Android Support Library, Android Support Repository and Google Repository (Rev. 23.1, 24, 22 respectively) and working with Eclipse Mars.1(4.5.1)
In the process of giving a make-over to an existing app, I am trying to import the v7.AppCompatActivity library, closing all other projects in workspace and silent prayers. ( ;-) )
Observations:
I daresay I have been unsuccessful even after following the instructions here to the dot.
Ian Lake's blog looks all hunky-dory, but Utopian.
Reading up tons of excellent answers on SO did not yet help. No matter what target is set in the project.properties page or what Build Target is set in the Eclipse Project Properties dialog - just cannot seem to get rid of this (and very similar) compile error(s):
android-support-v7-appcompat\res\values-v23\styles_base.xml:20: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Going by the number of similar questions, I am surely not alone. Pray, can someone kindly throw some light on how to import the v7 support library without going insane?
Thanks in advance!
None of the answers or blogs pointed out the following, except #pkuszewski.
The above issue resolves on
upgrading to Android 6 Marshmallow API 6.0 with the SDK manager
setting the Build Target for the AppCompat project to Android 6.0
Did I hear, "Duh"? :)
Thanks, #pkuszewski!
SDK Manager fragment looks like this, post the fix:

first android app gets unfortunately stopped in device

Whenever I try to run my first app the hello world app without any changes, I get this error:
VM aborting Fatal signal 6(SIGABRT) at 0x00007ec3(code=-6),thread
32451(xample.justjava)
What does this error mean and how can I fix this?
Below is the error from console:
[2015-06-26 21:35:16 - android-support-v7-appcompat] Could not find android-support-v7-appcompat.apk!
The last error message posted indicates that your application is missing the android-support-v7-appcompat library. This is a library that enables the backwards compatibility of many UI features as described here. It is required for the default Android code examples to work.
Please make sure that you have downloaded the support packages with the SDK manager and attached the resources to your project as described in the official setup guide.
Edit:
The console error also indicates that you have accidentally compiled the library apk itself to the project, which should not be done. Please check these links: Could not find appcompat_v7.apk and Android Could not find android-support-v7-appcompat.apk error

Configuration with name 'default' not found

I would like to start a project in Android Studio, using Simple Facebook library.
I used to develop in Eclipse and things were fine, but now i had to face an issue while trying to make the libraries work with gradle.
I made a new project.
I made a module for official Facebook SDK inside "libraries" folder
I made a module for Simple Facebook library inside "libraries" folder
I got the following error:
Error:A problem occurred configuring project ':app'.
> Cannot evaluate module simplefacebook : Configuration with name 'default' not found.
I did my research and as everybody experienced this error message is not really informative, and i also tryed to solve this problem from stack overflow's other smiliar questions but just coudnt get it work.
Please help if you can.
And please mention in comment which gradle file you would like to see, because there are 5 of them.
Look in the docs from Facebook!
You don't need to place the hole project as library module anymore in android studio.
Facebook and many other API Providers provide ther Libs now over Maven and you only have to add the dependcy to the correct artifact in your apps build.gradle file.
Here example for Facebook SDK:
dependencies {
compile 'com.facebook.android:facebook-android-sdk:4.1.0'
}
Copied from here: https://developers.facebook.com/docs/android/getting-started
I havn't searched for the other lib, but you should find it your self on developers.facebook.com.

Unable to build Android app FabricGenerateResourcesDebug

I'm trying to integrate twitter's sdk with my app. I'm following this guide.
Unfortunately, when I try to build my project, I keep receiving this error:
Error:Execution failed for task ':app:fabricGenerateResourcesDebug'.
Crashlytics Developer Tools error.
Unfortunately because I don't have 10 reputation, I can't post my build.gradle file because it has links in it. Just trust the fact that it looks just like the build.gradle example in the top link provided.
Is there something that I'm missing that I may have overlooked?
Your problem should be caused due to that you did not create a “crashlytics.properties” file which is required to contain API Key and Build Secret in your app directory.
The solution is quite simple that you don't even have to manually setup anything on your original project. Just following this link:
https://fabric.io/settings/organizations
It will lead you to the Fabric official website, which helps you to download and install Fabric plugins into your IDE (Android Studio, IntelliJ or Eclipse). This might be a new magical method to integrate twitter's SDK within your app, it will automatically configure your project. You will see the magic when you get there.
Hope it helps.
The fix I found is that I did not place the meta-data tag with the API Key INSIDE the application tag in the androidmanifest.xml.

AAPT Crashes after added Facebook sdk 3.0 as Library

i am upgrading Facebook SDK with my application, after added the Facebook SDK 3.0 as library in my application, eclipse trying to build my app then aapt is crashed. here below the only log information which i am getting for this issue
Error executing aapt: Return code -1073741819
its kind of weird, don't have an clue of what and where its going wrong. i guess some problem with resources, seems like its getting conflict with my project resources.
Note: if i add the Facebook sdk 2.0 its working fine
Expecting some help or approach to resolve this issue
Thanks in advance.
After day of painful search, i have resolved the problem,in my project style.xml for some of the styles definitions have android:id , this causes the aapt crash, after i removed this its working fine.

Categories

Resources