I can't generate androidlcltest APK lazarus / 43-Android ---------------------------------------------------------------------- eMarc · 2012-09-10 20:35 Hello. I have followed this instructions http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface/ And I have succeed (I think) setting pre-compiled compiler on Windows 7, and compiling and generating a liblclapp.so for androidlcltest. I have also generated a Debug Key successfully (androidlcl\android\bin\LCLDebugKey.keystore) But when finally trying to get an APK, it fails. I have set up my PATHS on build_debug_apk.bat (exactly the same paths I have used in generate_debug_key) in the 6 first lines of this batch file. QuoteSET PATH=C:\Progra~1\Android\android- sdk\tools;C:\Progra~1\Android\android-sdk\platform- tools\;C:\Progra~1\Java\jdk1.6.0_35\bin SET APP_NAME=androidlcltest SET ANDROID_HOME=C:\Progra~1\Android\android-sdk SET APK_SDK_PLATFORM=C:\Progra~1\android-sdk\platforms\android-8 SET APK_PROJECT_PATH=C:\lazarus\examples\androidlcl\android ¿ There is something more to set ?. This is the result of the batch call : Quotesrc\com\pascal\lcltest\LCLActivity.java:75: cannot find symbol symbol  : variable KeyEvent location: class com.pascal.lcltest.LCLActivity.LCLInputConnection         eventResult = LCLOnKey(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL, null,  (char) 0);                                ^ src\com\pascal\lcltest\LCLActivity.java:75: cannot find symbol symbol  : variable KeyEvent location: class com.pascal.lcltest.LCLActivity.LCLInputConnection         eventResult = LCLOnKey(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL, null,  (char) 0);                                                      ^ src\com\pascal\lcltest\LCLActivity.java:76: cannot find symbol symbol  : method postInvalidate() location: class com.pascal.lcltest.LCLActivity.LCLSurface         if ((eventResult & 1) != 0) lclsurface.postInvalidate();                                               ^ src\com\pascal\lcltest\LCLActivity.java:77: cannot find symbol symbol  : variable KeyEvent location: class com.pascal.lcltest.LCLActivity.LCLInputConnection         eventResult = LCLOnKey(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_DEL, null, ( char) 0);                                ^ src\com\pascal\lcltest\LCLActivity.java:77: cannot find symbol symbol  : variable KeyEvent location: class com.pascal.lcltest.LCLActivity.LCLInputConnection         eventResult = LCLOnKey(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_DEL, null, ( char) 0);                                                    ^ src\com\pascal\lcltest\LCLActivity.java:78: cannot find symbol symbol  : method postInvalidate() location: class com.pascal.lcltest.LCLActivity.LCLSurface         if ((eventResult & 1) != 0) lclsurface.postInvalidate();                                               ^ src\com\pascal\lcltest\LCLActivity.java:91: cannot find symbol symbol  : variable super location: class com.pascal.lcltest.LCLActivity.LCLInputConnection       return super.deleteSurroundingText(leftLength, rightLength);              ^ src\com\pascal\lcltest\LCLActivity.java:67: method does not override or implemen t a method from a supertype     @Override public boolean deleteSurroundingText(int leftLength, int rightLeng th)     ^ src\com\pascal\lcltest\LCLActivity.java:104: cannot find symbol symbol  : method setWillNotDraw(boolean) location: class com.pascal.lcltest.LCLActivity.LCLSurface       setWillNotDraw(false);       ^ src\com\pascal\lcltest\LCLActivity.java:106: cannot find symbol symbol  : method setWillNotCacheDrawing(boolean) location: class com.pascal.lcltest.LCLActivity.LCLSurface       setWillNotCacheDrawing(true);       ^ src\com\pascal\lcltest\LCLActivity.java:108: cannot find symbol symbol  : method requestFocus() location: class com.pascal.lcltest.LCLActivity.LCLSurface       requestFocus();       ^ src\com\pascal\lcltest\LCLActivity.java:109: cannot find symbol symbol  : method setFocusableInTouchMode(boolean) location: class com.pascal.lcltest.LCLActivity.LCLSurface       setFocusableInTouchMode(true);       ^ src\com\pascal\lcltest\LCLActivity.java:115: cannot find symbol symbol  : method getWidth() location: class com.pascal.lcltest.LCLActivity.LCLSurface       int lWidth = getWidth();                    ^ src\com\pascal\lcltest\LCLActivity.java:116: cannot find symbol symbol  : method getHeight() location: class com.pascal.lcltest.LCLActivity.LCLSurface       int lHeight = getHeight();                     ^ src\com\pascal\lcltest\LCLActivity.java:131: cannot find symbol symbol  : class Bitmap location: class com.pascal.lcltest.LCLActivity.LCLSurface       Bitmap localbitmap = Bitmap.createBitmap(lWidth, lHeight, Bitmap.Config.AR GB_8888);       ^ src\com\pascal\lcltest\LCLActivity.java:131: package Bitmap does not exist       Bitmap localbitmap = Bitmap.createBitmap(lWidth, lHeight, Bitmap.Config.AR GB_8888);                                                                       ^ src\com\pascal\lcltest\LCLActivity.java:131: cannot find symbol symbol  : variable Bitmap location: class com.pascal.lcltest.LCLActivity.LCLSurface       Bitmap localbitmap = Bitmap.createBitmap(lWidth, lHeight, Bitmap.Config.AR GB_8888);                            ^ src\com\pascal\lcltest\LCLActivity.java:112: method does not override or impleme nt a method from a supertype     @Override protected void onDraw(Canvas canvas)     ^ src\com\pascal\lcltest\LCLActivity.java:140: cannot find symbol symbol  : variable super location: class com.pascal.lcltest.LCLActivity.LCLSurface       super.onKeyDown(keyCode, event);       ^ src\com\pascal\lcltest\LCLActivity.java:141: cannot find symbol symbol  : variable KeyEvent location: class com.pascal.lcltest.LCLActivity.LCLSurface       int eventResult = LCLOnKey(KeyEvent.ACTION_DOWN, keyCode, event, (char) 0) ;                                  ^ src\com\pascal\lcltest\LCLActivity.java:142: cannot find symbol symbol  : method postInvalidate() location: class com.pascal.lcltest.LCLActivity.LCLSurface       if ((eventResult & 1) != 0) postInvalidate();                                   ^ src\com\pascal\lcltest\LCLActivity.java:137: method does not override or impleme nt a method from a supertype     @Override public boolean onKeyDown (int keyCode, KeyEvent event)     ^ src\com\pascal\lcltest\LCLActivity.java:149: cannot find symbol symbol  : variable KeyEvent location: class com.pascal.lcltest.LCLActivity.LCLSurface       int eventResult = LCLOnKey(KeyEvent.ACTION_UP, keyCode, event, event.getUn icodeChar());                                  ^ src\com\pascal\lcltest\LCLActivity.java:150: cannot find symbol symbol  : method postInvalidate() location: class com.pascal.lcltest.LCLActivity.LCLSurface       if ((eventResult & 1) != 0) postInvalidate();                                   ^ src\com\pascal\lcltest\LCLActivity.java:153: cannot find symbol symbol  : variable super location: class com.pascal.lcltest.LCLActivity.LCLSurface       super.onKeyUp(keyCode, event);       ^ src\com\pascal\lcltest\LCLActivity.java:157: cannot find symbol symbol  : method finish() location: class com.pascal.lcltest.LCLActivity.LCLSurface         finish();         ^ src\com\pascal\lcltest\LCLActivity.java:166: cannot find symbol symbol  : variable KeyEvent location: class com.pascal.lcltest.LCLActivity.LCLSurface       if (keyCode == KeyEvent.KEYCODE_MENU)                      ^ src\com\pascal\lcltest\LCLActivity.java:169: cannot find symbol symbol  : method closeOptionsMenu() location: class com.pascal.lcltest.LCLActivity.LCLSurface         if (flagIsMenuOpen) closeOptionsMenu();                             ^ src\com\pascal\lcltest\LCLActivity.java:170: cannot find symbol symbol  : method openOptionsMenu() location: class com.pascal.lcltest.LCLActivity.LCLSurface         else openOptionsMenu();              ^ src\com\pascal\lcltest\LCLActivity.java:146: method does not override or impleme nt a method from a supertype     @Override public boolean onKeyUp (int keyCode, KeyEvent event)     ^ src\com\pascal\lcltest\LCLActivity.java:180: cannot find symbol symbol  : method postInvalidate() location: class com.pascal.lcltest.LCLActivity.LCLSurface       if ((eventResult | 1) != 0) postInvalidate();                                   ^ src\com\pascal\lcltest\LCLActivity.java:177: method does not override or impleme nt a method from a supertype     @Override public boolean onTouchEvent (MotionEvent event)     ^ src\com\pascal\lcltest\LCLActivity.java:188: cannot find symbol symbol  : variable InputType location: class com.pascal.lcltest.LCLActivity.LCLSurface       outAttrs.inputType = InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS;                            ^ src\com\pascal\lcltest\LCLActivity.java:189: cannot find symbol symbol  : variable EditorInfo location: class com.pascal.lcltest.LCLActivity.LCLSurface       outAttrs.imeOptions = EditorInfo.IME_ACTION_DONE;                             ^ src\com\pascal\lcltest\LCLActivity.java:184: method does not override or impleme nt a method from a supertype     @Override public InputConnection onCreateInputConnection(EditorInfo outAttrs )     ^ src\com\pascal\lcltest\LCLActivity.java:193: method does not override or impleme nt a method from a supertype     @Override public boolean onCheckIsTextEditor()     ^ src\com\pascal\lcltest\LCLActivity.java:215: operator != cannot be applied to co m.pascal.lcltest.LCLActivity.LCLSurface,     if (((eventResult | 1) != 0) && (lclsurface != null)) lclsurface.postInvalid ate();                                                 ^ src\com\pascal\lcltest\LCLActivity.java:215: cannot find symbol symbol  : method postInvalidate() location: class com.pascal.lcltest.LCLActivity.LCLSurface     if (((eventResult | 1) != 0) && (lclsurface != null)) lclsurface.postInvalid ate();                                                                     ^ src\com\pascal\lcltest\LCLActivity.java:226: cannot find symbol symbol  : variable super location: class com.pascal.lcltest.LCLActivity     super.onCreate(savedInstanceState);     ^ src\com\pascal\lcltest\LCLActivity.java:229: cannot find symbol symbol  : method setContentView(com.pascal.lcltest.LCLActivity.LCLSurface) location: class com.pascal.lcltest.LCLActivity     setContentView(lclsurface);     ^ src\com\pascal\lcltest\LCLActivity.java:230: cannot find symbol symbol  : method postInvalidate() location: class com.pascal.lcltest.LCLActivity.LCLSurface     lclsurface.postInvalidate();               ^ src\com\pascal\lcltest\LCLActivity.java:233: cannot find symbol symbol  : method getWidth() location: class com.pascal.lcltest.LCLActivity.LCLSurface     lclformwidth = lclsurface.getWidth();                              ^ src\com\pascal\lcltest\LCLActivity.java:234: cannot find symbol symbol  : method getHeight() location: class com.pascal.lcltest.LCLActivity.LCLSurface     lclformheight = lclsurface.getHeight();                               ^ src\com\pascal\lcltest\LCLActivity.java:237: cannot find symbol symbol  : class DisplayMetrics location: class com.pascal.lcltest.LCLActivity     DisplayMetrics metrics = new DisplayMetrics();     ^ src\com\pascal\lcltest\LCLActivity.java:237: cannot find symbol symbol  : class DisplayMetrics location: class com.pascal.lcltest.LCLActivity     DisplayMetrics metrics = new DisplayMetrics();                                  ^ src\com\pascal\lcltest\LCLActivity.java:238: cannot find symbol symbol  : method getWindowManager() location: class com.pascal.lcltest.LCLActivity     getWindowManager().getDefaultDisplay().getMetrics(metrics);     ^ [loading java\util\ArrayList.class(java\util:ArrayList.class)] [loading java\lang\Exception.class(java\lang:Exception.class)] [loading java\lang\Throwable.class(java\lang:Throwable.class)] [loading java\lang\System.class(java\lang:System.class)] [loading java\lang\UnsatisfiedLinkError.class(java\lang:UnsatisfiedLin kError.cla ss)] [loading java\lang\LinkageError.class(java\lang:LinkageError.class)] [loading java\lang\Error.class(java\lang:Error.class)] [total 1730ms] 100 errors 1 warning C:\lazarus\examples\androidlcl\android>REM DX to convert the java bytecode to da lvik bytecode C:\lazarus\examples\androidlcl\android>call dx --dex --verbose --output=C:\lazar us\examples\androidlcl\android\bin\classes.dex C:\lazarus\examples\androidlcl\an droid\bin\classes "dx" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. C:\lazarus\examples\androidlcl\android>REM It seams that dx calls echo off C:\lazarus\examples\androidlcl\android>REM Now build the unsigned APK C:\lazarus\examples\androidlcl\android>del C:\lazarus\examples\androidlcl\androi d\bin\androidlcltest-unsigned.apk No se pudo encontrar C:\lazarus\examples\androidlcl\android\bin\androidlcltest-u nsigned.apk C:\lazarus\examples\androidlcl\android>call apkbuilder C:\lazarus\examples\andro idlcl\android\bin\androidlcltest-unsigned.apk -v -u -z C:\lazarus\examples\andro idlcl\android\bin\androidlcltest.ap_ -f C:\lazarus\examples\androidlcl\android\b in\classes.dex "apkbuilder" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. C:\lazarus\examples\androidlcl\android>REM Generating on the fly a debug key C:\lazarus\examples\androidlcl\android>rem keytool -genkey -v -keystore bin\LCLD ebugKey.keystore -alias LCLDebugKey -keyalg RSA -validity 10000 -dname NAME -sto repass senhas -keypass senhas C:\lazarus\examples\androidlcl\android>REM Signing the APK with a debug key C:\lazarus\examples\androidlcl\android>del bin\androidlcltest- unaligned.apk No se pudo encontrar C:\lazarus\examples\androidlcl\android\bin\androidlcltest-u naligned.apk C:\lazarus\examples\androidlcl\android>jarsigner -verbose -keystore bin\LCLDebug Key.keystore -keypass senhas -storepass senhas -signedjar bin\androidlcltest-una ligned.apk bin\androidlcltest-unsigned.apk LCLDebugKey jarsigner error: java.lang.RuntimeException: keystore load: Keystore was tampere d with, or password was incorrect C:\lazarus\examples\androidlcl\android>REM Align the final APK package C:\lazarus\examples\androidlcl\android>zipalign -v 4 bin\androidlcltest-unaligne d.apk bin\androidlcltest.apk "zipalign" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. C:\lazarus\examples\androidlcl\android>REM call and pause together allow us to s ee the results in the end C:\lazarus\examples\androidlcl\android>pause Presione una tecla para continuar . . . By the way, the batch files refers to "android-sdk\platform-tools" and "android-sdk\platforms\android-8", but my Android SDK installation doesn't have those folders. Please, ¿ do you know what I could have wrong ?. Thank you and thanks for your work, it's amazing to be able to use Pascal & Lazarus for developing for Android. ---------------------------------------------------------------------- Leledumbo · 2012-09-11 06:41 QuoteBy the way, the batch files refers to "android-sdk\platform- tools" and "android-sdk\platforms\android-8", but my Android SDK installation doesn't have those folders.This is the core problem, since you don't have the folders, the required classes can't be found. Look at your Android SDK installation, the platforms part should be up to your installation (mine is android-9 because I was using Gingerbread). ---------------------------------------------------------------------- felipemdc · 2012-09-11 09:05 Just installing the SDK does not install really the SDK, it just installs a SDK Manager. You need to then run the application "SDK Manager.exe" and inside it you need to check the SDK version that you want and install it. ---------------------------------------------------------------------- eMarc · 2012-09-11 19:18 Thanks a lot. Now it works, I have generated sample APK and runs perfectly in my tablet. I'm trying my own application. Thanks again. ---------------------------------------------------------------------- Fortuna1 · 2012-09-13 17:09 And I have succeed (I think) setting pre-compiled compiler on Windows 7, and compiling and generating a liblclapp.so for androidlcltest. I have also generated a Debug Key successfully (androidlcl\android\bin\LCLDebugKey.keystore) But when finally trying to get an APK, it fails. I have set up my PATHS on build_debug_apk.bat (exactly the same paths I have used in generate_debug_key) in the 6 first lines of this batch file. SET PATH=C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Files (x86)\Android\android-sdk\platform-tools\;C:\Program Files\Java\jdk1.6.0_35\bin SET APP_NAME=androidlcltest SET ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk SET APK_SDK_PLATFORM=C:\android-ndk-r8b\platforms\android-8 SET APK_PROJECT_PATH=C:\lazarus\examples\androidlcl\android I install SDK Manager.exe (installer_r20.0.3-windows) and install all Adnroid from 1.5(API3) TO 4.1(API16) Please, ¿ do you know what I could have wrong ?.       _lclView = (View) targetView;                   ^ [loading java\lang\Integer.class(java\lang:Integer.class)] [loading java\lang\Number.class(java\lang:Number.class)] src\com\pascal\lcltest\LCLActivity.java:55: cannot find symbol symbol  : variable Log location: class com.pascal.lcltest.LCLActivity.LCLInputConnection       Log.v("lclproject", "LCLInputConnection.commitText =" + text + " newCursor Position=" + Integer.toString(newCursorPosition));       ^ src\com\pascal\lcltest\LCLActivity.java:62: cannot find symbol symbol  : method postInvalidate() location: class com.pascal.lcltest.LCLActivity.LCLSurface         if ((eventResult & 1) != 0) lclsurface.postInvalidate();                                               ^ src\com\pascal\lcltest\LCLActivity.java:52: method does not override or implemen t a method from a supertype     @Override public boolean commitText(CharSequence text, int newCursorPosition )     ^ src\com\pascal\lcltest\LCLActivity.java:69: cannot find symbol symbol  : variable Log location: class com.pascal.lcltest.LCLActivity.LCLInputConnection       Log.v("lclproject", "LCLInputConnection.deleteSurroundingText left=" + Int eger.toString(leftLength) + " right=" + Integer.toString(rightLength));       ^ src\com\pascal\lcltest\LCLActivity.java:75: cannot find symbol symbol  : variable KeyEvent location: class com.pascal.lcltest.LCLActivity.LCLInputConnection         eventResult = LCLOnKey(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL, null,  (char) 0);                                ^ src\com\pascal\lcltest\LCLActivity.java:75: cannot find symbol symbol  : variable KeyEvent location: class com.pascal.lcltest.LCLActivity.LCLInputConnection         eventResult = LCLOnKey(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL, null,  (char) 0);                                                      ^ src\com\pascal\lcltest\LCLActivity.java:76: cannot find symbol symbol  : method postInvalidate() location: class com.pascal.lcltest.LCLActivity.LCLSurface         if ((eventResult & 1) != 0) lclsurface.postInvalidate();                                               ^ src\com\pascal\lcltest\LCLActivity.java:77: cannot find symbol symbol  : variable KeyEvent location: class com.pascal.lcltest.LCLActivity.LCLInputConnection         eventResult = LCLOnKey(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_DEL, null, ( char) 0);                                ^ src\com\pascal\lcltest\LCLActivity.java:77: cannot find symbol symbol  : variable KeyEvent location: class com.pascal.lcltest.LCLActivity.LCLInputConnection         eventResult = LCLOnKey(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_DEL, null, ( char) 0);                                                    ^ src\com\pascal\lcltest\LCLActivity.java:78: cannot find symbol symbol  : method postInvalidate() location: class com.pascal.lcltest.LCLActivity.LCLSurface         if ((eventResult & 1) != 0) lclsurface.postInvalidate();                                               ^ src\com\pascal\lcltest\LCLActivity.java:91: cannot find symbol symbol  : variable super location: class com.pascal.lcltest.LCLActivity.LCLInputConnection       return super.deleteSurroundingText(leftLength, rightLength);              ^ src\com\pascal\lcltest\LCLActivity.java:67: method does not override or implemen t a method from a supertype     @Override public boolean deleteSurroundingText(int leftLength, int rightLeng th)     ^ src\com\pascal\lcltest\LCLActivity.java:104: cannot find symbol symbol  : method setWillNotDraw(boolean) location: class com.pascal.lcltest.LCLActivity.LCLSurface       setWillNotDraw(false);       ^ src\com\pascal\lcltest\LCLActivity.java:106: cannot find symbol symbol  : method setWillNotCacheDrawing(boolean) location: class com.pascal.lcltest.LCLActivity.LCLSurface       setWillNotCacheDrawing(true);       ^ src\com\pascal\lcltest\LCLActivity.java:108: cannot find symbol symbol  : method requestFocus() location: class com.pascal.lcltest.LCLActivity.LCLSurface       requestFocus();       ^ src\com\pascal\lcltest\LCLActivity.java:109: cannot find symbol symbol  : method setFocusableInTouchMode(boolean) location: class com.pascal.lcltest.LCLActivity.LCLSurface       setFocusableInTouchMode(true);       ^ src\com\pascal\lcltest\LCLActivity.java:115: cannot find symbol symbol  : method getWidth() location: class com.pascal.lcltest.LCLActivity.LCLSurface       int lWidth = getWidth();                    ^ src\com\pascal\lcltest\LCLActivity.java:116: cannot find symbol symbol  : method getHeight() location: class com.pascal.lcltest.LCLActivity.LCLSurface       int lHeight = getHeight();                     ^ src\com\pascal\lcltest\LCLActivity.java:131: cannot find symbol symbol  : class Bitmap location: class com.pascal.lcltest.LCLActivity.LCLSurface       Bitmap localbitmap = Bitmap.createBitmap(lWidth, lHeight, Bitmap.Config.AR GB_8888);       ^ src\com\pascal\lcltest\LCLActivity.java:131: package Bitmap does not exist       Bitmap localbitmap = Bitmap.createBitmap(lWidth, lHeight, Bitmap.Config.AR GB_8888);                                                                       ^ src\com\pascal\lcltest\LCLActivity.java:131: cannot find symbol symbol  : variable Bitmap location: class com.pascal.lcltest.LCLActivity.LCLSurface       Bitmap localbitmap = Bitmap.createBitmap(lWidth, lHeight, Bitmap.Config.AR GB_8888);                            ^ src\com\pascal\lcltest\LCLActivity.java:112: method does not override or impleme nt a method from a supertype     @Override protected void onDraw(Canvas canvas)     ^ src\com\pascal\lcltest\LCLActivity.java:140: cannot find symbol symbol  : variable super location: class com.pascal.lcltest.LCLActivity.LCLSurface       super.onKeyDown(keyCode, event);       ^ src\com\pascal\lcltest\LCLActivity.java:141: cannot find symbol symbol  : variable KeyEvent location: class com.pascal.lcltest.LCLActivity.LCLSurface       int eventResult = LCLOnKey(KeyEvent.ACTION_DOWN, keyCode, event, (char) 0) ;                                  ^ src\com\pascal\lcltest\LCLActivity.java:142: cannot find symbol symbol  : method postInvalidate() location: class com.pascal.lcltest.LCLActivity.LCLSurface       if ((eventResult & 1) != 0) postInvalidate();                                   ^ src\com\pascal\lcltest\LCLActivity.java:137: method does not override or impleme nt a method from a supertype     @Override public boolean onKeyDown (int keyCode, KeyEvent event)     ^ src\com\pascal\lcltest\LCLActivity.java:149: cannot find symbol symbol  : variable KeyEvent location: class com.pascal.lcltest.LCLActivity.LCLSurface       int eventResult = LCLOnKey(KeyEvent.ACTION_UP, keyCode, event, event.getUn icodeChar());                                  ^ src\com\pascal\lcltest\LCLActivity.java:150: cannot find symbol symbol  : method postInvalidate() location: class com.pascal.lcltest.LCLActivity.LCLSurface       if ((eventResult & 1) != 0) postInvalidate();                                   ^ src\com\pascal\lcltest\LCLActivity.java:153: cannot find symbol symbol  : variable super location: class com.pascal.lcltest.LCLActivity.LCLSurface       super.onKeyUp(keyCode, event);       ^ src\com\pascal\lcltest\LCLActivity.java:157: cannot find symbol symbol  : method finish() location: class com.pascal.lcltest.LCLActivity.LCLSurface         finish();         ^ src\com\pascal\lcltest\LCLActivity.java:166: cannot find symbol symbol  : variable KeyEvent location: class com.pascal.lcltest.LCLActivity.LCLSurface       if (keyCode == KeyEvent.KEYCODE_MENU)                      ^ src\com\pascal\lcltest\LCLActivity.java:169: cannot find symbol symbol  : method closeOptionsMenu() location: class com.pascal.lcltest.LCLActivity.LCLSurface         if (flagIsMenuOpen) closeOptionsMenu();                             ^ src\com\pascal\lcltest\LCLActivity.java:170: cannot find symbol symbol  : method openOptionsMenu() location: class com.pascal.lcltest.LCLActivity.LCLSurface         else openOptionsMenu();              ^ src\com\pascal\lcltest\LCLActivity.java:146: method does not override or impleme nt a method from a supertype     @Override public boolean onKeyUp (int keyCode, KeyEvent event)     ^ src\com\pascal\lcltest\LCLActivity.java:180: cannot find symbol symbol  : method postInvalidate() location: class com.pascal.lcltest.LCLActivity.LCLSurface       if ((eventResult | 1) != 0) postInvalidate();                                   ^ src\com\pascal\lcltest\LCLActivity.java:177: method does not override or impleme nt a method from a supertype     @Override public boolean onTouchEvent (MotionEvent event)     ^ src\com\pascal\lcltest\LCLActivity.java:188: cannot find symbol symbol  : variable InputType location: class com.pascal.lcltest.LCLActivity.LCLSurface       outAttrs.inputType = InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS;                            ^ src\com\pascal\lcltest\LCLActivity.java:189: cannot find symbol symbol  : variable EditorInfo location: class com.pascal.lcltest.LCLActivity.LCLSurface       outAttrs.imeOptions = EditorInfo.IME_ACTION_DONE;                             ^ src\com\pascal\lcltest\LCLActivity.java:184: method does not override or impleme nt a method from a supertype     @Override public InputConnection onCreateInputConnection(EditorInfo outAttrs )     ^ src\com\pascal\lcltest\LCLActivity.java:193: method does not override or impleme nt a method from a supertype     @Override public boolean onCheckIsTextEditor()     ^ src\com\pascal\lcltest\LCLActivity.java:215: operator != cannot be applied to co m.pascal.lcltest.LCLActivity.LCLSurface,     if (((eventResult | 1) != 0) && (lclsurface != null)) lclsurface.postInvalid ate();                                                 ^ src\com\pascal\lcltest\LCLActivity.java:215: cannot find symbol symbol  : method postInvalidate() location: class com.pascal.lcltest.LCLActivity.LCLSurface     if (((eventResult | 1) != 0) && (lclsurface != null)) lclsurface.postInvalid ate();                                                                     ^ src\com\pascal\lcltest\LCLActivity.java:226: cannot find symbol symbol  : variable super location: class com.pascal.lcltest.LCLActivity     super.onCreate(savedInstanceState);     ^ src\com\pascal\lcltest\LCLActivity.java:229: cannot find symbol symbol  : method setContentView(com.pascal.lcltest.LCLActivity.LCLSurface) location: class com.pascal.lcltest.LCLActivity     setContentView(lclsurface);     ^ src\com\pascal\lcltest\LCLActivity.java:230: cannot find symbol symbol  : method postInvalidate() location: class com.pascal.lcltest.LCLActivity.LCLSurface     lclsurface.postInvalidate();               ^ src\com\pascal\lcltest\LCLActivity.java:233: cannot find symbol symbol  : method getWidth() location: class com.pascal.lcltest.LCLActivity.LCLSurface     lclformwidth = lclsurface.getWidth();                              ^ src\com\pascal\lcltest\LCLActivity.java:234: cannot find symbol symbol  : method getHeight() location: class com.pascal.lcltest.LCLActivity.LCLSurface     lclformheight = lclsurface.getHeight();                               ^ src\com\pascal\lcltest\LCLActivity.java:237: cannot find symbol symbol  : class DisplayMetrics location: class com.pascal.lcltest.LCLActivity     DisplayMetrics metrics = new DisplayMetrics();     ^ src\com\pascal\lcltest\LCLActivity.java:237: cannot find symbol symbol  : class DisplayMetrics location: class com.pascal.lcltest.LCLActivity     DisplayMetrics metrics = new DisplayMetrics();                                  ^ src\com\pascal\lcltest\LCLActivity.java:238: cannot find symbol symbol  : method getWindowManager() location: class com.pascal.lcltest.LCLActivity     getWindowManager().getDefaultDisplay().getMetrics(metrics);     ^ [loading java\util\ArrayList.class(java\util:ArrayList.class)] [loading java\lang\Exception.class(java\lang:Exception.class)] [loading java\lang\Throwable.class(java\lang:Throwable.class)] [loading java\lang\System.class(java\lang:System.class)] [loading java\lang\UnsatisfiedLinkError.class(java\lang:UnsatisfiedLin kError.cla ss)] [loading java\lang\LinkageError.class(java\lang:LinkageError.class)] [loading java\lang\Error.class(java\lang:Error.class)] [total 1039ms] 100 errors C:\lazarus\examples\androidlcl\android>REM DX to convert the java bytecode to da lvik bytecode C:\lazarus\examples\androidlcl\android>call dx --dex --verbose --output=C:\lazar us\examples\androidlcl\android\bin\classes.dex C:\lazarus\examples\androidlcl\an droid\bin\classes no classfiles specified C:\lazarus\examples\androidlcl\android>REM Now build the unsigned APK C:\lazarus\examples\androidlcl\android>del C:\lazarus\examples\androidlcl\androi d\bin\androidlcltest-unsigned.apk C:\lazarus\examples\androidlcl\android>call apkbuilder C:\lazarus\examples\andro idlcl\android\bin\androidlcltest-unsigned.apk -v -u -z C:\lazarus\examples\andro idlcl\android\bin\androidlcltest.ap_ -f C:\lazarus\examples\androidlcl\android\b in\classes.dex THIS TOOL IS DEPRECATED. See --help for more information. java.io.FileNotFoundException: C:\lazarus\examples\androidlcl\android\bin\androi dlcltest.ap_ does not exist Could Not Find C:\lazarus\examples\androidlcl\android\bin\androidlcltest-unalign ed.apk jarsigner error: java.lang.RuntimeException: keystore load: Keystore was tampere d with, or password was incorrect Unable to open 'bin\androidlcltest-unaligned.apk' as zip archive Press any key to continue . . . C:\lazarus\examples\androidlcl\android>^A Please, ¿ do you know what I could have wrong ?. ---------------------------------------------------------------------- Fortuna1 · 2012-09-14 06:18 I found my error in paths. my path now is:Code: [Select]REM Adjust these paths to yours SET PATH=C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Files (x86)\Android\android-sdk\platform-tools\;C:\Program Files\Java\jdk1.6.0_35\bin SET APP_NAME=androidlcltest SET ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk SET APK_SDK_PLATFORM=C:\Program Files (x86)\Android\android- sdk\platforms\android-8 SET APK_PROJECT_PATH=C:\lazarus\examples\androidlcl\android But i get this: Code: [Select]C:\lazarus\examples\androidlcl\android>REM Adjust these paths to yours C:\lazarus\examples\androidlcl\android>SET PATH=C:\Program Files (x86)\Android\a ndroid-sdk\tools;C:\Program Files (x86)\Android\android-sdk\platform- tools\;C:\P rogram Files\Java\jdk1.6.0_35\bin C:\lazarus\examples\androidlcl\android>SET APP_NAME=androidlcltest C:\lazarus\examples\androidlcl\android>SET ANDROID_HOME=C:\Program Files (x86)\A ndroid\android-sdk C:\lazarus\examples\androidlcl\android>SET APK_SDK_PLATFORM=C:\Program Files (x8 6)\Android\android-sdk\platforms\android-8 C:\lazarus\examples\androidlcl\android>SET APK_PROJECT_PATH=C:\lazarus\examples\ androidlcl\android C:\lazarus\examples\androidlcl\android>REM Create necessary directory Structure C:\lazarus\examples\androidlcl\android>mkdir bin A subdirectory or file bin already exists. C:\lazarus\examples\androidlcl\android>mkdir bin\classes A subdirectory or file bin\classes already exists. C:\lazarus\examples\androidlcl\android>mkdir gen A subdirectory or file gen already exists. C:\lazarus\examples\androidlcl\android>mkdir gen\com A subdirectory or file gen\com already exists. C:\lazarus\examples\androidlcl\android>mkdir gen\com\pascal A subdirectory or file gen\com\pascal already exists. C:\lazarus\examples\androidlcl\android>mkdir gen\com\pascal\lcltest A subdirectory or file gen\com\pascal\lcltest already exists. C:\lazarus\examples\androidlcl\android>mkdir raw A subdirectory or file raw already exists. C:\lazarus\examples\androidlcl\android>mkdir raw\lib A subdirectory or file raw\lib already exists. C:\lazarus\examples\androidlcl\android>mkdir raw\lib\armeabi A subdirectory or file raw\lib\armeabi already exists. C:\lazarus\examples\androidlcl\android>REM Cleanup C:\lazarus\examples\androidlcl\android>del bin\androidlcltest.ap_ Could Not Find C:\lazarus\examples\androidlcl\android\bin\androidlcltest.ap_ C:\lazarus\examples\androidlcl\android>del bin\androidlcltest.apk Could Not Find C:\lazarus\examples\androidlcl\android\bin\androidlcltest.apk C:\lazarus\examples\androidlcl\android>del raw\lib\armeabi\*.so C:\lazarus\examples\androidlcl\android>REM More directory preparation C:\lazarus\examples\androidlcl\android>copy libs\armeabi\*.so raw\lib\armeabi\ libs\armeabi\liblclapp.so         1 file(s) copied. C:\lazarus\examples\androidlcl\android>REM Resource compilation C:\lazarus\examples\androidlcl\android>call aapt p -v -f -M AndroidManifest.xml -F bin\androidlcltest.ap_ -I C:\Program Files (x86)\Android\android- sdk\platform s\android-8\android.jar -S res -m -J gen raw ERROR: input directory 'Files' does not exist C:\lazarus\examples\androidlcl\android>REM Java compiler C:\lazarus\examples\androidlcl\android>call javac -verbose -classpath C:\Program  Files (x86)\Android\android-sdk\platforms\android-8\android.jar -d bin\classes src\com\pascal\lcltest\LCLActivity.java javac: invalid flag: (x86)\Android\android- sdk\platforms\android-8\android.jar Usage: javac use -help for a list of possible options C:\lazarus\examples\androidlcl\android>REM DX to convert the java bytecode to da lvik bytecode C:\lazarus\examples\androidlcl\android>call dx --dex --verbose --output=C:\lazar us\examples\androidlcl\android\bin\classes.dex C:\lazarus\examples\androidlcl\an droid\bin\classes no classfiles specified C:\lazarus\examples\androidlcl\android>REM Now build the unsigned APK C:\lazarus\examples\androidlcl\android>del C:\lazarus\examples\androidlcl\androi d\bin\androidlcltest-unsigned.apk C:\lazarus\examples\androidlcl\android>call apkbuilder C:\lazarus\examples\andro idlcl\android\bin\androidlcltest-unsigned.apk -v -u -z C:\lazarus\examples\andro idlcl\android\bin\androidlcltest.ap_ -f C:\lazarus\examples\androidlcl\android\b in\classes.dex THIS TOOL IS DEPRECATED. See --help for more information. java.io.FileNotFoundException: C:\lazarus\examples\androidlcl\android\bin\androi dlcltest.ap_ does not exist Could Not Find C:\lazarus\examples\androidlcl\android\bin\androidlcltest-unalign ed.apk jarsigner error: java.lang.RuntimeException: keystore load: Keystore was tampere d with, or password was incorrect Unable to open 'bin\androidlcltest-unaligned.apk' as zip archive Press any key to continue . . .   C:\lazarus\examples\androidlcl\android>call aapt p -v -f -M AndroidManifest.xml -F bin\androidlcltest.ap_ -I C:\Program Files (x86)\Android\android- sdk\platform s\android-8\android.jar -S res -m -J gen raw ERROR: input directory 'Files' does not exist Has anyone any idea?? ---------------------------------------------------------------------- Leledumbo · 2012-09-14 06:28 QuoteHas anyone any idea??Clear enough: QuoteC:\lazarus\examples\androidlcl\android>call aapt p -v -f -M AndroidManifest.xml -F bin\androidlcltest.ap_ -I C:\Program Files (x86)\Android\android- sdk\platform s\android-8\android.jar -S res -m -J gen raw ERROR: input directory 'Files' does not existYou install the SDK into ProgramFiles folder, which has spaces. Either put the path in double quote (doesn't always work) or install into space-free folder. ---------------------------------------------------------------------- Fortuna1 · 2012-09-14 12:35 Thanks this is a good idea. My path now is: Code: [Select]SET PATH=C:\Android\android- sdk\tools;C:\Android\android-sdk\platform- tools\;C:\Java\jdk1.6.0_35\bin SET APP_NAME=androidlcltest SET ANDROID_HOME=C:\Android\android-sdk SET APK_SDK_PLATFORM=C:\Android\android-sdk\platforms\android-8 SET APK_PROJECT_PATH=C:\lazarus\examples\androidlcl\android But  now i get this: Code: [Select]libs\armeabi\liblclapp.so         1 file(s) copied. C:\lazarus\examples\androidlcl\android>REM Resource compilation C:\lazarus\examples\androidlcl\android>call aapt p -v -f -M AndroidManifest.xml -F bin\androidlcltest.ap_ -I C:\Android\android- sdk\platforms\android-8\android. jar -S res -m -J gen raw Processing raw dir 'raw' Found 1 asset file in raw Configurations:  (default)  hdpi  ldpi  mdpi Files:   drawable\icon.png     Src: (hdpi) res\drawable-hdpi\icon.png     Src: (ldpi) res\drawable-ldpi\icon.png     Src: (mdpi) res\drawable-mdpi\icon.png   lib\armeabi\liblclapp.so     Src: () raw\lib\armeabi\liblclapp.so   values\strings.xml     Src: () res\values\strings.xml   AndroidManifest.xml     Src: () AndroidManifest.xml Resource Dirs:   Type drawable     drawable\icon.png       Src: (hdpi) res\drawable-hdpi\icon.png       Src: (ldpi) res\drawable-ldpi\icon.png       Src: (mdpi) res\drawable-mdpi\icon.png   Type values     values\strings.xml       Src: () res\values\strings.xml Including resources from package: C:\Android\android- sdk\platforms\android-8\and roid.jar applyFileOverlay for drawable applyFileOverlay for layout applyFileOverlay for anim applyFileOverlay for animator applyFileOverlay for interpolator applyFileOverlay for xml applyFileOverlay for raw applyFileOverlay for color applyFileOverlay for menu applyFileOverlay for mipmap Processing image: res\drawable-ldpi\icon.png Processing image: res\drawable-hdpi\icon.png Processing image: res\drawable-mdpi\icon.png     (processed image res\drawable-ldpi\icon.png: 97% size of source)     (processed image res\drawable-hdpi\icon.png: 96% size of source)     (processed image res\drawable-mdpi\icon.png: 97% size of source)     (new resource id icon from hdpi\drawable\icon.png #generated)     (new resource id icon from ldpi\drawable\icon.png #generated)     (new resource id icon from mdpi\drawable\icon.png #generated)   Writing symbols for class R. Creating 'bin\androidlcltest.ap_' Writing all files...       'lib/armeabi/liblclapp.so' (compressed 75%)       'AndroidManifest.xml' (compressed 65%)       'resources.arsc' (not compressed)       'res/drawable-hdpi/icon.png' (not compressed)       'res/drawable-ldpi/icon.png' (not compressed)       'res/drawable-mdpi/icon.png' (not compressed) Generated 6 files Included 0 files from jar/zip files. Checking for deleted files Done! C:\lazarus\examples\androidlcl\android>REM Java compiler C:\lazarus\examples\androidlcl\android>call javac -verbose -classpath C:\Android \android-sdk\platforms\android-8\android.jar -d bin\classes src\com\pascal\lclte st\LCLActivity.java [parsing started src\com\pascal\lcltest\LCLActivity.java] [parsing completed 89ms] [search path for source files: C:\Android\android- sdk\platforms\android-8\androi d.jar] [search path for class files: C:\Java\jdk1.6.0_35\jre\lib\resources.jar,C:\Java\ jdk1.6.0_35\jre\lib\rt.jar,C:\Java\jdk1.6.0_35\jre\lib\sunrsasign.jar, C:\Java\jd k1.6.0_35\jre\lib\jsse.jar,C:\Java\jdk1.6.0_35\jre\lib\jce.jar,C:\Java \jdk1.6.0_ 35\jre\lib\charsets.jar,C:\Java\jdk1.6.0_35\jre\lib\modules\jdk.boot.j ar,C:\Java \jdk1.6.0_35\jre\classes,C:\Java\jdk1.6.0_35\jre\lib\ext\dnsns.jar,C:\ Java\jdk1. 6.0_35\jre\lib\ext\localedata.jar,C:\Java\jdk1.6.0_35\jre\lib\ext\sunj ce_provide r.jar,C:\Android\android-sdk\platforms\android-8\android.jar] [loading android\view\MenuItem.class(android\view:MenuItem.class)] [loading android\content\res\Configuration.class(android\content\res:C onfigurati on.class)] [loading android\content\Intent.class(android\content:Intent.class)] [loading android\hardware\Sensor.class(android\hardware:Sensor.class)] [loading android\hardware\SensorEvent.class(android\hardware:SensorEve nt.class)] [loading android\hardware\SensorEventListener.class(android\hardware:S ensorEvent Listener.class)] [loading android\hardware\SensorManager.class(android\hardware:SensorM anager.cla ss)] [loading android\telephony\SmsManager.class(android\telephony:SmsManag er.class)] [loading android\location\Location.class(android\location:Location.class)] [loading android\location\LocationListener.class(android\location:Loca tionListen er.class)] [loading android\location\LocationManager.class(android\location:Locat ionManager .class)] [loading android\app\Activity.class(android\app:Activity.class)] [loading android\view\LayoutInflater.class(android\view:LayoutInflater.class)] [loading android\view\LayoutInflater$Factory.class(android\view:Layout Inflater$F actory.class)] [loading java\lang\Object.class(java\lang:Object.class)] [loading android\view\Window.class(android\view:Window.class)] [loading android\view\Window$Callback.class(android\view:Window$Callba ck.class)] [loading android\view\KeyEvent.class(android\view:KeyEvent.class)] [loading android\view\KeyEvent$Callback.class(android\view:KeyEvent$Ca llback.cla ss)] [loading android\os\Parcelable.class(android\os:Parcelable.class)] [loading android\view\View.class(android\view:View.class)] [loading android\view\View$OnCreateContextMenuListener.class(android\v iew:View$O nCreateContextMenuListener.class)] [loading android\graphics\drawable\Drawable.class(android\graphics\dra wable:Draw able.class)] [loading android\graphics\drawable\Drawable$Callback.class(android\gra phics\draw able:Drawable$Callback.class)] [loading android\view\accessibility\AccessibilityEventSource.class(and roid\view\ accessibility:AccessibilityEventSource.class)] [loading android\content\ComponentCallbacks.class(android\content:Comp onentCallb acks.class)] [loading android\view\ContextThemeWrapper.class(android\view:ContextTh emeWrapper .class)] [loading android\content\ContextWrapper.class(android\content:ContextW rapper.cla ss)] [loading android\content\Context.class(android\content:Context.class)] [loading android\os\Bundle.class(android\os:Bundle.class)] [loading android\view\Menu.class(android\view:Menu.class)] [loading android\graphics\Bitmap.class(android\graphics:Bitmap.class)] [loading java\lang\Runnable.class(java\lang:Runnable.class)] [loading android\os\Handler.class(android\os:Handler.class)] [loading java\lang\String.class(java\lang:String.class)] [loading java\lang\CharSequence.class(java\lang:CharSequence.class)] [loading android\app\AlertDialog.class(android\app:AlertDialog.class)] [loading android\app\AlertDialog$Builder.class(android\app:AlertDialog $Builder.c lass)] [loading android\graphics\Canvas.class(android\graphics:Canvas.class)] [loading android\view\MotionEvent.class(android\view:MotionEvent.class)] [loading android\view\inputmethod\EditorInfo.class(android\view\inputm ethod:Edit orInfo.class)] [loading android\view\inputmethod\InputConnection.class(android\view\i nputmethod :InputConnection.class)] [loading android\view\inputmethod\BaseInputConnection.class(android\vi ew\inputme thod:BaseInputConnection.class)] [loading android\text\SpannableStringBuilder.class(android\text:Spanna bleStringB uilder.class)] [loading java\lang\Override.class(java\lang:Override.class)] [loading java\lang\annotation\Annotation.class(java\lang\annotation:An notation.c lass)] [loading java\lang\annotation\Target.class(java\lang\annotation:Target.class)] [loading java\lang\annotation\ElementType.class(java\lang\annotation:E lementType .class)] [loading java\lang\annotation\Retention.class(java\lang\annotation:Ret ention.cla ss)] [loading java\lang\annotation\RetentionPolicy.class(java\lang\annotati on:Retenti onPolicy.class)] [checking com.pascal.lcltest.LCLActivity] [loading java\lang\Error.class(java\lang:Error.class)] [loading android\content\pm\PackageManager.class(android\content\pm:Pa ckageManag er.class)] [loading android\content\pm\PackageManager$NameNotFoundException.class (android\c ontent\pm:PackageManager$NameNotFoundException.class)] [loading android\util\AndroidException.class(android\util:AndroidExcep tion.class )] [loading java\lang\Exception.class(java\lang:Exception.class)] [loading java\lang\Throwable.class(java\lang:Throwable.class)] [loading java\lang\RuntimeException.class(java\lang:RuntimeException.class)] [loading android\content\IntentSender.class(android\content:IntentSend er.class)] [loading android\content\IntentSender$SendIntentException.class(androi d\content: IntentSender$SendIntentException.class)] [loading java\io\IOException.class(java\io:IOException.class)] [loading java\io\FileNotFoundException.class(java\io:FileNotFoundExcep tion.class )] [loading java\lang\Integer.class(java\lang:Integer.class)] [loading java\lang\Number.class(java\lang:Number.class)] [loading android\util\Log.class(android\util:Log.class)] [loading android\graphics\Bitmap$Config.class(android\graphics:Bitmap$ Config.cla ss)] [loading android\graphics\Matrix.class(android\graphics:Matrix.class)] [loading android\graphics\Rect.class(android\graphics:Rect.class)] [loading java\io\Serializable.class(java\io:Serializable.class)] [loading java\lang\Comparable.class(java\lang:Comparable.class)] [loading android\text\InputType.class(android\text:InputType.class)] [loading android\util\DisplayMetrics.class(android\util:DisplayMetrics.class)] [loading android\view\WindowManager.class(android\view:WindowManager.class)] [loading android\view\ViewManager.class(android\view:ViewManager.class)] [loading android\view\Display.class(android\view:Display.class)] [loading android\view\MenuItem$OnMenuItemClickListener.class(android\v iew:MenuIt em$OnMenuItemClickListener.class)] [loading android\graphics\Paint.class(android\graphics:Paint.class)] [loading android\graphics\Paint$FontMetrics.class(android\graphics:Pai nt$FontMet rics.class)] [loading javax\microedition\khronos\opengles\GL.class(javax\microediti on\khronos \opengles:GL.class)] [loading android\graphics\Color.class(android\graphics:Color.class)] [loading android\content\DialogInterface.class(android\content:DialogI nterface.c lass)] [loading android\content\DialogInterface$OnClickListener.class(android \content:D ialogInterface$OnClickListener.class)] [loading android\content\DialogInterface$OnCancelListener.class(androi d\content: DialogInterface$OnCancelListener.class)] [loading android\app\Dialog.class(android\app:Dialog.class)] [loading android\view\inputmethod\InputMethodManager.class(android\vie w\inputmet hod:InputMethodManager.class)] [loading android\os\IBinder.class(android\os:IBinder.class)] [loading android\hardware\SensorListener.class(android\hardware:Sensor Listener.c lass)] [loading android\app\PendingIntent.class(android\app:PendingIntent.class)] [loading android\content\BroadcastReceiver.class(android\content:Broad castReceiv er.class)] [loading android\content\IntentFilter.class(android\content:IntentFilt er.class)] [loading java\util\ArrayList.class(java\util:ArrayList.class)] [loading android\widget\ListAdapter.class(android\widget:ListAdapter.class)] [loading android\database\Cursor.class(android\database:Cursor.class)] [loading java\lang\System.class(java\lang:System.class)] [loading java\lang\UnsatisfiedLinkError.class(java\lang:UnsatisfiedLin kError.cla ss)] [loading java\lang\LinkageError.class(java\lang:LinkageError.class)] [loading java\lang\StringBuilder.class(java\lang:StringBuilder.class)] [loading java\lang\AbstractStringBuilder.class(java\lang:AbstractStrin gBuilder.c lass)] [loading java\lang\StringBuffer.class(java\lang:StringBuffer.class)] [wrote bin\classes\com\pascal\lcltest\LCLActivity$LCLInputConnection.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$LCLSurface.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$1.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$2.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$3.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$LCLRunnable.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$4.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$5.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$6.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity.class] [total 1484ms] C:\lazarus\examples\androidlcl\android>REM DX to convert the java bytecode to da lvik bytecode C:\lazarus\examples\androidlcl\android>call dx --dex --verbose --output=C:\lazar us\examples\androidlcl\android\bin\classes.dex C:\lazarus\examples\androidlcl\an droid\bin\classes processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$1.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$2.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$3.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$4.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$5.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$6.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$LCLInputConnection.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$LCLRunnable.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$LCLSurface.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity.class... C:\lazarus\examples\androidlcl\android>REM Now build the unsigned APK C:\lazarus\examples\androidlcl\android>del C:\lazarus\examples\androidlcl\androi d\bin\androidlcltest-unsigned.apk Could Not Find C:\lazarus\examples\androidlcl\android\bin\androidlcltest-unsigne d.apk C:\lazarus\examples\androidlcl\android>call apkbuilder C:\lazarus\examples\andro idlcl\android\bin\androidlcltest-unsigned.apk -v -u -z C:\lazarus\examples\andro idlcl\android\bin\androidlcltest.ap_ -f C:\lazarus\examples\androidlcl\android\b in\classes.dex THIS TOOL IS DEPRECATED. See --help for more information. Packaging androidlcltest-unsigned.apk C:\lazarus\examples\androidlcl\android\bin\androidlcltest.ap_: => lib/armeabi/liblclapp.so => AndroidManifest.xml => resources.arsc => res/drawable-hdpi/icon.png => res/drawable-ldpi/icon.png => res/drawable-mdpi/icon.png C:\lazarus\examples\androidlcl\android\bin\classes.dex => classes.dex Could Not Find C:\lazarus\examples\androidlcl\android\bin\androidlcltest-unalign ed.apk jarsigner error: java.lang.RuntimeException: keystore load: Keystore was tampere d with, or password was incorrect Unable to open 'bin\androidlcltest-unaligned.apk' as zip archive Press any key to continue . . . [loading java\lang\Error.class(java\lang:Error.class)] [loading java\lang\LinkageError.class(java\lang:LinkageError.class)] Has anyone any idea?? I get   into C:\lazarus\examples\androidlcl\android\bin  androidlcltest-unsigned.apk      5167 KB androidlcltest.ap_.ap_              5175 KB Has anyone any idea?? ---------------------------------------------------------------------- Fortuna1 · 2012-09-14 17:18 I tray  run with  jdk-6u35-windows-i586.exe jdk-6u35-windows-x64.exe but the message is equal loading java\lang\Error.class(java\lang:Error.class)] [loading java\lang\LinkageError.class(java\lang:LinkageError.class)] What doing wrong?. Has anyone any idea?? ---------------------------------------------------------------------- Fortuna1 · 2012-09-15 07:35 why THIS TOOL IS DEPRECATED. Code: [Select]C:\lazarus\examples\androidlcl\android>copy libs\armeabi\*.so raw\lib\armeabi\ libs\armeabi\liblclapp.so         1 file(s) copied. C:\lazarus\examples\androidlcl\android>REM Resource compilation C:\lazarus\examples\androidlcl\android>call aapt p -v -f -M AndroidManifest.xml -F bin\androidlcltest.ap_ -I C:\Android\android- sdk\platforms\android-8\android. jar -S res -m -J gen raw Processing raw dir 'raw' Found 1 asset file in raw Configurations:  (default)  hdpi  ldpi  mdpi Files:   drawable\icon.png     Src: (hdpi) res\drawable-hdpi\icon.png     Src: (ldpi) res\drawable-ldpi\icon.png     Src: (mdpi) res\drawable-mdpi\icon.png   lib\armeabi\liblclapp.so     Src: () raw\lib\armeabi\liblclapp.so   values\strings.xml     Src: () res\values\strings.xml   AndroidManifest.xml     Src: () AndroidManifest.xml Resource Dirs:   Type drawable     drawable\icon.png       Src: (hdpi) res\drawable-hdpi\icon.png       Src: (ldpi) res\drawable-ldpi\icon.png       Src: (mdpi) res\drawable-mdpi\icon.png   Type values     values\strings.xml       Src: () res\values\strings.xml Including resources from package: C:\Android\android- sdk\platforms\android-8\and roid.jar applyFileOverlay for drawable applyFileOverlay for layout applyFileOverlay for anim applyFileOverlay for animator applyFileOverlay for interpolator applyFileOverlay for xml applyFileOverlay for raw applyFileOverlay for color applyFileOverlay for menu applyFileOverlay for mipmap Processing image: res\drawable-hdpi\icon.png Processing image: res\drawable-ldpi\icon.png     (processed image res\drawable-ldpi\icon.png: 97% size of source) Processing image: res\drawable-mdpi\icon.png     (processed image res\drawable-mdpi\icon.png: 97% size of source)     (processed image res\drawable-hdpi\icon.png: 96% size of source)     (new resource id icon from hdpi\drawable\icon.png #generated)     (new resource id icon from ldpi\drawable\icon.png #generated)     (new resource id icon from mdpi\drawable\icon.png #generated)   Writing symbols for class R. Creating 'bin\androidlcltest.ap_' Writing all files...       'lib/armeabi/liblclapp.so' (compressed 75%)       'AndroidManifest.xml' (compressed 65%)       'resources.arsc' (not compressed)       'res/drawable-hdpi/icon.png' (not compressed)       'res/drawable-ldpi/icon.png' (not compressed)       'res/drawable-mdpi/icon.png' (not compressed) Generated 6 files Included 0 files from jar/zip files. Checking for deleted files Done! C:\lazarus\examples\androidlcl\android>REM Java compiler C:\lazarus\examples\androidlcl\android>call javac -verbose -classpath C:\Android \android-sdk\platforms\android-8\android.jar -d bin\classes src\com\pascal\lclte st\LCLActivity.java [parsing started src\com\pascal\lcltest\LCLActivity.java] [parsing completed 109ms] [search path for source files: C:\Android\android- sdk\platforms\android-8\androi d.jar] [search path for class files: C:\Java\jdk1.6.0_35\jre\lib\resources.jar,C:\Java\ jdk1.6.0_35\jre\lib\rt.jar,C:\Java\jdk1.6.0_35\jre\lib\sunrsasign.jar, C:\Java\jd k1.6.0_35\jre\lib\jsse.jar,C:\Java\jdk1.6.0_35\jre\lib\jce.jar,C:\Java \jdk1.6.0_ 35\jre\lib\charsets.jar,C:\Java\jdk1.6.0_35\jre\lib\modules\jdk.boot.j ar,C:\Java \jdk1.6.0_35\jre\classes,C:\Java\jdk1.6.0_35\jre\lib\ext\dnsns.jar,C:\ Java\jdk1. 6.0_35\jre\lib\ext\localedata.jar,C:\Java\jdk1.6.0_35\jre\lib\ext\sunj ce_provide r.jar,C:\Android\android-sdk\platforms\android-8\android.jar] [loading android\view\MenuItem.class(android\view:MenuItem.class)] [loading android\content\res\Configuration.class(android\content\res:C onfigurati on.class)] [loading android\content\Intent.class(android\content:Intent.class)] [loading android\hardware\Sensor.class(android\hardware:Sensor.class)] [loading android\hardware\SensorEvent.class(android\hardware:SensorEve nt.class)] [loading android\hardware\SensorEventListener.class(android\hardware:S ensorEvent Listener.class)] [loading android\hardware\SensorManager.class(android\hardware:SensorM anager.cla ss)] [loading android\telephony\SmsManager.class(android\telephony:SmsManag er.class)] [loading android\location\Location.class(android\location:Location.class)] [loading android\location\LocationListener.class(android\location:Loca tionListen er.class)] [loading android\location\LocationManager.class(android\location:Locat ionManager .class)] [loading android\app\Activity.class(android\app:Activity.class)] [loading android\view\LayoutInflater.class(android\view:LayoutInflater.class)] [loading android\view\LayoutInflater$Factory.class(android\view:Layout Inflater$F actory.class)] [loading java\lang\Object.class(java\lang:Object.class)] [loading android\view\Window.class(android\view:Window.class)] [loading android\view\Window$Callback.class(android\view:Window$Callba ck.class)] [loading android\view\KeyEvent.class(android\view:KeyEvent.class)] [loading android\view\KeyEvent$Callback.class(android\view:KeyEvent$Ca llback.cla ss)] [loading android\os\Parcelable.class(android\os:Parcelable.class)] [loading android\view\View.class(android\view:View.class)] [loading android\view\View$OnCreateContextMenuListener.class(android\v iew:View$O nCreateContextMenuListener.class)] [loading android\graphics\drawable\Drawable.class(android\graphics\dra wable:Draw able.class)] [loading android\graphics\drawable\Drawable$Callback.class(android\gra phics\draw able:Drawable$Callback.class)] [loading android\view\accessibility\AccessibilityEventSource.class(and roid\view\ accessibility:AccessibilityEventSource.class)] [loading android\content\ComponentCallbacks.class(android\content:Comp onentCallb acks.class)] [loading android\view\ContextThemeWrapper.class(android\view:ContextTh emeWrapper .class)] [loading android\content\ContextWrapper.class(android\content:ContextW rapper.cla ss)] [loading android\content\Context.class(android\content:Context.class)] [loading android\os\Bundle.class(android\os:Bundle.class)] [loading android\view\Menu.class(android\view:Menu.class)] [loading android\graphics\Bitmap.class(android\graphics:Bitmap.class)] [loading java\lang\Runnable.class(java\lang:Runnable.class)] [loading android\os\Handler.class(android\os:Handler.class)] [loading java\lang\String.class(java\lang:String.class)] [loading java\lang\CharSequence.class(java\lang:CharSequence.class)] [loading android\app\AlertDialog.class(android\app:AlertDialog.class)] [loading android\app\AlertDialog$Builder.class(android\app:AlertDialog $Builder.c lass)] [loading android\graphics\Canvas.class(android\graphics:Canvas.class)] [loading android\view\MotionEvent.class(android\view:MotionEvent.class)] [loading android\view\inputmethod\EditorInfo.class(android\view\inputm ethod:Edit orInfo.class)] [loading android\view\inputmethod\InputConnection.class(android\view\i nputmethod :InputConnection.class)] [loading android\view\inputmethod\BaseInputConnection.class(android\vi ew\inputme thod:BaseInputConnection.class)] [loading android\text\SpannableStringBuilder.class(android\text:Spanna bleStringB uilder.class)] [loading java\lang\Override.class(java\lang:Override.class)] [loading java\lang\annotation\Annotation.class(java\lang\annotation:An notation.c lass)] [loading java\lang\annotation\Target.class(java\lang\annotation:Target.class)] [loading java\lang\annotation\ElementType.class(java\lang\annotation:E lementType .class)] [loading java\lang\annotation\Retention.class(java\lang\annotation:Ret ention.cla ss)] [loading java\lang\annotation\RetentionPolicy.class(java\lang\annotati on:Retenti onPolicy.class)] [checking com.pascal.lcltest.LCLActivity] [loading java\lang\Error.class(java\lang:Error.class)] [loading android\content\pm\PackageManager.class(android\content\pm:Pa ckageManag er.class)] [loading android\content\pm\PackageManager$NameNotFoundException.class (android\c ontent\pm:PackageManager$NameNotFoundException.class)] [loading android\util\AndroidException.class(android\util:AndroidExcep tion.class )] [loading java\lang\Exception.class(java\lang:Exception.class)] [loading java\lang\Throwable.class(java\lang:Throwable.class)] [loading java\lang\RuntimeException.class(java\lang:RuntimeException.class)] [loading android\content\IntentSender.class(android\content:IntentSend er.class)] [loading android\content\IntentSender$SendIntentException.class(androi d\content: IntentSender$SendIntentException.class)] [loading java\io\IOException.class(java\io:IOException.class)] [loading java\io\FileNotFoundException.class(java\io:FileNotFoundExcep tion.class )] [loading java\lang\Integer.class(java\lang:Integer.class)] [loading java\lang\Number.class(java\lang:Number.class)] [loading android\util\Log.class(android\util:Log.class)] [loading android\graphics\Bitmap$Config.class(android\graphics:Bitmap$ Config.cla ss)] [loading android\graphics\Matrix.class(android\graphics:Matrix.class)] [loading android\graphics\Rect.class(android\graphics:Rect.class)] [loading java\io\Serializable.class(java\io:Serializable.class)] [loading java\lang\Comparable.class(java\lang:Comparable.class)] [loading android\text\InputType.class(android\text:InputType.class)] [loading android\util\DisplayMetrics.class(android\util:DisplayMetrics.class)] [loading android\view\WindowManager.class(android\view:WindowManager.class)] [loading android\view\ViewManager.class(android\view:ViewManager.class)] [loading android\view\Display.class(android\view:Display.class)] [loading android\view\MenuItem$OnMenuItemClickListener.class(android\v iew:MenuIt em$OnMenuItemClickListener.class)] [loading android\graphics\Paint.class(android\graphics:Paint.class)] [loading android\graphics\Paint$FontMetrics.class(android\graphics:Pai nt$FontMet rics.class)] [loading javax\microedition\khronos\opengles\GL.class(javax\microediti on\khronos \opengles:GL.class)] [loading android\graphics\Color.class(android\graphics:Color.class)] [loading android\content\DialogInterface.class(android\content:DialogI nterface.c lass)] [loading android\content\DialogInterface$OnClickListener.class(android \content:D ialogInterface$OnClickListener.class)] [loading android\content\DialogInterface$OnCancelListener.class(androi d\content: DialogInterface$OnCancelListener.class)] [loading android\app\Dialog.class(android\app:Dialog.class)] [loading android\view\inputmethod\InputMethodManager.class(android\vie w\inputmet hod:InputMethodManager.class)] [loading android\os\IBinder.class(android\os:IBinder.class)] [loading android\hardware\SensorListener.class(android\hardware:Sensor Listener.c lass)] [loading android\app\PendingIntent.class(android\app:PendingIntent.class)] [loading android\content\BroadcastReceiver.class(android\content:Broad castReceiv er.class)] [loading android\content\IntentFilter.class(android\content:IntentFilt er.class)] [loading java\util\ArrayList.class(java\util:ArrayList.class)] [loading android\widget\ListAdapter.class(android\widget:ListAdapter.class)] [loading android\database\Cursor.class(android\database:Cursor.class)] [loading java\lang\System.class(java\lang:System.class)] [loading java\lang\UnsatisfiedLinkError.class(java\lang:UnsatisfiedLin kError.cla ss)] [loading java\lang\LinkageError.class(java\lang:LinkageError.class)] [loading java\lang\StringBuilder.class(java\lang:StringBuilder.class)] [loading java\lang\AbstractStringBuilder.class(java\lang:AbstractStrin gBuilder.c lass)] [loading java\lang\StringBuffer.class(java\lang:StringBuffer.class)] [wrote bin\classes\com\pascal\lcltest\LCLActivity$LCLInputConnection.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$LCLSurface.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$1.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$2.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$3.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$LCLRunnable.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$4.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$5.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity$6.class] [wrote bin\classes\com\pascal\lcltest\LCLActivity.class] [total 1326ms] C:\lazarus\examples\androidlcl\android>REM DX to convert the java bytecode to da lvik bytecode C:\lazarus\examples\androidlcl\android>call dx --dex --verbose --output=C:\lazar us\examples\androidlcl\android\bin\classes.dex C:\lazarus\examples\androidlcl\an droid\bin\classes processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$1.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$2.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$3.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$4.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$5.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$6.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$LCLInputConnection.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$LCLRunnable.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity$LCLSurface.class... processing C:\lazarus\examples\androidlcl\android\bin\classes\.\com\pascal\lclte st\LCLActivity.class... C:\lazarus\examples\androidlcl\android>REM Now build the unsigned APK C:\lazarus\examples\androidlcl\android>del C:\lazarus\examples\androidlcl\androi d\bin\androidlcltest-unsigned.apk C:\lazarus\examples\androidlcl\android>REM zzzzzzzzzzzzzzzzzz C:\lazarus\examples\androidlcl\android>pause Press any key to continue . . . C:\lazarus\examples\androidlcl\android>call apkbuilder C:\lazarus\examples\andro idlcl\android\bin\androidlcltest-unsigned.apk -v -u -z C:\lazarus\examples\andro idlcl\android\bin\androidlcltest.ap_ -f C:\lazarus\examples\androidlcl\android\b in\classes.dex THIS TOOL IS DEPRECATED. See --help for more information. Packaging androidlcltest-unsigned.apk C:\lazarus\examples\androidlcl\android\bin\androidlcltest.ap_: => lib/armeabi/liblclapp.so => AndroidManifest.xml => resources.arsc => res/drawable-hdpi/icon.png => res/drawable-ldpi/icon.png => res/drawable-mdpi/icon.png C:\lazarus\examples\androidlcl\android\bin\classes.dex => classes.dex Press any key to continue . . . Press any key to continue . . . Code: [Select] C:\lazarus\examples\androidlcl\android>call apkbuilder C:\lazarus\examples\andro idlcl\android\bin\androidlcltest-unsigned.apk -v -u -z C:\lazarus\examples\andro idlcl\android\bin\androidlcltest.ap_ -f C:\lazarus\examples\androidlcl\android\b in\classes.dex THIS TOOL IS DEPRECATED. See --help for more information. Packaging androidlcltest-unsigned.apk C:\lazarus\examples\androidlcl\android\bin\androidlcltest.ap_: => lib/armeabi/liblclapp.so => AndroidManifest.xml => resources.arsc => res/drawable-hdpi/icon.png => res/drawable-ldpi/icon.png => res/drawable-mdpi/icon.png C:\lazarus\examples\androidlcl\android\bin\classes.dex => classes.dex why THIS TOOL IS DEPRECATED. I do not have eny idea. And  where  is the (  See --help for more information). ---------------------------------------------------------------------- Fortuna1 · 2012-09-16 17:18 I found this http://www.lazarus.freepascal.org/index.php/topic,16768.15.html and http://svn.freepascal.org/cgi- bin/viewvc.cgi?view=rev&root=lazarus&revision=37099 But when I tried to use the Lazarus died; ---------------------------------------------------------------------- felipemdc · 2012-09-17 09:26 Quote from: Fortuna1 on September 15, 2012, 09:35:17 amwhy THIS TOOL IS DEPRECATED. Just ignore this message. ---------------------------------------------------------------------- felipemdc · 2012-09-17 09:28 In one of your first messages there was a error relating to the signing process: jarsigner error: java.lang.RuntimeException: keystore load: Keystore was tampere d with, or password was incorrect Unable to open 'bin\androidlcltest-unaligned.apk' as zip archive Press any key to continue . . . Which indicates that you have a password to the keystore which doesn't match what the script says. But then in your last messages there is simply no error message, so I suppose that the APK was generated correctly. Or wasn't it? ---------------------------------------------------------------------- Fortuna1 · 2012-09-17 17:06 confusion did this message Code: [Select]TOOL IS DEPRECATED.which it should ignor. I wrote correctly in a row correct password(build_debug_apk.bat) (jarsigner  -keypass password -storepass password) Many thanks to all. Now work wonderful. The best regars. Best greetings from Slovenia ---------------------------------------------------------------------- amartitegui · 2017-11-18 07:51 Have some problem almost the same. but I got a doubt. I have as result a n APK with 0Bytes. when I check the pasword in build_debug_apk.bat I see different storepass and keypass not sure ahich are the ones to modify. I setted all as the ones I generated in generate_debug_key... Im I doing wrong?