You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After install @ionic-native/admob-pro in my Ionic 4 & Capacitor app. Troubling with this Android Build ErrorTransform output file C:\xx\xx\android\app\libs\cordova-generic-ad.jar does not exist.
Build Failed Error:
org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Could not resolve all files for configuration ':app:debugCompileClasspath'.
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:145)
at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:115)
at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:78)
Caused by: org.gradle.internal.exceptions.LocationAwareException: Could not resolve all files for configuration ':app:debugCompileClasspath'.
at org.gradle.initialization.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:74)
at org.gradle.initialization.MultipleBuildFailuresExceptionAnalyser.transform(MultipleBuildFailuresExceptionAnalyser.java:47)
Caused by: org.gradle.api.artifacts.transform.ArtifactTransformException: Failed to transform file 'cordova-generic-ad.jar' to match attributes {artifactType=processed-jar} using transform IdentityTransform
at org.gradle.api.internal.artifacts.transform.UserCodeBackedTransformer.transform(UserCodeBackedTransformer.java:89)
at org.gradle.api.internal.artifacts.transform.ChainedTransformer.transform(ChainedTransformer.java:36)
at org.gradle.api.internal.artifacts.transform.TransformFileOperation.run(TransformFileOperation.java:40)
Caused by: org.gradle.api.InvalidUserDataException: Transform output file C:\XPlatform\grevocabulary\android\app\libs\cordova-generic-ad.jar does not exist.
at org.gradle.api.internal.artifacts.transform.TransformArtifactsAction.apply(TransformArtifactsAction.java:52)
at org.gradle.api.internal.artifacts.transform.TransformArtifactsAction.apply(TransformArtifactsAction.java:29)
Sadly we can't fix this.
The problem is the dependency plugin cordova-plugin-extension, it has a gradle file at src/android/rjfun-libs.gradle which indicates Cordova to compile the cordova-generic-ad.jar, but doing that makes it search in a relative place instead of in the right place.
Capacitor already compiles the .jar files that are on the right place, so what that gradle file does is not really needed, what you can do is to delete the content of node_modules/cordova-plugin-extension/src/android/rjfun-libs.gradle as workaround.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
After install @ionic-native/admob-pro in my Ionic 4 & Capacitor app. Troubling with this
Android Build Error
Transform output file C:\xx\xx\android\app\libs\cordova-generic-ad.jar does not exist.
Build Failed Error:
Config.xml
package.json
Environment Information
Ionic:
Cordova:
System:
The text was updated successfully, but these errors were encountered: