PDA

View Full Version : error compile for android build.xml



nabouill
11-20-2013, 04:44 PM
Hello,
I trying to Compiling for Android from Windows, but i have always the same problem (i have trying to compile RTBareBones, RT3DApp, RTPhysics, RTSimpleApp....)

log:



....
....

"Compile++ arm : rtbarebones <= StreamingInstanceFile.cpp
"Compile++ arm : rtbarebones <= FocusUpdateComponent.cpp♪♪◙"Compile++ arm : rt
barebones <= FocusInputComponent.cpp
"Compile++ arm : rtbarebones <= CustomInputComponent.cpp
"Compile++ arm : rtbarebones <= App.cpp
"Compile++ arm : rtbarebones <= ArcadeInputComponent.cpp
Prebuilt : libgnustl_static.a <= <NDK>/sources/cxx-stl/gnu-libstdc++/libs/
armeabi/
SharedLibrary : librtbarebones.so
Install : librtbarebones.so => libs/armeabi/librtbarebones.so
Buildfile: C:\_DEV\proton\RTBareBones\android\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 22.3.0
[checkenv] Installed at C:\_DEV\android-sdk\sdk

-setup:
[echo] Project Name: RTBareBones
[gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.0
[echo] Resolving Build Target for RTBareBones...
[gettarget] Project Target: Android 4.0
[gettarget] API level: 14
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\_DEV\proton\RTBareBones\android\bin
[mkdir] Created dir: C:\_DEV\proton\RTBareBones\android\bin\res
[mkdir] Created dir: C:\_DEV\proton\RTBareBones\android\bin\rsObj
[mkdir] Created dir: C:\_DEV\proton\RTBareBones\android\bin\rsLibs
[mkdir] Created dir: C:\_DEV\proton\RTBareBones\android\gen
[mkdir] Created dir: C:\_DEV\proton\RTBareBones\android\bin\classes
[mkdir] Created dir: C:\_DEV\proton\RTBareBones\android\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for RTBareBones...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on

-pre-build:

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
[javac] C:\_DEV\proton\RTBareBones\android\build.xml:155: warning: 'includea
ntruntime' was not set, defaulting to build.sysclasspath=last; set to false for
repeatable builds
[javac] Compiling 14 source files to C:\_DEV\proton\RTBareBones\android\bin\
classes
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:56: error: package com.android.vending.licensing does n
ot exist
[javac] import com.android.vending.licensing.AESObfuscator;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:57: error: package com.android.vending.licensing does n
ot exist
[javac] import com.android.vending.licensing.LicenseChecker;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:58: error: package com.android.vending.licensing does n
ot exist
[javac] import com.android.vending.licensing.LicenseCheckerCallba ck;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:59: error: package com.android.vending.licensing does n
ot exist
[javac] import com.android.vending.licensing.ServerManagedPolicy;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:60: error: package com.android.vending.licensing does n
ot exist
[javac] import com.android.vending.licensing.StrictPolicy;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\util\IabHelper.java:32: error: package com.android.vending.billing does not
exist
[javac] import com.android.vending.billing.IInAppBillingService;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:172: error: cannot find symbol
[javac] private LicenseCheckerCallback mLicenseCheckerCallback;
[javac] ^
[javac] symbol: class LicenseCheckerCallback
[javac] location: class SharedActivity
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:173: error: cannot find symbol
[javac] private LicenseChecker mChecker;
[javac] ^
[javac] symbol: class LicenseChecker
[javac] location: class SharedActivity
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\util\IabHelper.java:99: error: cannot find symbol
[javac] IInAppBillingService mService;
[javac] ^
[javac] symbol: class IInAppBillingService
[javac] location: class IabHelper
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:175: error: cannot find symbol
[javac] private class MyLicenseCheckerCallback implements LicenseChe
ckerCallback
[javac] ^
[javac] symbol: class LicenseCheckerCallback
[javac] location: class SharedActivity
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:211: error: cannot find symbol
[javac] public void applicationError(ApplicationErrorCode errorC
ode)
[javac] ^
[javac] symbol: class ApplicationErrorCode
[javac] location: class SharedActivity.MyLicenseCheckerCallback
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedMultiTouchInput.java:41: error: package com.android.vending.licensing
does not exist
[javac] import com.android.vending.licensing.AESObfuscator;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedMultiTouchInput.java:42: error: package com.android.vending.licensing
does not exist
[javac] import com.android.vending.licensing.LicenseChecker;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedMultiTouchInput.java:43: error: package com.android.vending.licensing
does not exist
[javac] import com.android.vending.licensing.LicenseCheckerCallba ck;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedMultiTouchInput.java:44: error: package com.android.vending.licensing
does not exist
[javac] import com.android.vending.licensing.ServerManagedPolicy;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedMultiTouchInput.java:45: error: package com.android.vending.licensing
does not exist
[javac] import com.android.vending.licensing.StrictPolicy;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:284: error: cannot find symbol
[javac] mChecker = new LicenseChecker(
[javac] ^
[javac] symbol: class LicenseChecker
[javac] location: class SharedActivity
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:286: error: cannot find symbol
[javac]
new ServerManagedPolicy(this,new AESObfuscator(SALT, getPackageName(), d
eviceId)),
[javac]
^
[javac] symbol: class ServerManagedPolicy
[javac] location: class SharedActivity
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:286: error: cannot find symbol
[javac]
new ServerManagedPolicy(this,new AESObfuscator(SALT, getPackageName(), d
eviceId)),
[javac]
^
[javac] symbol: class AESObfuscator
[javac] location: class SharedActivity
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\util\IabHelper.java:225: error: package IInAppBillingService does not exist

[javac] mService = IInAppBillingService.Stub.asInterface(ser
vice);
[javac] ^
[javac] Note: C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\r
tbarebones\SharedActivity.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 20 errors

BUILD FAILED
C:\_DEV\proton\RTBareBones\android\build.xml:130: The following error occurred w
hile executing this line:
C:\_DEV\proton\RTBareBones\android\build.xml:155: Compile failed; see the compil
er error output for details.

Total time: 1 second
Updated local.properties
Updated file C:\_DEV\proton\RTBareBones\android\proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
1 fichier(s) copié(s).
can't find 'bin\RTBareBones-debug.apk' to install
Appuyez sur une touche pour continuer...



in my build.xml file in line 130 to 155, i have this:


<do-only-if-manifest-hasCode elseText="hasCode = false. Skipping...">
<!-- If android rules are used for a test project, its classpath should include
tested project's location -->
<condition property="extensible.classpath"
value="${tested.project.absolute.dir}/bin/classes"
else=".">
<isset property="tested.project.absolute.dir" />
</condition>
<condition property="extensible.libs.classpath"
value="${tested.project.absolute.dir}/${jar.libs.dir}"
else="${jar.libs.dir}">
<isset property="tested.project.absolute.dir" />
</condition>
<path id="project.javac.classpath">
<path refid="tested.project.classpath" />
<path refid="project.all.jars.path" />
</path>
<javac encoding="${java.encoding}"
source="${java.source}" target="${java.target}"
debug="true" extdirs=""
destdir="${out.classes.absolute.dir}"
verbose="${verbose}"
classpath="${extensible.classpath}"
bootclasspathref="project.target.class.path"
classpathref="project.javac.classpath"
>

I use the last android SDK, android NDK R8 (i have testing with the r9, but i yet more error), apache-ant-1.9.2, java7 and the lastest version of proton SDK from svn.

Can you help me please ?

Thanks in advance

feelthat
11-20-2013, 09:19 PM
remove RT3DApp\android\.classpath
open eclipse again

and main.java only need one not two, check it becareful

or try my ogles2 version compare it and try again.



Hello,
I trying to Compiling for Android from Windows, but i have always the same problem (i have trying to compile RTBareBones, RT3DApp, RTPhysics, RTSimpleApp....)

log:



....
....

"Compile++ arm : rtbarebones <= StreamingInstanceFile.cpp
"Compile++ arm : rtbarebones <= FocusUpdateComponent.cpp♪♪◙"Compile++ arm : rt
barebones <= FocusInputComponent.cpp
"Compile++ arm : rtbarebones <= CustomInputComponent.cpp
"Compile++ arm : rtbarebones <= App.cpp
"Compile++ arm : rtbarebones <= ArcadeInputComponent.cpp
Prebuilt : libgnustl_static.a <= <NDK>/sources/cxx-stl/gnu-libstdc++/libs/
armeabi/
SharedLibrary : librtbarebones.so
Install : librtbarebones.so => libs/armeabi/librtbarebones.so
Buildfile: C:\_DEV\proton\RTBareBones\android\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 22.3.0
[checkenv] Installed at C:\_DEV\android-sdk\sdk

-setup:
[echo] Project Name: RTBareBones
[gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.0
[echo] Resolving Build Target for RTBareBones...
[gettarget] Project Target: Android 4.0
[gettarget] API level: 14
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\_DEV\proton\RTBareBones\android\bin
[mkdir] Created dir: C:\_DEV\proton\RTBareBones\android\bin\res
[mkdir] Created dir: C:\_DEV\proton\RTBareBones\android\bin\rsObj
[mkdir] Created dir: C:\_DEV\proton\RTBareBones\android\bin\rsLibs
[mkdir] Created dir: C:\_DEV\proton\RTBareBones\android\gen
[mkdir] Created dir: C:\_DEV\proton\RTBareBones\android\bin\classes
[mkdir] Created dir: C:\_DEV\proton\RTBareBones\android\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for RTBareBones...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on

-pre-build:

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
[javac] C:\_DEV\proton\RTBareBones\android\build.xml:155: warning: 'includea
ntruntime' was not set, defaulting to build.sysclasspath=last; set to false for
repeatable builds
[javac] Compiling 14 source files to C:\_DEV\proton\RTBareBones\android\bin\
classes
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:56: error: package com.android.vending.licensing does n
ot exist
[javac] import com.android.vending.licensing.AESObfuscator;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:57: error: package com.android.vending.licensing does n
ot exist
[javac] import com.android.vending.licensing.LicenseChecker;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:58: error: package com.android.vending.licensing does n
ot exist
[javac] import com.android.vending.licensing.LicenseCheckerCallba ck;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:59: error: package com.android.vending.licensing does n
ot exist
[javac] import com.android.vending.licensing.ServerManagedPolicy;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:60: error: package com.android.vending.licensing does n
ot exist
[javac] import com.android.vending.licensing.StrictPolicy;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\util\IabHelper.java:32: error: package com.android.vending.billing does not
exist
[javac] import com.android.vending.billing.IInAppBillingService;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:172: error: cannot find symbol
[javac] private LicenseCheckerCallback mLicenseCheckerCallback;
[javac] ^
[javac] symbol: class LicenseCheckerCallback
[javac] location: class SharedActivity
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:173: error: cannot find symbol
[javac] private LicenseChecker mChecker;
[javac] ^
[javac] symbol: class LicenseChecker
[javac] location: class SharedActivity
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\util\IabHelper.java:99: error: cannot find symbol
[javac] IInAppBillingService mService;
[javac] ^
[javac] symbol: class IInAppBillingService
[javac] location: class IabHelper
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:175: error: cannot find symbol
[javac] private class MyLicenseCheckerCallback implements LicenseChe
ckerCallback
[javac] ^
[javac] symbol: class LicenseCheckerCallback
[javac] location: class SharedActivity
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:211: error: cannot find symbol
[javac] public void applicationError(ApplicationErrorCode errorC
ode)
[javac] ^
[javac] symbol: class ApplicationErrorCode
[javac] location: class SharedActivity.MyLicenseCheckerCallback
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedMultiTouchInput.java:41: error: package com.android.vending.licensing
does not exist
[javac] import com.android.vending.licensing.AESObfuscator;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedMultiTouchInput.java:42: error: package com.android.vending.licensing
does not exist
[javac] import com.android.vending.licensing.LicenseChecker;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedMultiTouchInput.java:43: error: package com.android.vending.licensing
does not exist
[javac] import com.android.vending.licensing.LicenseCheckerCallba ck;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedMultiTouchInput.java:44: error: package com.android.vending.licensing
does not exist
[javac] import com.android.vending.licensing.ServerManagedPolicy;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedMultiTouchInput.java:45: error: package com.android.vending.licensing
does not exist
[javac] import com.android.vending.licensing.StrictPolicy;
[javac] ^
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:284: error: cannot find symbol
[javac] mChecker = new LicenseChecker(
[javac] ^
[javac] symbol: class LicenseChecker
[javac] location: class SharedActivity
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:286: error: cannot find symbol
[javac]
new ServerManagedPolicy(this,new AESObfuscator(SALT, getPackageName(), d
eviceId)),
[javac]
^
[javac] symbol: class ServerManagedPolicy
[javac] location: class SharedActivity
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\SharedActivity.java:286: error: cannot find symbol
[javac]
new ServerManagedPolicy(this,new AESObfuscator(SALT, getPackageName(), d
eviceId)),
[javac]
^
[javac] symbol: class AESObfuscator
[javac] location: class SharedActivity
[javac] C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\rtbareb
ones\util\IabHelper.java:225: error: package IInAppBillingService does not exist

[javac] mService = IInAppBillingService.Stub.asInterface(ser
vice);
[javac] ^
[javac] Note: C:\_DEV\proton\RTBareBones\android\temp_final_src\ com\rtsoft\r
tbarebones\SharedActivity.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 20 errors

BUILD FAILED
C:\_DEV\proton\RTBareBones\android\build.xml:130: The following error occurred w
hile executing this line:
C:\_DEV\proton\RTBareBones\android\build.xml:155: Compile failed; see the compil
er error output for details.

Total time: 1 second
Updated local.properties
Updated file C:\_DEV\proton\RTBareBones\android\proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
1 fichier(s) copié(s).
can't find 'bin\RTBareBones-debug.apk' to install
Appuyez sur une touche pour continuer...



in my build.xml file in line 130 to 155, i have this:


<do-only-if-manifest-hasCode elseText="hasCode = false. Skipping...">
<!-- If android rules are used for a test project, its classpath should include
tested project's location -->
<condition property="extensible.classpath"
value="${tested.project.absolute.dir}/bin/classes"
else=".">
<isset property="tested.project.absolute.dir" />
</condition>
<condition property="extensible.libs.classpath"
value="${tested.project.absolute.dir}/${jar.libs.dir}"
else="${jar.libs.dir}">
<isset property="tested.project.absolute.dir" />
</condition>
<path id="project.javac.classpath">
<path refid="tested.project.classpath" />
<path refid="project.all.jars.path" />
</path>
<javac encoding="${java.encoding}"
source="${java.source}" target="${java.target}"
debug="true" extdirs=""
destdir="${out.classes.absolute.dir}"
verbose="${verbose}"
classpath="${extensible.classpath}"
bootclasspathref="project.target.class.path"
classpathref="project.javac.classpath"
>

I use the last android SDK, android NDK R8 (i have testing with the r9, but i yet more error), apache-ant-1.9.2, java7 and the lastest version of proton SDK from svn.

Can you help me please ?

Thanks in advance