Heyzap / heyzap-cordova-extras

Third party SDK plugins for the Heyzap Cordova Plugin
3 stars 7 forks source link

Graddle build errors for heyzap-cordova-chartboost #8

Open rafaellop opened 7 years ago

rafaellop commented 7 years ago

The chartboost SDK cannot be properly built for Android using graddle. Other SDK like Admob, Facebook works properly. Here's the log:

Jar found at unexpected path (fyber-chartboost-6.5.0-r1/classes.jar) in C:\app\platforms\android\libs\fyber-chartboost-6.5.0-r1.aar and will be ignored. Jars should be placed inside 'jars' folder to be merged into dex. Jars that are in assets/ or res/raw/ will be copied as-is.
Jar found at unexpected path (fyber-chartboost-6.5.0-r1/libs/chartboost.jar) in C:\app\platforms\android\libs\fyber-chartboost-6.5.0-r1.aar and will be ignored. Jars should be placed inside 'jars' folder to be merged
into dex. Jars that are in assets/ or res/raw/ will be copied as-is.
:prepareFyberFacebook4100R4Library
:prepareHeyzapUnifiedPlatform10010Library
:prepareReleaseDependencies
:compileReleaseAidl                                                                                 
:compileReleaseRenderscript
:generateReleaseBuildConfig
:generateReleaseResValues
:generateReleaseResources
:mergeReleaseResources
:processReleaseManifest FAILED

FAILURE: Build failed with an exception.
* What went wrong:                                                                                  
Execution failed for task ':processReleaseManifest'.
> com.android.manifmerger.ManifestMerger2$MergeFailureException: java.io.FileNotFoundException: C:\app\platforms\android\build\intermediates\exploded-aar\fyber-chartboost-6.5.0-r1\AndroidManifest.xml (Cannot find file)

* Try:

BUILD FAILED

Total time: 4.928 secs
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.

* What went wrong:                                                                                  
Execution failed for task ':processReleaseManifest'.
> com.android.manifmerger.ManifestMerger2$MergeFailureException: java.io.FileNotFoundException: C:\app\platforms\android\build\intermediates\exploded-aar\fyber-chartboost-6.5.0-r1\AndroidManifest.xml (Cannot find file)
vintage commented 7 years ago

Confirmed. Works well for iOS, but fail when building for Android.

kronicali commented 7 years ago

I am also having this issue. Edited: Solved: I went ahead and copied the manifest file manually to the location.