现在碰到安装了相机插件报错。
Prepared android project successfully
No scripts found for hook "after_prepare".
No scripts found for hook "before_compile".
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=/usr/local/android-sdk-linux (DEPRECATED)
Using Android SDK: /usr/local/android-sdk-linux
Subproject Path: CordovaLib
Subproject Path: app
Gradle Distribution URL: https://services.gradle.org/distributions/gradle-6.5-all.zip
> Task :app:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/root/.gradle/caches/transforms-2/files-2.1/1571ccc0f7a263c23c091db147965d8b/support-compat-27.1.1/res/values/values.xml:16:5-19:208: AAPT: error: resource android:attr/fontStyle not found.
/root/.gradle/caches/transforms-2/files-2.1/1571ccc0f7a263c23c091db147965d8b/support-compat-27.1.1/res/values/values.xml:16:5-19:208: AAPT: error: resource android:attr/font not found.
/root/.gradle/caches/transforms-2/files-2.1/1571ccc0f7a263c23c091db147965d8b/support-compat-27.1.1/res/values/values.xml:16:5-19:208: AAPT: error: resource android:attr/fontWeight not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
23 actionable tasks: 23 executed
Command failed with exit code 1: /root/qqqq/platforms/android/gradlew cdvBuildDebug -b /root/qqqq/platforms/android/build.gradle
Prepared android project successfully
No scripts found for hook "after_prepare".
No scripts found for hook "before_compile".
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=/usr/local/android-sdk-linux (DEPRECATED)
Using Android SDK: /usr/local/android-sdk-linux
Subproject Path: CordovaLib
Subproject Path: app
Gradle Distribution URL: https://services.gradle.org/distributions/gradle-6.5-all.zip
> Task :app:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/root/.gradle/caches/transforms-2/files-2.1/1571ccc0f7a263c23c091db147965d8b/support-compat-27.1.1/res/values/values.xml:16:5-19:208: AAPT: error: resource android:attr/fontStyle not found.
/root/.gradle/caches/transforms-2/files-2.1/1571ccc0f7a263c23c091db147965d8b/support-compat-27.1.1/res/values/values.xml:16:5-19:208: AAPT: error: resource android:attr/font not found.
/root/.gradle/caches/transforms-2/files-2.1/1571ccc0f7a263c23c091db147965d8b/support-compat-27.1.1/res/values/values.xml:16:5-19:208: AAPT: error: resource android:attr/fontWeight not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
23 actionable tasks: 23 executed
Command failed with exit code 1: /root/qqqq/platforms/android/gradlew cdvBuildDebug -b /root/qqqq/platforms/android/build.gradle