我发现AdMobPro插件存在问题
cordova插件添加https://github.com/floatinghotpot/cordova-admob-pro
cordova build android
栈跟踪
cordova build android ANDROID_HOME = C:\ Users \用户亚辛\应用程序数据\本地\的Android \ SDK JAVA_HOME = C:\ Program Files \ Java \ jdk1.8.0_102子项目路径: CordovaLib已弃用Task.leftShift(Closure)方法 计划在Gradle 5.0中删除。请用 而不是Task.doLast(Action)。 在build_axxz9tj19izrj5q0qkz0lbpfl.run(F:\ test1 \ platforms \ android \ build.gradle:137) JavaCompile.setDependencyCacheDir()方法已被弃用 计划在Gradle 4.0中删除。增量java编译 是一个孵化功能。 TaskInputs.source(Object)方法有 已弃用,计划在Gradle 4.0中删除。请 请改用TaskInputs.file(Object).skipWhenEmpty()。 :预生成 最新版本:preDebugBuild UP-TO-DATE:checkDebugManifest :preReleaseBuild UP-TO-DATE:CordovaLib:preBuild UP-TO-DATE :CordovaLib:preDebugBuild UP-TO-DATE:CordovaLib:checkDebugManifest :CordovaLib:prepareDebugDependencies:CordovaLib:compileDebugAidl :CordovaLib:compileDebugNdk UP-TO-DATE:CordovaLib:compileLint :CordovaLib:copyDebugLint UP-TO-DATE:CordovaLib:mergeDebugShaders :CordovaLib:compileDebugShaders:CordovaLib:generateDebugAssets :CordovaLib:mergeDebugAssets:CordovaLib:mergeDebugProguardFiles 最新消息:CordovaLib:packageDebugRenderscript UP-TO-DATE :CordovaLib:compileDebugRenderscript :CordovaLib:generateDebugResValues:CordovaLib:generateDebugResources :CordovaLib:packageDebugResources:CordovaLib:processDebugManifest :CordovaLib:generateDebugBuildConfig:CordovaLib:processDebugResources :CordovaLib:generateDebugSources :CordovaLib:incrementalDebugJavaCompilationSafeguard :CordovaLib:compileDebugJavaWithJavac :CordovaLib:compileDebugJavaWithJavac - 不是增量的(例如 输出已更改,之前没有执行等)。注意:有些输入 文件使用或覆盖已弃用的API。注意:重新编译 -Xlint:弃用细节。 :CordovaLib:processDebugJavaRes UP-TO-DATE:CordovaLib:transformResourcesWithMergeJavaResForDebug :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug :CordovaLib:mergeDebugJniLibFolders :CordovaLib:transformNative_libsWithMergeJniLibsForDebug :CordovaLib:transformNative_libsWithSyncJniLibsForDebug :CordovaLib:bundleDebug:CordovaLib:preReleaseBuild UP-TO-DATE :CordovaLib:checkReleaseManifest :CordovaLib:prepareReleaseDependencies:CordovaLib:compileReleaseAidl :CordovaLib:compileReleaseNdk UP-TO-DATE:CordovaLib:copyReleaseLint UP-TO-DATE:CordovaLib:mergeReleaseShaders :CordovaLib:compileReleaseShaders:CordovaLib:generateReleaseAssets :CordovaLib:mergeReleaseAssets:CordovaLib:mergeReleaseProguardFiles UP-TO-DATE:CordovaLib:packageReleaseRenderscript UP-TO-DATE :CordovaLib:compileReleaseRenderscript :CordovaLib:generateReleaseResValues :CordovaLib:generateReleaseResources :CordovaLib:packageReleaseResources:CordovaLib:processReleaseManifest :CordovaLib:generateReleaseBuildConfig :CordovaLib:processReleaseResources:CordovaLib:generateReleaseSources :CordovaLib:incrementalReleaseJavaCompilationSafeguard :CordovaLib:compileReleaseJavaWithJavac :CordovaLib:compileReleaseJavaWithJavac - 不是增量的(例如 输出已更改,之前没有执行等)。注意:有些输入 文件使用或覆盖已弃用的API。注意:重新编译 -Xlint:弃用细节。 :CordovaLib:processReleaseJavaRes UP-TO-DATE:CordovaLib:transformResourcesWithMergeJavaResForRelease :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease :CordovaLib:mergeReleaseJniLibFolders :CordovaLib:transformNative_libsWithMergeJniLibsForRelease :CordovaLib:transformNative_libsWithSyncJniLibsForRelease :CordovaLib:bundleRelease :prepareComAndroidSupportSupportCompat2520Library :prepareComAndroidSupportSupportCoreUi2520Library :prepareComAndroidSupportSupportCoreUtils2520Library :prepareComAndroidSupportSupportFragment2520Library :prepareComAndroidSupportSupportMediaCompat2520Library :prepareComAndroidSupportSupportV42520Library :prepareComGoogleAndroidGmsPlayServicesAds1104Library :prepareComGoogleAndroidGmsPlayServicesAdsLite1104Library :prepareComGoogleAndroidGmsPlayServicesBase1104Library :prepareComGoogleAndroidGmsPlayServicesBasement1104Library :prepareComGoogleAndroidGmsPlayServicesClearcut1104Library :prepareComGoogleAndroidGmsPlayServicesGass1104Library :prepareComGoogleAndroidGmsPlayServicesSafetynet1104Library :prepareComGoogleAndroidGmsPlayServicesTasks1104Library :prepareOrgApacheCordovaCordovaLib623DebugLibrary :prepareDebugDependencies:compileDebugAidl:compileDebugRenderscript :generateDebugBuildConfig:generateDebugResValues :generateDebugResources:mergeDebugResources错误:无法处理 文件 F:\ test1 \ platforms \ android \ build \ intermediates \ explosion-aar \ com.google.android.gms \ play-services-base \ 11.0.4 \ res \ drawable-xxhdpi-v4 \ common_google_signin_btn_icon_light_normal_background.9.png into F:\ test1 \ platforms \ android \ build \ intermediates \ res \ merged \ debug \ drawable-xxhdpi-v4 \ common_google_signin_btn_icon_light_normal_background.9.png:mergeDebugResources FAILED
失败:构建因异常而失败。
出了什么问题:任务执行失败':mergeDebugResources'。
错误:无法处理文件F:\ test1 \ platforms \ android \ build \ intermediates \ explosion-aar \ com.google.android.gms \ play-services-base \ 11.0.4 \ res \ drawable-xxhdpi- v4 \ common_google_signin_btn_icon_light_normal_background.9.png成 F:\ TEST1 \平台\机器人\构建\中间体\ RES \合并\调试\抽拉-xxhdpi-V4 \ common_google_signin_btn_icon_light_normal_background.9.png
尝试:使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。
建立失败
总时间:21.484秒错误:cmd:命令失败,退出代码为1 错误输出:注意:某些输入文件使用或覆盖已弃用的API。 注意:使用-Xlint重新编译:弃用以获取详细信息。注意:有些输入 文件使用或覆盖已弃用的API。注意:重新编译 -Xlint:弃用细节。
失败:构建因异常而失败。
出了什么问题:任务执行失败':mergeDebugResources'。
错误:无法处理文件F:\ test1 \ platforms \ android \ build \ intermediates \ explosion-aar \ com.google.android.gms \ play-services-base \ 11.0.4 \ res \ drawable-xxhdpi- v4 \ common_google_signin_btn_icon_light_normal_background.9.png成 F:\ TEST1 \平台\机器人\构建\中间体\ RES \合并\调试\抽拉-xxhdpi-V4 \ common_google_signin_btn_icon_light_normal_background.9.png
尝试:使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。
如果我删除此插件admobpro并构建它是工作