0 / 0 / 0
Регистрация: 30.11.2012
Сообщений: 25
|
||||||
1 | ||||||
Странные ошибки при компиляции проекта30.11.2012, 15:53. Показов 3645. Ответов 18
Метки нет (Все метки)
Доброго дня, форумчане! Создавал проект вида Списка контактов, но для списка резюме, выдаёт ошибку со строки:
В дереве проекта dialog.xml создан, и далее все строки, которые связаны с R.layout так же выдают ошибку. К сообщению прикладываю исходники в архиве, если не сложно помогите, пожалуйста! Заранее спасибо
0
|
30.11.2012, 15:53 | |
Ответы с готовыми решениями:
18
При компиляции нового (не измененного) проекта на движке Cocos2D выскакивает ошибка Ошибки при компиляции проекта Ошибки при компиляции проекта Ошибки доступа при компиляции проекта |
Mobile Developer
238 / 234 / 18
Регистрация: 10.05.2009
Сообщений: 917
|
|
01.12.2012, 18:47 | 2 |
А можно увидеть stack trace всей ошибки? и кусок кода где создается infalter а так же xml диалога?
0
|
0 / 0 / 0
Регистрация: 30.11.2012
Сообщений: 25
|
|
01.12.2012, 20:20 [ТС] | 3 |
0
|
Mobile Developer
238 / 234 / 18
Регистрация: 10.05.2009
Сообщений: 917
|
|
01.12.2012, 20:36 | 4 |
stack trace'а там нету и во вторых качать все исходники для двух кусочков кода излишне
1
|
0 / 0 / 0
Регистрация: 30.11.2012
Сообщений: 25
|
||||||||||||||||
01.12.2012, 20:47 [ТС] | 5 | |||||||||||||||
Все ошибки
Кликните здесь для просмотра всего текста
Description Resource Path Location Type
The method requery() from the type Cursor is deprecated SimplyDatabaseActivity.java /SimplyDatabase/src/ru/alexanderklimov/simplydatabase line 82 Java Problem edu cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 104 Java Problem lang cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 103 Java Problem email cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 102 Java Problem phone cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 101 Java Problem name cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 100 Java Problem dialog cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 98 Java Problem toast_notify cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 88 Java Problem toast_notify cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 79 Java Problem dialog cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 139 Java Problem btn_cancel cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 131 Java Problem The method requery() from the type Cursor is deprecated ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 127 Java Problem btn_ok cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 113 Java Problem title_add cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 111 Java Problem person_inf cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 107 Java Problem exp cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 106 Java Problem exp_edu cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 105 Java Problem phone cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 44 Java Problem email cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 44 Java Problem [I18N] Hardcoded string "Delete All", should use @string resource main.xml /SimplyDatabase/res/layout line 29 Android Lint Problem main cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 42 Java Problem [I18N] Hardcoded string "Add", should use @string resource main.xml /SimplyDatabase/res/layout line 22 Android Lint Problem This text field does not specify an inputType or a hint main.xml /SimplyDatabase/res/layout line 12 Android Lint Problem name cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 44 Java Problem [I18N] Hardcoded string "Enter content", should use @string resource main.xml /SimplyDatabase/res/layout line 10 Android Lint Problem The method managedQuery(Uri, String[], String, String[], String) from the type Activity is deprecated ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 38 Java Problem menu_edit cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 53 Java Problem menu_delete cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 57 Java Problem person_inf cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 44 Java Problem menu_add cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 50 Java Problem exp_edu cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 44 Java Problem exp cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 44 Java Problem lang cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 44 Java Problem edu cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 44 Java Problem name cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 141 Java Problem phone cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 142 Java Problem email cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 143 Java Problem lang cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 144 Java Problem edu cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 145 Java Problem exp_edu cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 146 Java Problem exp cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 147 Java Problem person_inf cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 148 Java Problem title_edit cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 162 Java Problem btn_ok cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 165 Java Problem The method requery() from the type Cursor is deprecated ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 180 Java Problem btn_cancel cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 185 Java Problem title_delete cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 194 Java Problem btn_ok cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 197 Java Problem The method requery() from the type Cursor is deprecated ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 201 Java Problem btn_cancel cannot be resolved or is not a field ContactListActivity.java /ContactList/src/ru/alexanderklimov/contactlist line 206 Java Problem Unparsed aapt error(s)! Check the console for output. ContactList line 1 Android ADT Problem The method startManagingCursor(Cursor) from the type Activity is deprecated SimplyDatabaseActivity.java /SimplyDatabase/src/ru/alexanderklimov/simplydatabase line 52 Java Problem The constructor SimpleCursorAdapter(Context, int, Cursor, String[], int[]) is deprecated SimplyDatabaseActivity.java /SimplyDatabase/src/ru/alexanderklimov/simplydatabase line 57 Java Problem xml диалог Кликните здесь для просмотра всего текста
Inflater Кликните здесь для просмотра всего текста
0
|
Mobile Developer
238 / 234 / 18
Регистрация: 10.05.2009
Сообщений: 917
|
||||||
01.12.2012, 21:24 | 6 | |||||
Мне вот интересно, а ты код пересматривал вообще , пытался разобраться что да как??
открой dialog.xm на строке номер 51 и ответь самому себе на вопрос откуда взялось( или откуда там возьмется) строка с именем field_email ?!
вместо import android.R должен быть import ru.alexander......contactlist.R; короче исправляй XML файлы после этого сможешь добавить этот импорт с твоими ресурсами
0
|
0 / 0 / 0
Регистрация: 30.11.2012
Сообщений: 25
|
|
01.12.2012, 21:46 [ТС] | 7 |
вроде дошло, ресурсов в файле strings.xml нет
0
|
lifestyle
|
01.12.2012, 21:55
#8
|
Не по теме: все еще вроде?!)
1
|
0 / 0 / 0
Регистрация: 30.11.2012
Сообщений: 25
|
|||||||||||
01.12.2012, 22:56 [ТС] | 9 | ||||||||||
я конечно дико извиняюсь, но теперь ошибка сменила местоположение и хотелось бы снова услышать Ваш мудрый совет, шо делать то?
Ошибка: Кликните здесь для просмотра всего текста
Создание базы:
0
|
Mobile Developer
238 / 234 / 18
Регистрация: 10.05.2009
Сообщений: 917
|
|
01.12.2012, 23:37 | 10 |
ошибка в том что есть дубликаты столбцы в таблице БД.
1. После столбца email идут одни дубликаты. 2. Посмотри на код и добавь пробелы где надо, и посмотри что в переменных лежит чтоб копий больше не было... Перед тем как задать вопрос пересмотри ошибку и код, в stack trace'е все доходчиво написано в чем и где проблема.
0
|
0 / 0 / 0
Регистрация: 30.11.2012
Сообщений: 25
|
|
02.12.2012, 00:10 [ТС] | 11 |
0
|
Mobile Developer
238 / 234 / 18
Регистрация: 10.05.2009
Сообщений: 917
|
|
02.12.2012, 00:20 | 12 |
12-01 22:54:07.647: E/AndroidRuntime(29756): java.lang.RuntimeException: Unable to get provider ru.alexanderklimov.contactlist.ContactProvider: android.database.sqlite.SQLiteException: duplicate column name: textTEXT: , while compiling: CREATE TABLE contact (_id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, phone TEXT, emailEMAIL, textTEXT, textTEXT,textTEXT,textTEXT, textTEXT,
12-01 22:54:07.647: E/AndroidRuntime(29756): Caused by: android.database.sqlite.SQLiteException: duplicate column name: textTEXT: , while compiling: CREATE TABLE contact (_id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, phone TEXT, emailEMAIL, textTEXT, textTEXT,textTEXT,textTEXT, textTEXT, ни о чем эти строки не говорят ? LANG, EDU, EXP_EDU а что лежит в этих переменных? что то мне подсказывает что во всех них лежит text LANG = "text"; EDU= "text"; EXP_EDU= "text";
1
|
0 / 0 / 0
Регистрация: 30.11.2012
Сообщений: 25
|
|
02.12.2012, 00:21 [ТС] | 13 |
да да, спасибо большое, уже подправил это недоразумение, сейчас разбираюсь с ошибкой: Отсутствует столбец person_inf, рыщу так сказать)
0
|
Mobile Developer
238 / 234 / 18
Регистрация: 10.05.2009
Сообщений: 917
|
|
02.12.2012, 00:31 | 14 |
А чего искать если он отсутствует в таблице - добавь его просто и все тут...
0
|
0 / 0 / 0
Регистрация: 30.11.2012
Сообщений: 25
|
||||||
02.12.2012, 00:35 [ТС] | 15 | |||||
так есть же, в команде CREATE_TABLE прописан же такой столбец
0
|
Mobile Developer
238 / 234 / 18
Регистрация: 10.05.2009
Сообщений: 917
|
|
02.12.2012, 00:45 | 16 |
PERSON_INF + "PERSON_INF" БД незнает такого типа данных вообще-то
0
|
0 / 0 / 0
Регистрация: 30.11.2012
Сообщений: 25
|
|||||||||||
02.12.2012, 00:51 [ТС] | 17 | ||||||||||
уточню, в блоке
0
|
Mobile Developer
238 / 234 / 18
Регистрация: 10.05.2009
Сообщений: 917
|
|
02.12.2012, 01:05 | 18 |
0
|
0 / 0 / 0
Регистрация: 30.11.2012
Сообщений: 25
|
|||||||||||
02.12.2012, 17:52 [ТС] | 19 | ||||||||||
типы данных я уже исправил же, в предыдущем сообщении
типы данных я сменил, пробелы расставил, всё компилируется без ошибок, НО....когда запускается проект на моём телефоне данных нет, вообще никаких, хотя вводится 3 тестовых записи, одна заполняет полностью все столбцы, 2 другие только имя и телефон, вывод идёт в TextView mail.xml
проблема решена, только вот надо как-то вывод структурировать, текст накладывается и совершенно нечитабельно получается
0
|
02.12.2012, 17:52 | |
02.12.2012, 17:52 | |
Помогаю со студенческими работами здесь
19
Ошибки при компиляции проекта в консоле Ошибки при компиляции OpenCV проекта Ошибки при компиляции проекта C++ на linux (makefile) Ошибки при компиляции проекта в Visual Studio Ошибки при компиляции проекта на Delphi XE7 При компиляции проекта в BDS2006 выскочили ошибки Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |