Вверх ↑
Ответов: 110
Рейтинг: 5
#1: 2013-11-07 19:01:03 ЛС | профиль | цитата
sаmakacd, в обновленных примерах у элемента Memory, следует поменять свойство DataType с Object на String, иначе компилятор выдаст ошибки:

Полный лог

Подготовка к сборке проекта...
Генерация кода целевого языка
Компоновка проекта...
Command line: Android.exe "DrogrammingHiasmElementsandroidcodeImageDownload.java" "DrogrammingHiasmElementsandroidcode" "DrogrammingHiasmElementsandroidExample"
Unable to locate tools.jar. Expected to find it in Crogram Files (x86)Javajre7lib ools.jar
Buildfile: DrogrammingHiasmElementsandroidcode esultuild.xml

-set-mode-check:

-set-debug-files:

-set-debug-mode:

-debug-obfuscation-check:

-setup:
[echo] Creating output directories if needed...
[mkdir] Created dir: DrogrammingHiasmElementsandroidcode esultin es
[echo] Gathering info for HiAsmMain...
[setup] Android SDK Tools Revision 19
[setup] Project Target: Android 4.0.3
[setup] API level: 15
[setup]
[setup] ------------------
[setup] Resolving library dependencies:
[setup] No library dependencies.
[setup]
[setup] ------------------
[setup] API<=15: Adding annotations.jar to the classpath.
[setup]
[setup] ------------------

-build-setup:
[mkdir] Created dir: DrogrammingHiasmElementsandroidcode esultinclasses

-pre-build:

-code-gen:
[echo] ----------
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[renderscript] No RenderScript files to compile.
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
[javac] Compiling 4 source files to DrogrammingHiasmElementsandroidcode esultinclasses
[javac] DrogrammingHiasmElementsandroidcode esultsrchiasmhiasmprojectHiasmMain.java:55: error: inconvertible types
[javac] Toast.makeText(getApplicationContext(), ((String) mdata7), Toast.LENGTH_LONG).show();
[javac] ^
[javac] required: String
[javac] found: Memory
[javac] DrogrammingHiasmElementsandroidcode esultsrchiasmhiasmprojectHiasmMain.java:62: error: inconvertible types
[javac] Toast.makeText(getApplicationContext(), ((String) mdata7), Toast.LENGTH_LONG).show();
[javac] ^
[javac] required: String
[javac] found: Memory
[javac] Note: DrogrammingHiasmElementsandroidcode esultsrchiasmhiasmprojectMemory.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 errors

BUILD FAILED
DrogrammingHiasmcompilerandroid oolsantuild.xml:651: The following error occurred while executing this line:
DrogrammingHiasmcompilerandroid oolsantuild.xml:672: Compile failed; see the compiler error output for details.

Total time: 1 second
Picked up _JAVA_OPTIONS: -Xmx512M
Сборка завершена.

Версия Java SE Development Kit 7 Update 40
карма: 0

0