Error with Android build.

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for MySQL in Delphi and C++Builder
Post Reply
classic12
Posts: 21
Joined: Mon 20 Apr 2009 09:48

Error with Android build.

Post by classic12 » Tue 30 Sep 2014 22:02

New to Delphi cross platform so be gentle with me
I am using Delphi XE 7 on Mac.
I have trial version of your component.
I have reduce the table to 5 fields.
I have created a simple app connecting to MYSQL database.

I can compile Win32, Win64, OSX, IOS8.

When I try with either Android Device or Emulator I get the following error:

Checking project dependencies...
Building MasterDetailApplication.dproj (Debug, Android)
brcc32 command line for "MasterDetailApplication.vrc"
c:\program files (x86)\embarcadero\studio\15.0\bin\cgrc.exe -c65001 MasterDetailApplication.vrc -foMasterDetailApplication.res
dcc command line for "MasterDetailApplication.dpr"
c:\program files (x86)\embarcadero\studio\15.0\bin\dccaarm.exe -$O- --no-config -B -Q -TX.so -AGenerics.Collections=System.Generics.Collections;
Generics.Defaults=System.Generics.Defaults;WinTypes=Winapi.Windows;WinProcs=Winapi.Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE -DDEBUG
-E.\Android\Debug -I"c:\program files (x86)\embarcadero\studio\15.0\lib\Android\debug";"c:\program files
(x86)\embarcadero\studio\15.0\lib\Android\Release";"C:\Program Files (x86)\Devart\MyDAC for RAD Studio XE7\Lib\Android"
-LEC:\Users\Public\Documents\Embarcadero\Studio\15.0\Bpl\Android -LNC:\Users\Public\Documents\Embarcadero\Studio\15.0\Dcp\Android -NU.\Android\Debug
-NSSystem;Xml;Data;Datasnap;Web;Soap; -O"c:\program files (x86)\embarcadero\studio\15.0\lib\Android\Release";"C:\Program Files (x86)\Devart\MyDAC for
RAD Studio XE7\Lib\Android" -R"c:\program files (x86)\embarcadero\studio\15.0\lib\Android\Release";"C:\Program Files (x86)\Devart\MyDAC for RAD
Studio XE7\Lib\Android" -U"c:\program files (x86)\embarcadero\studio\15.0\lib\Android\debug";"c:\program files
(x86)\embarcadero\studio\15.0\lib\Android\Release";"C:\Program Files (x86)\Devart\MyDAC for RAD Studio XE7\Lib\Android"
--libpath:C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\android-ndk-r9c\platforms\android-14\arch-arm\usr\lib;
C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\4.8\libs\armeabi-v7a
--linker:C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\android-ndk-r9c\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe
-V -VN -NO.\Android\Debug MasterDetailApplication.dpr
Success
Elapsed time: 00:00:14.7
Deploy
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8
--Clean=".\Android\Debug\MasterDetailApplication,C:\Users\stevew\Documents\Embarcadero\Studio\Projects\BMWRaceDays\MasterDetail\MasterDetailApplication._@emb_.tmp"

