cordova-plugin-drawoverapps icon indicating copy to clipboard operation
cordova-plugin-drawoverapps copied to clipboard

Build failed after adding plugin

Open adekunle11 opened this issue 5 years ago • 8 comments
trafficstars

Hello, i get his error when i run cordova build android. Although, the plugin actually never finishes installation, after running cordova plugin add , its says installing cordova-plugin-drawoverapps for android, and it stops there. but the plugin shows in my plugins folder. anyway, this is the error i get when i build android

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
  C:\Users\user\donald\platforms\android\app\src\main\res\layout\service_over_apps_head.xml:7: AAPT: error: attribute riv_border_color (aka com.numbersaver.com:riv_border_color) not found.

  C:\Users\user\donald\platforms\android\app\src\main\res\layout\service_over_apps_head.xml:7: AAPT: error: attribute riv_border_width (aka com.numbersaver.com:riv_border_width) not found.

  C:\Users\user\donald\platforms\android\app\src\main\res\layout\service_over_apps_head.xml:7: AAPT: error: attribute riv_corner_radius (aka com.numbersaver.com:riv_corner_radius) not found.

  error: failed linking file resources.

adekunle11 avatar Jun 08 '20 23:06 adekunle11

some error occurred while install for the roundedimageview dependency, try reinstall the plugin and check for it’s dependance with gradle file and it’s version

ahmedwahba avatar Jun 09 '20 06:06 ahmedwahba

Hello, thanks for replying me @ahmedwahba , like i said, the installation never completes. its justs stops here Installing "cordova-plugin-drawoverapps" for android but the plugin will be in my plugins folder. should i wait for it? is it supposed to take long

adekunle11 avatar Jun 09 '20 09:06 adekunle11

it may takes time in your case as it tries to load this dependency

ahmedwahba avatar Jun 09 '20 09:06 ahmedwahba

Hello @ahmedwahba , been trying to install the plugin for hours now. still stuck there when i remove this below from the service _over_apps_head.xml, the build is successful, so i want to ask, is this really important for the plugin to work?

        app:riv_border_color="@android:color/white"
        app:riv_border_width="1dp"
        app:riv_corner_radius="30dp"

adekunle11 avatar Jun 09 '20 15:06 adekunle11

Hello @ahmedwahba , been trying to install the plugin for hours now. still stuck there when i remove this below from the service _over_apps_head.xml, the build is successful, so i want to ask, is this really important for the plugin to work?

        app:riv_border_color="@android:color/white"
        app:riv_border_width="1dp"
        app:riv_corner_radius="30dp"

all these attributes is related to the RoundedImageView inside this package itself to draw your floating head UI, then it only affects UI you can edit native java code and change the whole package

ahmedwahba avatar Jun 09 '20 19:06 ahmedwahba

hi ahmed its seems your plugin doesnt work anymore. android 4.0.0 gradle 6.1.1

Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id 'com.android.internal.application']

MilkyWayGalaxyUser avatar Jul 17 '20 18:07 MilkyWayGalaxyUser

did you guys solve this problem?

matrixreal avatar Dec 14 '20 18:12 matrixreal

Also facing the same problem

raiprashantneo avatar Mar 10 '21 13:03 raiprashantneo