Giter VIP home page Giter VIP logo

Comments (28)

ibrahimlawal avatar ibrahimlawal commented on June 14, 2024 3

@verygreenboi @Wilburt @ighotouch fixed now that gradle:3.0 has been released as stable. Thank you for choosing Paystack 👍

from paystack-android.

ibrahimlawal avatar ibrahimlawal commented on June 14, 2024 1

Once we have a stable version for gradle:3.0 , we will make it fully compatible.

from paystack-android.

devmike01 avatar devmike01 commented on June 14, 2024 1

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.

Jayjerome avatar Jayjerome commented on June 14, 2024 1

It finally worked thanks

from paystack-android.

ibrahimlawal avatar ibrahimlawal commented on June 14, 2024

from paystack-android.

verygreenboi avatar verygreenboi commented on June 14, 2024

Hello Ibrahim.

Yes, I'm on skype. Would love to call you up as soon as it is convenient for you.

from paystack-android.

ibrahimlawal avatar ibrahimlawal commented on June 14, 2024

from paystack-android.

ighotouch avatar ighotouch commented on June 14, 2024

Hello Having same issue using Android 3.0 with classpath 'com.android.tools.build:gradle:3.0.0-alpha3'

from paystack-android.

verygreenboi avatar verygreenboi commented on June 14, 2024

@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.

ighotouch avatar ighotouch commented on June 14, 2024

@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.

wilburx9 avatar wilburx9 commented on June 14, 2024

This has not been fixee. It's still happening as at com.android.tools.build:gradle:3.0.0-beta4.

from paystack-android.

verygreenboi avatar verygreenboi commented on June 14, 2024

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.

Elvis10ten avatar Elvis10ten commented on June 14, 2024

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.

ibrahimlawal avatar ibrahimlawal commented on June 14, 2024

@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.

ibrahimlawal avatar ibrahimlawal commented on June 14, 2024

@verygreenboi I truly never thought of that. Will make sure to do a beta branch in future.

from paystack-android.

Elvis10ten avatar Elvis10ten commented on June 14, 2024

Updated to 3.0.9. Using AAPT2 without any trouble. Thanks.

from paystack-android.

alan-qbasic avatar alan-qbasic commented on June 14, 2024

@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.

devmike01 avatar devmike01 commented on June 14, 2024

@alan-qbasic Update your compile SDK to 27. That should solve it

from paystack-android.

Jayjerome avatar Jayjerome commented on June 14, 2024

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.

Jayjerome avatar Jayjerome commented on June 14, 2024

Tried lower version but still didn't sync...
3.0.6
.
..
3.0.10

from paystack-android.

devmike01 avatar devmike01 commented on June 14, 2024

Add google() above jcenter() in your root project's gradle file.

from paystack-android.

Jayjerome avatar Jayjerome commented on June 14, 2024

I've done that still doesn't sync

from paystack-android.

devmike01 avatar devmike01 commented on June 14, 2024

I'm glad it works. You're welcome.

from paystack-android.

Jayjerome avatar Jayjerome commented on June 14, 2024

@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.

devmike01 avatar devmike01 commented on June 14, 2024

@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.

Jayjerome avatar Jayjerome commented on June 14, 2024

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.

Jayjerome avatar Jayjerome commented on June 14, 2024

@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.

aapeliltd avatar aapeliltd commented on June 14, 2024

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)

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.