- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
Ionic 命令有问题:Ionic build android
Here我正在按照教程 Salesforce 创建一个连接到 Salesforce API 的应用程序。 (联系人等)。
现在,当我构建 android 时,我遇到了这个问题:
:processDebugResources
/home/r.**/Workspace/IonicApp/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:32: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/sf__icon').
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
>
com.android.ide.common.internal.LoggedErrorException: Failed to run command:
/usr/local/android-sdk-linux/build-tools/25.0.0/aapt package -f --no-crunch -I /usr/local/android-sdk-linux/platforms/android-23/android.jar -M /home/r.**/Workspace/IonicApp/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml -S /home/r.**/Workspace/IonicApp/platforms/android/build/intermediates/res/debug -A /home/r.**/Workspace/IonicApp/platforms/android/build/intermediates/assets/debug -m -J /home/r.**/Workspace/IonicApp/platforms/android/build/generated/source/r/debug -F /home/r.**/Workspace/IonicApp/platforms/android/build/intermediates/res/resources-debug.ap_ --debug-mode --custom-package com.ionicframework.ionicapp508454 -0 apk --output-text-symbols /home/r.**/Workspace/IonicApp/platforms/android/build/intermediates/symbols/debug
Error Code:
1
Output:
/home/r.**/Workspace/IonicApp/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:32: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/sf__icon').
* 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: 3.305 secs
Error: /home/r.**/Workspace/IonicApp/platforms/android/gradlew: Command failed with exit code 1
我重新启动了教程 2 次,但仍然出现此错误。可能是因为我做的是 Android 应用程序,而不是像教程那样的 Ios。
这个文件丢失了什么,它应该在哪里?
如果您需要 XML:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ionicframework.ionicapp508454"
android:hardwareAccelerated="true"
android:versionCode="18"
android:versionName="0.0.1" >
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="23" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission
android:name="com.ionicframework.ionicapp508454.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.ionicframework.ionicapp508454.permission.C2D_MESSAGE" />
<application
android:name="com.salesforce.androidsdk.phonegap.app.HybridApp"
android:hardwareAccelerated="true"
android:icon="@drawable/sf__icon"
android:label="@string/app_name"
android:manageSpaceActivity="com.salesforce.androidsdk.ui.ManageSpaceActivity" >
<activity
android:name="com.adobe.phonegap.push.PushHandlerActivity"
android:exported="true" />
<receiver
android:name="com.google.android.gms.gcm.GcmReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.ionicframework.ionicapp508454" />
</intent-filter>
</receiver>
<service
android:name="com.adobe.phonegap.push.GCMIntentService"
android:exported="false" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</service>
<service
android:name="com.adobe.phonegap.push.PushInstanceIDListenerService"
android:exported="false" >
<intent-filter>
<action android:name="com.google.android.gms.iid.InstanceID" />
</intent-filter>
</service>
<service
android:name="com.adobe.phonegap.push.RegistrationIntentService"
android:exported="false" />
<activity
android:name="com.salesforce.androidsdk.phonegap.ui.SalesforceDroidGapActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
android:label="@string/app_name"
android:theme="@android:style/Theme.Black.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.google.android.gms.common.api.GoogleApiActivity"
android:exported="false"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
</application>
</manifest>
一些信息:
我创建了一个 Android 应用。
Cordova-android 是 5.0.0 版本,因为 6.0.0 与 api salesforce 存在不匹配问题。
我是 Ionic/Cordova 和移动开发的初学者。也许解决方案是显而易见的。
最佳答案
错误输出表明构建只是由于缺少图标资源而失败:找不到与给定名称匹配的资源(在“图标”处,值为“@drawable/sf__icon”)。
虽然 SalesforceSDK 包含这些文件,但它们似乎没有正确添加到 Android 项目中:
虽然复制粘贴可能会解决问题,但仍然想知道为什么插件没有按预期在 res/drawable 文件夹中添加可绘制对象!
关于android - Ionic 上的任务 ':processDebugResources' 执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40606277/
今天在构建/制作项目时遇到了这个令人沮丧的错误,这似乎是因为使用构建工具 19.0.1、19.0.2 和 19.0.3 安装 Android SDK 22.6(也尝试过 22.6.1)。 aapt 错
我最近在尝试导出我的应用程序时遇到了这个FAILURE。 我正在使用最新的工具和更新的一切。我发现了大约 10 个帖子的答案,指向 sdk 的更改版本。 我正在尝试通过 phonegap build
使用 ionic 构建 android 应用程序: [root@localhost ionic-app-base-master]# ionic build android 控制台日志显示这些消息: R
所以我尝试在 Android Studio 中构建我的项目,但每次加载或执行项目时,我都会收到以下错误。我不知道如何解决这个问题... Execution failed for task ':oefe
Gradle说他由于一个未知的错误而无法正确构建,但是我没有特别更改任何内容,那为什么会发生呢? 我已经看到答案,说您必须将gradle.build文件版本更改为this one,以安装32位depe
我在 Windows 上。我至少在 Android Studio 上为 Marshmallow 创建了一个新项目。 到目前为止,我所做的唯一一件事就是生成主要 Activity ,这是一个带有 Vie
当我想在 ionic(空白的测试项目)上构建应用程序时,命令“ionic cordova build android”返回此错误: 构建失败 总时间:1 分 13.795 秒 Error: /home
我正在使用 bitbucket,因此我可以与其他开发人员合作,但似乎我们无法让它完美地工作。从他那里提取更改后,我收到了这个错误: Execution failed for task ':app:pr
我显然不知道为什么会显示此错误。所有解决方案表示赞赏。 出了什么问题: 任务':app:processDebugResources'的执行失败。 Android resource linking fa
我用 Cordova 和 Ionic 创建了一个应用程序。 我在 iOS 上收到了应用程序构建成功。 我正在尝试在 Android 上构建这个应用程序(通过 cordova build android
成员请帮我解决这个问题!我已经尝试了书中的所有技巧来使我的 flutter 项目在 android studio 上运行。但仍然遇到相同的主题问题。下面 VS 代码的详细信息 失败:构建失败,出现异常
Ionic 命令有问题:Ionic build android Here我正在按照教程 Salesforce 创建一个连接到 Salesforce API 的应用程序。 (联系人等)。 现在,当我构建
不太清楚为什么我不断收到此错误: errors 经过一番搜索,问题似乎出在我的 build.gradle 文件中,但我找不到它。我已附上该文件,但还附上了我的错误的屏幕截图,以防我遗漏了某些内容。但这
构建 Gradle 时我收到此错误消息: Error:00:29:02.408 [ERROR] [org.gradle.internal.buildevents.BuildExceptionRep
我得到的错误是这样的: FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for
Bug:我想将 Realm 数据库从 4.2.0 版本更新到 4.3.3,但是在 gradle sync 之后,它会失败 目标 将领域从 4.2.0 更新到 4.3.3 预期结果 Gradle 同步会
错误:任务 ':app:processDebugResources' 执行失败。 com.android.ide.common.process.ProcessException: org.gradle
今天我在运行我的 Flutter 项目时遇到了一些未知错误,根据我的研究,它的解决方案不可用。如果您知道如何解决,请告诉我。在今天之前,我没有遇到过这样的错误。为什么它只发生在今天。是因为 Gradl
打开一个我两个月没碰过的项目进行轻微更新,更新 Android Studio 后我无法编译代码而不会出现以下错误。 过去两个小时我一直在用谷歌搜索这个问题,但无法解决。我已经尝试了其他类似线程中的几乎
这是我的xml文件的代码 我认为我的代码没有错,但我遇到了这些错误 最佳答案 如果您看到如下所示的错误: Gradle: Execution failed
我是一名优秀的程序员,十分优秀!