gpt4 book ai didi

android - 错误 :In SherlockSpinner, 找不到属性 android:popupPromptView

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:33:38 25 4
gpt4 key购买 nike

我的项目包含“ActionBar Sherlock Pull to refresh”并且在 API 级别 21 和更早版本中编译和运行良好,但是当我尝试使用 API 22 编译它时,出现此错误:

Error:In <declare-styleable> SherlockSpinner, unable to find attribute android:popupPromptView
Error:Execution failed for task ':app:processDebugResources'.

com.android.ide.common.internal.LoggedErrorException: Failed to run command: /Users/m./Android_SDK/build-tools/21.1.2/aapt package -f --no-crunch -I /Users/m./Android_SDK/platforms/android-22/android.jar -M /Users/m./AndroidStudioProjects/-android/android/build/intermediates/manifests/full/debug/AndroidManifest.xml -S /Users/m./AndroidStudioProjects/-android/android/build/intermediates/res/debug -A /Users/m./AndroidStudioProjects/-android/android/build/intermediates/assets/debug -m -J /Users/m./AndroidStudioProjects/-android/android/build/generated/source/r/debug -F /Users/m./AndroidStudioProjects/-android/android/build/intermediates/res/resources-debug.ap_ --debug-mode --custom-package ir.fax.android -0 apk --output-text-symbols /Users/m./AndroidStudioProjects/-android/android/build/intermediates/symbols/debug Error Code: 1 Output: warning: string 'dashboard_account_type_click_msg_1' has no default translation. warning: string 'dashboard_number_click_msg_1' has no default translation. warning: string 'dashboard_number_click_msg_2' has no default translation. warning: string 'dashboard_number_click_msg_3' has no default translation. warning: string 'days_after' has no default translation. warning: string 'days_before' has no default translation. warning: string 'extra_cred_response' has no default translation. warning: string 'free_pages_remaining_server_response' has no default translation. warning: string 'hours_after' has no default translation. warning: string 'hours_before' has no default translation. warning: string 'invalid' has no default translation. warning: string 'invit1' has no default translation. warning: string 'invit2' has no default translation. warning: string 'invit25' has no default translation. warning: string 'invit3' has no default translation. warning: string 'minutes_after' has no default translation. warning: string 'minutes_before' has no default translation. warning: string 'seconds_after' has no default translation. warning: string 'seconds_before' has no default translation. warning: string 'total_page_remaining_response' has no default translation. ERROR: In SherlockSpinner, unable to find attribute android:popupPromptView

最佳答案

如果您使用的是 gradle,则解决方案:

android {
compileSdkVersion 22
buildToolsVersion '22.0.1'
[...]
}

如果您在 Eclipse 中使用 android projet:在 SDK 管理器中将构建工具版本升级到 22.0.1。

问题原因:

/Users/m./Android_SDK/build-tools/21.1.2应该匹配/Users/m./Android_SDK/platforms/android-22

我在下载 android SDK 平台 22 后遇到了同样的问题。将构建工具升级到 22.0.1 修复了它。

关于android - 错误 :In <declare-styleable> SherlockSpinner, 找不到属性 android:popupPromptView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29726125/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com