Hello Again,
Last time everything work perfect when try export then build with phonegap apk file... But this time i get error ..
This is what i did :
- choose " Minify Script "
- Choose Cordova
- Added the line in my project xml file
<plugin name="cocoon-plugin-ads-android-admob" />
Build Date: 2018-03-04 21:13:00 +0000
--------------------------------------------------------------------------------
PLUGIN OUTPUT
--------------------------------------------------------------------------------
Fetching plugin "cordova-plugin-inappbrowser" via npm
Installing "cordova-plugin-inappbrowser" at "2.0.2" for android
Fetching plugin "construct-mobile-advert@1.0.17" via npm
Installing "construct-mobile-advert" at "1.0.17" for android
Subproject Path: CordovaLib
Fetching plugin "cordova-plugin-whitelist" via npm
Installing "cordova-plugin-whitelist" at "1.3.3" for android
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
Fetching plugin "cocoon-plugin-ads-android-admob" via npm
Installing "cocoon-plugin-ads-android-admob" at "1.0.11" for android
Fetching plugin "cocoon-plugin-ads-android-common" via npm
Installing "cocoon-plugin-ads-android-common" at "1.0.4" for android
Fetching plugin "cocoon-plugin-ads-common" via npm
Installing "cocoon-plugin-ads-common" at "1.0.3" for android
Fetching plugin "cocoon-plugin-common" via npm
Installing "cocoon-plugin-common" at "1.0.2" for android
Subproject Path: CordovaLib
--------------------------------------------------------------------------------
COMPILE OUTPUT
--------------------------------------------------------------------------------
Subproject Path: CordovaLib
Running command: /project/gradlew cdvBuildDebug -b /project/build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDeprecatedNdk=true
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_a011ug76ipt3a39rdo20rcwem.run(/project/build.gradle:137)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
The ProjectDependency.getProjectConfiguration() method has been deprecated and is scheduled to be removed in Gradle 4.0.
ModuleDependency.getConfiguration() has been deprecated and is scheduled to be removed in Gradle 4.0. Use ModuleDependency.getTargetConfiguration() instead.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'project'.
Could not resolve all dependencies for configuration ':_debugApkCopy'.
> Could not find com.google.android.gms:play-services-ads:11.2.0.
Required by:
project :
> Could not find com.google.android.gms:play-services-ads:11.2.0.
Required by:
project :
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1.447 secs
Command finished with error code 1: /project/gradlew cdvBuildDebug,-b,/project/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true
Error: /project/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'project'.
Could not resolve all dependencies for configuration ':_debugApkCopy'.
> Could not find com.google.android.gms:play-services-ads:11.2.0.
Required by:
project :
> Could not find com.google.android.gms:play-services-ads:11.2.0.
Required by:
project :
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)