[Warning Warning] Local file "D:\PersonalFolder\Development\Android\ndk\prebuilt\android-arm\gdbserver\gdbserver" not found. Skipping deployment.
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8 --put="c:\program files
(x86)\embarcadero\studio\15.0\bin\Artwork\Android\FM_LauncherIcon_144x144.png,.\Android\Debug\MasterDetailApplication\res\drawable-xxhdpi\,1,ic_launcher.png"
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8 --put="c:\program files
(x86)\embarcadero\studio\15.0\lib\android\debug\mips\libnative-activity.so,.\Android\Debug\MasterDetailApplication\library\lib\mips\,1,libMasterDetailApplication.so"
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8 --put="c:\program files
(x86)\embarcadero\studio\15.0\lib\android\debug\x86\libnative-activity.so,.\Android\Debug\MasterDetailApplication\library\lib\x86\,1,libMasterDetailApplication.so"
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8 --put="c:\program files
(x86)\embarcadero\studio\15.0\bin\Artwork\Android\FM_LauncherIcon_48x48.png,.\Android\Debug\MasterDetailApplication\res\drawable-mdpi\,1,ic_launcher.png"
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8
--put="Android\Debug\libMasterDetailApplication.so,.\Android\Debug\MasterDetailApplication\library\lib\armeabi-v7a\,1,libMasterDetailApplication.so"
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8
--put="C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\android-ndk-r9c\prebuilt\android-arm\gdbserver\gdbserver,.\Android\Debug\MasterDetailApplication\library\lib\armeabi-v7a\,1,gdbserver"
[Warning Warning] Local file "c:\dev\tp\lib\android\debug\armeabi\libnative-activity.so" not found. Skipping deployment.
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8 --put="c:\program files
(x86)\embarcadero\studio\15.0\bin\Artwork\Android\FM_LauncherIcon_36x36.png,.\Android\Debug\MasterDetailApplication\res\drawable-ldpi\,1,ic_launcher.png"
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8 --put="c:\program files
(x86)\embarcadero\studio\15.0\lib\android\debug\armeabi\libnative-activity.so,.\Android\Debug\MasterDetailApplication\library\lib\armeabi\,1,libMasterDetailApplication.so"
[Warning Warning] Local file "c:\dev\tp\lib\android\debug\x86\libnative-activity.so" not found. Skipping deployment.
[Warning Warning] Local file "c:\dev\tp\lib\android\debug\mips\libnative-activity.so" not found. Skipping deployment.
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8 --put="c:\program files
(x86)\embarcadero\studio\15.0\bin\Artwork\Android\FM_LauncherIcon_72x72.png,.\Android\Debug\MasterDetailApplication\res\drawable-hdpi\,1,ic_launcher.png"
[Warning Warning] Local file "c:\dev\tp\lib\android\debug\classes.dex" not found. Skipping deployment.
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8
--put="Android\Debug\AndroidManifest.xml,.\Android\Debug\MasterDetailApplication\,1,AndroidManifest.xml"
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8
--put="Android\Debug\styles.xml,.\Android\Debug\MasterDetailApplication\res\values\,1,styles.xml"
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8
--put="Android\Debug\splash_image_def.xml,.\Android\Debug\MasterDetailApplication\res\drawable\,1,splash_image_def.xml"
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8 --put="c:\program files
(x86)\embarcadero\studio\15.0\bin\Artwork\Android\FM_LauncherIcon_96x96.png,.\Android\Debug\MasterDetailApplication\res\drawable-xhdpi\,1,ic_launcher.png"
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8 --put="c:\program files
(x86)\embarcadero\studio\15.0\lib\android\debug\classes.dex,.\Android\Debug\MasterDetailApplication\classes\,1,classes.dex"
paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8
--stripdebug="C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\android-ndk-r9c\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-strip.exe,.\Android\Debug\MasterDetailApplication\debug\libMasterDetailApplication.so,.\Android\Debug\MasterDetailApplication\library\lib\armeabi-v7a\libMasterDetailApplication.so"

paclient command line
c:\program files (x86)\embarcadero\studio\15.0\bin\paclient.exe -u8
--aaptpackage="C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\adt-bundle-windows-x86-20131030\sdk\build-tools\android-4.4\Aapt.exe,.\Android\Debug\MasterDetailApplication\library,.\Android\Debug\MasterDetailApplication\classes,.\Android\Debug\MasterDetailApplication\res,.\Android\Debug\MasterDetailApplication\assets,.\Android\Debug\MasterDetailApplication\AndroidManifest.xml,C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\adt-bundle-windows-x86-20131030\sdk\platforms\android-19\android.jar,.\Android\Debug\MasterDetailApplication\bin\MasterDetailApplication-unsigned.apk"

