Comments (28)
@verygreenboi @Wilburt @ighotouch fixed now that gradle:3.0 has been released as stable. Thank you for choosing Paystack 👍
from paystack-android.
Once we have a stable version for gradle:3.0 , we will make it fully compatible.
from paystack-android.
I have a feeling that this have something to do with your IDE config. Please check your Gradle settings, make sure you're not building offline. Settings > Build, Execution... > Gradle
and uncheck Offline work
. Then clean your project and rebuild again. If the error persists, copy the Error message you got and paste it here.
from paystack-android.
It finally worked thanks
from paystack-android.
from paystack-android.
Hello Ibrahim.
Yes, I'm on skype. Would love to call you up as soon as it is convenient for you.
from paystack-android.
from paystack-android.
Hello Having same issue using Android 3.0 with classpath 'com.android.tools.build:gradle:3.0.0-alpha3'
from paystack-android.
@ighotouch So I solved this issue by going back to Android Studio 2.3 and starting a fresh project then copying my code over.
from paystack-android.
@verygreenboi that was an over kill, you should have just ported your grade build back to 2.3.3, as the issue was with grade version and not android studio itself.
from paystack-android.
This has not been fixee. It's still happening as at com.android.tools.build:gradle:3.0.0-beta4.
from paystack-android.
In the future, I'd hope that a branch will be created for beta version so that we can build alongside new releases of gradle and other dependencies.
Regardless, great work guys.
from paystack-android.
Issue still exists. I am using version 3.0.7 of the paystack library.
The only easy way to get around the issue was to disable AAPT2 in my gradle.properties file.
from paystack-android.
@Elvis10ten please update to 3.0.9 and let me know if you are able to use the library on AAPT2 with no trouble. Thank you for choosing Paystack. Best Regards!
from paystack-android.
@verygreenboi I truly never thought of that. Will make sure to do a beta branch in future.
from paystack-android.
Updated to 3.0.9. Using AAPT2 without any trouble. Thanks.
from paystack-android.
@ibrahimlawal Morning
Adding 'co.paystack.android:paystack:3.0.9' to my dependencies will suddenly tag com.android.support:appcompat-v7:25.4.0 as an error and in turn values-v26.xml automatiacaly open up
Thank you
from paystack-android.
@alan-qbasic Update your compile SDK to 27. That should solve it
from paystack-android.
Added the dependency version co.paystack.android:paystack:3.0.10 and it doesn't sync... Error
Could not find common.jar
from paystack-android.
Tried lower version but still didn't sync...
3.0.6
.
..
3.0.10
from paystack-android.
Add google()
above jcenter()
in your root project's gradle file.
from paystack-android.
I've done that still doesn't sync
from paystack-android.
I'm glad it works. You're welcome.
from paystack-android.
@devmike01
My Java compiler just returned 5 errors
Android resource linking failed
Output: C:\Users\Jerome\AndroidStudioProjects\Taxitime\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v26\values-v26.xml:7: error: resource android:attr/colorError not found.
C:\Users\Jerome\AndroidStudioProjects\Taxitime\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v26\values-v26.xml:11: error: resource android:attr/colorError not found.
C:\Users\Jerome\AndroidStudioProjects\Taxitime\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v26\values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
C:\Users\Jerome\AndroidStudioProjects\Taxitime\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:520: error: resource android:attr/fontStyle not found.
C:\Users\Jerome\AndroidStudioProjects\Taxitime\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:520: error: resource android:attr/font not found.
C:\Users\Jerome\AndroidStudioProjects\Taxitime\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:520: error: resource android:attr/fontWeight not found.
error: failed linking references.
Command: C:\Users\Jerome.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-alpha17-4804415-windows.jar\b118d33bada9a969adfe3ddfdb367b9f\aapt2-3.2.0-alpha17-4804415-windows\aapt2.exe link -I
C:\Users\Jerome\AppData\Local\Android\Sdk\platforms\android-25\android.jar
--manifest
C:\Users\Jerome\AndroidStudioProjects\Taxitime\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml
-o
C:\Users\Jerome\AndroidStudioProjects\Taxitime\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_
-R
@C:\Users\Jerome\AndroidStudioProjects\Taxitime\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
C:\Users\Jerome\AndroidStudioProjects\Taxitime\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r
--proguard-main-dex
C:\Users\Jerome\AndroidStudioProjects\Taxitime\app\build\intermediates\legacy_multidex_aapt_derived_proguard_rules\debug\processDebugResources\manifest_keep.txt
--custom-package
com.example.jerome.taxify
-0
apk
--output-text-symbols
C:\Users\Jerome\AndroidStudioProjects\Taxitime\app\build\intermediates\symbols\debug\R.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-alpha17-4804415-windows Daemon #0
What could be the problem?
from paystack-android.
@Jayjerome You're setting some wrong resource attributes in your resource folder. Some of those attributes causing the errors are colorError
, fontWeight
, font
and so on. Also, this question is off-topic and should be posted on generic programming Q&A platform like StackOverflow
However, this thread should be be closed and mark as fixed. @ibrahimlawal
from paystack-android.
Alright but how do I go about this error log
Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation' and 'androidTestApi'
Is this an issue I should be concerned over or I should just ignore and move on?
from paystack-android.
@devmike01 after syncing, my project now gives error in most part of my code. This now causes gradle to fail when syncing and prevents my layouts from displaying the preview. I've tried cleaning my project and even tried invalidate caches and restart but the program still give those error lines although these lines don't pop up as error in the log cat. Please help
from paystack-android.
i am using nativescript with angular as template. i tried install nativescript-paystack as:
tns add plugin nativescript-paystack
it was successfully added. i tried to run my app again as tns run android. and my app will not run again and i when i tried remove as ( tns remove plugin nativescript-paystack) and my app will run again fine. please see details of the error below. thanks
C:\mobileprojects\fiwonpay>tns plugin add nativescript-paystack
npm WARN [email protected] requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
[email protected]
added 1 package in 58.986s
Successfully installed plugin nativescript-paystack.
C:\mobileprojects\fiwonpay>tns run android
Skipping node_modules folder! Use the syncAllFiles option to sync files from this folder.
Searching for devices...
Executing before-liveSync hook from C:\mobileprojects\fiwonpay\hooks\before-liveSync\nativescript-angular-sync.js
Executing before-watchPatterns hook from C:\mobileprojects\fiwonpay\hooks\before-watchPatterns\nativescript-dev-sass.js
Executing before-watchPatterns hook from C:\mobileprojects\fiwonpay\hooks\before-watchPatterns\nativescript-dev-typescript.js
Executing before-watchPatterns hook from C:\mobileprojects\fiwonpay\hooks\before-watchPatterns\nativescript-dev-webpack.js
Executing before-watch hook from C:\mobileprojects\fiwonpay\hooks\before-watch\nativescript-dev-sass.js
Found peer node-sass
Executing before-watch hook from C:\mobileprojects\fiwonpay\hooks\before-watch\nativescript-dev-typescript.js
Found peer TypeScript 2.7.2
Executing before-watch hook from C:\mobileprojects\fiwonpay\hooks\before-watch\nativescript-dev-webpack.js
Executing before-shouldPrepare hook from C:\mobileprojects\fiwonpay\hooks\before-shouldPrepare\nativescript-dev-webpack.js
Executing before-prepare hook from C:\mobileprojects\fiwonpay\hooks\before-prepare\nativescript-dev-sass.js
Hook skipped because either bundling or livesync is in progress.
Executing before-prepare hook from C:\mobileprojects\fiwonpay\hooks\before-prepare\nativescript-dev-typescript.js
Hook skipped because either bundling or livesync is in progress.
Preparing project...
Executing before-prepareJSApp hook from C:\mobileprojects\fiwonpay\hooks\before-prepareJSApp\nativescript-dev-webpack.js
Successfully prepared plugin nativescript-angular for android.
Successfully prepared plugin nativescript-filter-select for android.
Successfully prepared plugin nativescript-loading-indicator for android.
Successfully prepared plugin nativescript-paystack for android.
Successfully prepared plugin nativescript-theme-core for android.
Successfully prepared plugin tns-core-modules for android.
Successfully prepared plugin nativescript-intl for android.
Successfully prepared plugin tns-core-modules-widgets for android.
Unable to apply changes on device: 4ccfcc14. Error is: Failed to build plugin nativescript-paystack :
Error: Command gradlew.bat failed with exit code 1 Error output:
C:\Users\ME.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.0.aar\2c2824cca5eb767c914e9356717041fd\res\values-v26\values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.
C:\Users\ME.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.0.aar\2c2824cca5eb767c914e9356717041fd\res\values-v26\values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.
C:\Users\ME.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.0.aar\2c2824cca5eb767c914e9356717041fd\res\values-v26\values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
C:\Users\ME.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.0.aar\2c2824cca5eb767c914e9356717041fd\res\values\values.xml:252:5-69: AAPT: error: resource android:attr/fontStyle not found.
C:\Users\ME.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.0.aar\2c2824cca5eb767c914e9356717041fd\res\values\values.xml:252:5-69: AAPT: error: resource android:attr/font not found.
C:\Users\ME.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.0.aar\2c2824cca5eb767c914e9356717041fd\res\values\values.xml:252:5-69: AAPT: error: resource android:attr/fontWeight not found.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':verifyReleaseResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 2m 47s
.
Executing after-watch hook from C:\mobileprojects\fiwonpay\hooks\after-watch\nativescript-dev-sass.js
Executing after-watch hook from C:\mobileprojects\fiwonpay\hooks\after-watch\nativescript-dev-typescript.js
Stopping tsc watch
Executing after-watch hook from C:\mobileprojects\fiwonpay\hooks\after-watch\nativescript-dev-webpack.js
from paystack-android.
Related Issues (20)
- Error .. app crash after successful card added HOT 1
- Charge Exception Error with Paystack SDK HOT 2
- Payment not successful on my app HOT 1
- Charge error - Unable to process transaction HOT 4
- Error HOT 3
- This library is not compiling for Android 5.0 HOT 2
- Dependencies HOT 1
- Mobile Money Support HOT 3
- Migrate library away from Bintray HOT 5
- Support Library Incompatibility Issue HOT 3
- Since Charge object has amount as Integer so how to make decimal charges ? HOT 2
- Charge error: co.paystack.android.exceptions.ChargeException: Unknown Error HOT 4
- I would want sample codes for Gh momo integration in java/Android studio HOT 1
- Unable to resolve host "standard.paystack.co": No address associated with hostname HOT 2
- co.paystack.android.exceptions.PaystackSdkNotInitializedException: Paystack SDK has not been initialized.The SDK has to be initialized before use HOT 1
- Crash with a wrong OTP code input
- java.lang.NoClassDefFoundError: Failed resolution of: Lco/paystack/android/ui/PinAxtivity; HOT 2
- Documentation mismatch
- Card Verification HOT 2
- AAPT: error: attribute auto_submit (aka my.package.name:auto_submit) not found. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paystack-android.