com.android.support:support-v4,com.android.support:support-v4 搞事情

这是一个 com.android.support:support-v4 包不合适的错误

phonegap-plugin-barcodescanner 为例。diners-barcodescanner.gradle 文件里面 compile 'com.android.support:support-v4:+' 改为 compile 'com.android.support:support-v4:27+' 应该能好。

Android 目录下面 project.properties 里面也有类似配置。但是一般改插件里面的比较好吧。

➜ A git:(master) ✗ cordova build android

CHCP plugin after prepare hook:

config-file set to http://.../www/chcp.json

ANDROID_HOME=/Users/felix/Library/Android/sdk

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home

Subproject Path: CordovaLib

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_3j0awvevr86fmrv4tdel4mctj.run(/.../platforms/android/build.gradle:143)

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.

:preBuild UP-TO-DATE

... 省略 ...

:processDebugManifest UP-TO-DATE

:processDebugResourcesERROR: In FontFamilyFont, unable to find attribute android:fontVariationSettings

ERROR: In FontFamilyFont, unable to find attribute android:ttcIndex

FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':processDebugResources'.

> com.android.ide.common.process.ProcessException: Failed to execute aapt

* 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.564 secs

(node:31458) UnhandledPromiseRejectionWarning: Error: /.../platforms/android/gradlew: Command failed with exit code 1 Error output:

ERROR: In FontFamilyFont, unable to find attribute android:fontVariationSettings

ERROR: In FontFamilyFont, unable to find attribute android:ttcIndex

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':processDebugResources'.

> com.android.ide.common.process.ProcessException: Failed to execute aapt

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

at ChildProcess.whenDone (/.../platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)

at ChildProcess.emit (events.js:159:13)

at maybeClose (internal/child_process.js:943:16)

at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)

(node:31458) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

(node:31458) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

➜ A git:(master) ✗ cordova build android

CHCP plugin after prepare hook:

config-file set to http://.../www/chcp.json

ANDROID_HOME=/Users/felix/Library/Android/sdk

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home

Subproject Path: CordovaLib

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_3j0awvevr86fmrv4tdel4mctj.run(/.../platforms/android/build.gradle:143)

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.

:preBuild UP-TO-DATE

... 省略 ...

:cdvBuildDebug

BUILD SUCCESSFUL

Total time: 18.579 secs

Built the following apk(s):

/.../platforms/android/build/outputs/apk/android-debug.apk

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值