BUILD FAILED F:\adt-bundle-windows-x86\sdk\tools\ant\build.xml:710: The following error occur red while executing this line: F:\adt-bundle-windows-x86\sdk\tools\ant\build.xml:723: Compile failed; see the c ompiler error output for details.
Great that it's solved. But from the errors it seemed that the problem was with passing Activity to plugins. I always thought that putting jars in the libs folder meant simply a good practise and nothing more, seems that some builders expect this behavior by default as a standard.
And there should be no problem with moving gideros.jar if you re-add it to project from new path and check order and export it
@alexzheng there won't be any problem. The .jar files inside libs folder are recognized automatically. Otherwise you need a specify something in ant file which I don't know
Comments
ant debug
ant release
But when I install the apk on my device and run, it crashed:
03-12 16:35:55.500: E/AndroidRuntime(11267): FATAL EXCEPTION: main
03-12 16:35:55.500: E/AndroidRuntime(11267): java.lang.NoClassDefFoundError: com.giderosmobile.android.player.WeakActivityHolder
03-12 16:35:55.500: E/AndroidRuntime(11267): at com.giderosmobile.android.ShootBubbleActivity.onCreate(ShootBubbleActivity.java:58)
03-12 16:35:55.500: E/AndroidRuntime(11267): at android.app.Activity.performCreate(Activity.java:5008)
03-12 16:35:55.500: E/AndroidRuntime(11267): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
03-12 16:35:55.500: E/AndroidRuntime(11267): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
03-12 16:35:55.500: E/AndroidRuntime(11267): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
03-12 16:35:55.500: E/AndroidRuntime(11267): at android.app.ActivityThread.access$600(ActivityThread.java:130)
03-12 16:35:55.500: E/AndroidRuntime(11267): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
03-12 16:35:55.500: E/AndroidRuntime(11267): at android.os.Handler.dispatchMessage(Handler.java:99)
03-12 16:35:55.500: E/AndroidRuntime(11267): at android.os.Looper.loop(Looper.java:137)
03-12 16:35:55.500: E/AndroidRuntime(11267): at android.app.ActivityThread.main(ActivityThread.java:4745)
03-12 16:35:55.500: E/AndroidRuntime(11267): at java.lang.reflect.Method.invokeNative(Native Method)
03-12 16:35:55.500: E/AndroidRuntime(11267): at java.lang.reflect.Method.invoke(Method.java:511)
03-12 16:35:55.500: E/AndroidRuntime(11267): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
03-12 16:35:55.500: E/AndroidRuntime(11267): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
03-12 16:35:55.500: E/AndroidRuntime(11267): at dalvik.system.NativeStart.main(Native Method)
https://sites.google.com/site/xraystudiogame
-compile:
[javac] Compiling 21 source files to F:\Users\alex\workspace\ShootBubble\bin
\classes
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:18: 软件包 com.giderosmobile.android.player 不存在
[javac] import com.giderosmobile.android.player.*;
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:58: 找不到符号
[javac] 符号: 变量 WeakActivityHolder
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] WeakActivityHolder.set(this);
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:60: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] GiderosApplication.onCreate(externalClasses);
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:72: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] GiderosApplication.getInstance().onStart();
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:79: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] GiderosApplication.getInstance().onRestart();
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:85: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] GiderosApplication.getInstance().onStop();
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:92: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] GiderosApplication.onDestroy();
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:101: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] GiderosApplication.getInstance().onPause();
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:120: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] GiderosApplication.getInstance().onResume();
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:129: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] GiderosApplication.getInstance().onLowMemory();
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:136: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] GiderosApplication.getInstance().onActivityResult(reques
tCode, resultCode, data);
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:149: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] GiderosApplication.getInstance().onResume();
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:170: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] GiderosApplication.getInstance().onTouchesBegin(
size, id, x, y, actionIndex);
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:173: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] GiderosApplication.getInstance().onTouchesMove(s
ize, id, x, y);
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:176: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] GiderosApplication.getInstance().onTouchesEnd(si
ze, id, x, y, actionIndex);
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:179: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] GiderosApplication.getInstance().onTouchesCancel
(size, id, x, y);
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:192: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] if (GiderosApplication.getInstance().onKeyDown(keyCode,
event) == true)
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:202: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.ShootBubbleActivity
[javac] if (GiderosApplication.getInstance().onKeyUp(keyCode, ev
ent) == true)
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:244: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.GiderosRenderer
[javac] GiderosApplication.getInstance().onSurfaceCreated();
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:249: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.GiderosRenderer
[javac] GiderosApplication.getInstance().onSurfaceChanged(w, h);
[javac] ^
[javac] F:\Users\alex\workspace\ShootBubble\src\com\giderosmobile\android\Sh
ootBubbleActivity.java:254: 找不到符号
[javac] 符号: 变量 GiderosApplication
[javac] 位置: 类 com.giderosmobile.android.GiderosRenderer
[javac] GiderosApplication.getInstance().onDrawFrame();
[javac] ^
[javac] 注意:某些输入文件使用或覆盖了已过时的 API。
[javac] 注意:要了解详细信息,请使用 -Xlint:deprecation 重新编译。
[javac] 21 错误
BUILD FAILED
F:\adt-bundle-windows-x86\sdk\tools\ant\build.xml:710: The following error occur
red while executing this line:
F:\adt-bundle-windows-x86\sdk\tools\ant\build.xml:723: Compile failed; see the c
ompiler error output for details.
Total time: 4 seconds
F:\Users\alex\workspace\ShootBubble>
https://sites.google.com/site/xraystudiogame
I do not know why it works, but now I can build and signed my apk with one cmd.
Likes: Tom2012
https://sites.google.com/site/xraystudiogame
https://sites.google.com/site/xraystudiogame
And there should be no problem with moving gideros.jar if you re-add it to project from new path and check order and export it
https://sites.google.com/site/xraystudiogame
EDIT: Apologies for necroing an old thread.