Не работает проект с android 2.3.3 в android studio

Ответить
spk
Сообщения: 6
Зарегистрирован: 25 фев 2014, 23:55

Не работает проект с android 2.3.3 в android studio

Сообщение spk » 25 фев 2014, 23:58

Пробовал первые уроки в android studio с sdk 4.4.2
Но будущее приложение хотелось бы писать с поддержкой android 2.3.3.
Проект собственно создается, но сразу вываливает 65 ошибок.
Вот лог:

Код: Выделить всё

Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
	C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.4.2\aapt.exe package -f --no-crunch -I C:\Program Files (x86)\Android\android-studio\sdk\platforms\android-10\android.jar -M C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\manifests\debug\AndroidManifest.xml -S C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug -A C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\assets\debug -m -J C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\source\r\debug -F C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\libs\app-debug.ap_ --debug-mode --custom-package com.example.myapplication2.app --output-text-symbols C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\symbols\debug
Error Code:
	1
Output:
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:7: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Holo.SearchResult.Subtitle'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:9: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Holo.SearchResult.Title'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:11: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Large'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:13: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Small'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:15: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Holo.SearchResult.Subtitle'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:17: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Holo.SearchResult.Title'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Large'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:21: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Small'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:23: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Menu'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:25: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Subtitle'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:27: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Subtitle.Inverse'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Title'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Title.Inverse'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Subtitle'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:35: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Subtitle.Inverse'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:37: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Title'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:39: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Title.Inverse'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v11\values.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v11\values.xml:9: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:41: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:52: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:66: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:77: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:91: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:102: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v11\values.xml:17: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v11\values.xml:19: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:116: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:118: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.Solid'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:120: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabBar'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:122: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabText'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:124: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabView'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:126: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionButton'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:128: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionButton.CloseMode'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:130: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionButton.Overflow'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:137: error: Error: No resource found that matches the given name: attr 'android:dividerPadding'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:136: error: Error: No resource found that matches the given name: attr 'android:showDividers'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v11\values.xml:27: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.AutoCompleteTextView'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:140: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.DropDownItem.Spinner'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:142: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ListPopupWindow'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:144: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ListView.DropDown'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:148: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.PopupMenu'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v11\values.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ProgressBar'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v11\values.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ProgressBar.Horizontal'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:150: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Spinner'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:152: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:154: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.Solid'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:156: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.Solid.Inverse'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:158: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabBar'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:160: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabBar.Inverse'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:162: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabText'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:164: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabText.Inverse'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:166: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabView'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:168: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabView.Inverse'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:170: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionButton'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:172: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionButton.CloseMode'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:174: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionButton.Overflow'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:176: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionMode.Inverse'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v11\values.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.AutoCompleteTextView'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:178: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.DropDownItem.Spinner'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:180: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ListPopupWindow'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:182: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ListView.DropDown'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:184: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.PopupMenu'.
	C:\Users\Egor\AndroidStudioProjects\MyApplication2\app\build\res\all\debug\values-v14\values.xml:186: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.Spinner'.

Аватара пользователя
Foenix
Сообщения: 4201
Зарегистрирован: 20 окт 2012, 12:01

Re: Не работает проект с android 2.3.3 в android studio

Сообщение Foenix » 26 фев 2014, 00:35

библиотеки надо по-нормальному загружать. На сайте андроид девелопер есть инструкции.
R.id.team

NullPointerException - что делать???
viewtopic.php?f=33&t=3899&p=28952#p28952
Где моя ошибка?
viewtopic.php?f=60&t=3198

spk
Сообщения: 6
Зарегистрирован: 25 фев 2014, 23:55

Re: Не работает проект с android 2.3.3 в android studio

Сообщение spk » 26 фев 2014, 06:36

То есть для android'a меньше версии 4.0 простое создание проекта не подходит?
Я так понимаю, что здесь конфликт в том, что в визарде я выбираю theme: none, но элементы темы он все равно пытается загрузить.
Вы не могли бы ткнуть носом, где прочитать как справится с этой проблемой?
На форуме уже задавался похожий вопрос: viewtopic.php?f=45&t=3035
Где человеку советовали обновить gradle, при условии того, что у меня сейчас версия 1.10, а у него 1.8 это врятли поможет.

Ответить