[PAClient Error] Error: E2312 Unable to execute '"C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\adt-bundle-windows-x86-20131030\sdk\build-tools\android-4.4\Aapt.exe" package -f -M "C:\Users\stevew\Documents\Embarcadero\Studio\Projects\BMWRaceDays\MasterDetail\Android\Debug\MasterDetailApplication\AndroidManifest.xml" -F "C:\Users\stevew\Documents\Embarcadero\Studio\Projects\BMWRaceDays\MasterDetail\Android\Debug\MasterDetailApplication\bin\MasterDetailApplication-unsigned.apk" -I "C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\adt-bundle-windows-x86-20131030\sdk\platforms\android-19\android.jar" -S "C:\Users\stevew\Documents\Embarcadero\Studio\Projects\BMWRaceDays\MasterDetail\Android\Debug\MasterDetailApplication\res" -A "C:\Users\stevew\Documents\Embarcadero\Studio\Projects\BMWRaceDays\MasterDetail\Android\Debug\MasterDetailApplication\assets" "C:\Users\stevew\Documents\Embarcadero\Studio\Projects\BMWRaceDays\MasterDetail\Android\Debug\MasterDetailApplication\library" "C:\Users\stevew\Documents\Embarcadero\Studio\Projects\BMWRaceDays\MasterDetail\Android\Debug\MasterDetailApplication\classes"' (Error 1)
[PAClient Error] Error: E2312 C:\Users\stevew\Documents\Embarcadero\Studio\Projects\BMWRaceDays\MasterDetail\Android\Debug\MasterDetailApplication\res\drawable\splash_image_def.xml:2: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/splash_image').
Failed
Elapsed time: 00:00:00.8


I have a dbexpress Sqlite application that runs on all the platforms.

Cheers

Mr Warby.

ViktorV
Devart Team
Posts: 2299
Joined: Wed 30 Jul 2014 07:16

Re: Error with Android build.

Post by ViktorV » Wed 01 Oct 2014 06:42

dbExpress driver for MySQL cannot be used for development for Android.
To develop applications for mobile operating systems, you should use MyDAC ( http://www.devart.com/mydac/ ) or UniDAC ( http://www.devart.com/unidac/ ), they both allow to develop applications for mobile operating systems that use MySQL database.
To develop a mobile application, you should use Professional Edition.

classic12
Posts: 21
Joined: Mon 20 Apr 2009 09:48

Re: Error with Android build.

Post by classic12 » Wed 01 Oct 2014 11:36

Hi,

I am now using TMyConnection & TMyQuery components.

The app compiles on IOS , Win32 , Win 64 & OS10.

I still get the following error when compiling to android device.


[PAClient Error] Error: E2312 Unable to execute '"C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\adt-bundle-windows-x86-20131030\sdk\build-tools\android-4.4\Aapt.exe" package -f -M "C:\Users\stevew\Documents\Embarcadero\Studio\Projects\BMWRaceDays\MasterDetail\Android\Debug\MasterDetailApplication\AndroidManifest.xml" -F "C:\Users\stevew\Documents\Embarcadero\Studio\Projects\BMWRaceDays\MasterDetail\Android\Debug\MasterDetailApplication\bin\MasterDetailApplication-unsigned.apk" -I "C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\adt-bundle-windows-x86-20131030\sdk\platforms\android-19\android.jar" -S "C:\Users\stevew\Documents\Embarcadero\Studio\Projects\BMWRaceDays\MasterDetail\Android\Debug\MasterDetailApplication\res" -A "C:\Users\stevew\Documents\Embarcadero\Studio\Projects\BMWRaceDays\MasterDetail\Android\Debug\MasterDetailApplication\assets" "C:\Users\stevew\Documents\Embarcadero\Studio\Projects\BMWRaceDays\MasterDetail\Android\Debug\MasterDetailApplication\library" "C:\Users\stevew\Documents\Embarcadero\Studio\Projects\BMWRaceDays\MasterDetail\Android\Debug\MasterDetailApplication\classes"' (Error 1)
[PAClient Error] Error: E2312 C:\Users\stevew\Documents\Embarcadero\Studio\Projects\BMWRaceDays\MasterDetail\Android\Debug\MasterDetailApplication\res\drawable\splash_image_def.xml:2: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/splash_image').

Is this error related to MyDac?

I can compile other apps to android that do not contain the MyDac components.

Cheers

Mr Warby

ViktorV
Devart Team
Posts: 2299
Joined: Wed 30 Jul 2014 07:16

Re: Error with Android build.

Post by ViktorV » Wed 01 Oct 2014 13:11

The specified errors are most likely not related to MyDAC.
To ensure this, please create a new mobile application, place the TMyConnection and TMyQuery components onto the form and try to compile for Android.

Post Reply