-
iamkunalLikes 0Problem Description
Hello Sir,
I watch your video and i try to install same like you but still its going error in cocos run – p android command and its unfinished. Please tell me the procedure to install the cocos 2d-x-3.15.1 in android studio step by step!!
Thank you!!
-
Sonar Systems adminLikes 0
The command for Android studio is slightly differnt, this thread should help,.
This reply has been verified.
-
iamkunalLikes 0
This are the some errors occurs after build in android studio (Version :- Cocos 2d-x-3.10 and NDKr14b )
Error:(272, 46) java: cannot find symbol
symbol: class Cocos2dxActivity
location: class org.cocos2dx.lib.Cocos2dxEditBox
Error:(41, 13) java: cannot find symbol
symbol: class Cocos2dxActivity
location: class org.cocos2dx.lib.Cocos2dxVideoHelperError:(45, 25) java: cannot find symbol
symbol: class Cocos2dxActivity
location: class org.cocos2dx.lib.Cocos2dxVideoHelperError:(79, 15) java: cannot find symbol
symbol: class Cocos2dxActivity
location: class org.cocos2dx.lib.Cocos2dxVideoViewError:(97, 30) java: cannot find symbol
symbol: class Cocos2dxActivity
location: class org.cocos2dx.lib.Cocos2dxVideoViewG:\Kunal\Gamer\cocos2d\cocos\platform\android\java\src\org\cocos2dx\lib\Cocos2dxEngineDataManager.java
Error:(107, 5) java: method does not override or implement a method from a supertype
Error:(5, 30) java: package com.loopj.android.http does not exist
Error:(97, 13) java: cannot find symbol
symbol: class Header
location: class org.cocos2dx.lib.HeadTaskHandler
Error:(161, 34) java: cannot find symbol
symbol: class Header
location: class org.cocos2dx.lib.FileTaskHandler
Error:(340, 59) java: cannot find symbol
symbol: class Header
Error:(139, 5) java: method does not override or implement a method from a supertype
Error:(336, 21) java: cannot find symbol
symbol: class Header
Error:(149, 5) java: method does not override or implement a method from a supertype
Error:(32, 31) java: package org.cocos2dx.enginedata does not exist
Error:(23, 45) java: package cz.msebera.android.httpclient.message does not exist
Error:(25, 31) java: cannot find symbol
symbol: class BinaryHttpResponseHandler
Error:(4, 30) java: package com.loopj.android.http does not exist
Error:(93, 5) java: method does not override or implement a method from a supertype
Error:(170, 5) java: method does not override or implement a method from a supertype
Error:(36, 20) java: cannot find symbol
symbol: class EngineDataManager
location: class org.cocos2dx.lib.Cocos2dxEngineDataManager
Error:(22, 37) java: package cz.msebera.android.httpclient does not exist
Error:(108, 43) java: cannot find symbol
symbol: class Header
location: class org.cocos2dx.lib.HeadTaskHandler
Error:(160, 5) java: method does not override or implement a method from a supertype
Error:(342, 52) java: cannot find symbol
symbol: class Header
Error:(31, 31) java: package org.cocos2dx.enginedata does not exist
Error:(57, 34) java: cannot find symbol
symbol: class Header
location: class org.cocos2dx.lib.DataTaskHandler
Error:(180, 27) java: package IEngineDataManager does not exist
Error:(154, 5) java: method does not override or implement a method from a supertype
Error:(67, 34) java: cannot find symbol
symbol: class Header
location: class org.cocos2dx.lib.DataTaskHandler
Error:(79, 91) java: package IEngineDataManager does not exist
Error:(6, 30) java: package com.loopj.android.http does not exist
Error:(223, 47) java: cannot find symbol
symbol: class AsyncHttpClient
location: class org.cocos2dx.lib.Cocos2dxDownloader
Error:(3, 30) java: package com.loopj.android.http does not exist
Error:(188, 29) java: cannot find symbol
symbol: method getTargetFile()
location: class org.cocos2dx.lib.FileTaskHandler
Error:(73, 31) java: cannot find symbol
symbol: class AsyncHttpResponseHandler
Error:(171, 34) java: cannot find symbol
symbol: class Header
location: class org.cocos2dx.lib.FileTaskHandler
Error:(210, 5) java: cannot find symbol
symbol: class RequestHandle
location: class org.cocos2dx.lib.DownloadTask
Error:(340, 30) java: cannot find symbol
symbol: class Header
Error:(211, 5) java: cannot find symbol
symbol: class AsyncHttpResponseHandler
location: class org.cocos2dx.lib.DownloadTask
Error:(56, 5) java: method does not override or implement a method from a supertype
Error:(135, 24) java: cannot find symbol
symbol: method getTargetFile()
location: class org.cocos2dx.lib.FileTaskHandler
Error:(41, 5) java: method does not override or implement a method from a supertype
Error:(36, 53) java: cannot find symbol
symbol: class EngineDataManager
location: class org.cocos2dx.lib.Cocos2dxEngineDataManager
Error:(51, 5) java: method does not override or implement a method from a supertype
Error:(79, 33) java: package IEngineDataManager does not exist
Error:(179, 38) java: package IEngineDataManager does not exist
Error:(223, 13) java: cannot find symbol
symbol: class AsyncHttpClient
location: class org.cocos2dx.lib.Cocos2dxDownloader
Error:(341, 38) java: cannot find symbol
symbol: class BasicHeader
Error:(118, 31) java: cannot find symbol
symbol: class FileAsyncHttpResponseHandler
Error:(66, 5) java: method does not override or implement a method from a supertype
Error:(7, 30) java: package com.loopj.android.http does not exist
Error:(94, 43) java: cannot find symbol
symbol: class Header
location: class org.cocos2dx.lib.HeadTaskHandler
Error:(181, 32) java: package IEngineDataManager does not exist
Error:(180, 68) java: package IEngineDataManager does not exist
Error:(187, 34) java: package IEngineDataManager does not exist
Error:(201, 27) java: package IEngineDataManager does not exist
Error:(202, 41) java: package IEngineDataManager does not exist
G:\Kunal\Gamer\cocos2d\cocos\platform\android\java\src\org\cocos2dx\lib\Cocos2dxHandler.java
Error:(43, 27) java: cannot find symbol
symbol: class Cocos2dxActivity
location: class org.cocos2dx.lib.Cocos2dxHandler
Error:(48, 28) java: cannot find symbol
symbol: class Cocos2dxActivity
location: class org.cocos2dx.lib.Cocos2dxHandler
G:\Kunal\Gamer\cocos2d\cocos\platform\android\java\src\org\cocos2dx\lib\Cocos2dxHelper.java
Error:(51, 45) java: package com.android.vending.expansion.zipfile does not exist
Error:(52, 45) java: package com.android.vending.expansion.zipfile does not exist
Error:(100, 20) java: cannot find symbol
symbol: class ZipResourceFile
location: class org.cocos2dx.lib.Cocos2dxHelper
Error:(211, 19) java: cannot find symbol
symbol: class ZipResourceFile
location: class org.cocos2dx.lib.Cocos2dxHelper
G:\Kunal\Gamer\cocos2d\cocos\platform\android\java\src\org\cocos2dx\lib\Cocos2dxEditBoxHelper.java
Error:(49, 20) java: cannot find symbol
symbol: class Cocos2dxActivity
location: class org.cocos2dx.lib.Cocos2dxEditBoxHelper
Error:(49, 13) java: cannot find symbol
symbol: variable Cocos2dxActivity
location: class org.cocos2dx.lib.Cocos2dxLocalStorage
G:\Kunal\Gamer\cocos2d\cocos\platform\android\java\src\org\cocos2dx\lib\Cocos2dxLocalStorage.java
Error:(52, 52) java: cannot find symbol
symbol: variable Cocos2dxActivity
location: class org.cocos2dx.lib.Cocos2dxLocalStorage
G:\Kunal\Gamer\cocos2d\cocos\platform\android\java\src\org\cocos2dx\lib\Cocos2dxGLSurfaceView.java
Error:(128, 31) java: cannot find symbol
symbol: class Cocos2dxActivity
Error:(272, 17) java: cannot find symbol
symbol: class Cocos2dxActivity
location: class org.cocos2dx.lib.Cocos2dxEditBox
Error:(272, 46) java: cannot find symbol
symbol: class Cocos2dxActivity
location: class org.cocos2dx.lib.Cocos2dxEditBox
G:\Kunal\Gamer\cocos2d\cocos\platform\android\java\src\org\cocos2dx\lib\Cocos2dxEditBox.java
-
Sonar Systems adminLikes 0
Try newer versions of everything.
-
iamkunalLikes 0
Hello Sir,
In my Windows 7 (I am using Cocos 2dx-3.15 , python 2.7.13, apache 1.10.1, ndk r14, android studio 2.1.2)
Error Occurs when compiling the cocos 2dx project in android studio. [Whenever i just compiling the project always its show same error but the jar file are different this are the some jar file :- annotation.jar, UCGameSDK.jar, upomp_bypay_lib.jar, zsht_app_360game.jar, classes.jar, com.android.vending.expansion.zipfile.jar,360SDK.jar, EngineDataManager.jar]
Error:Android Pre Dex: [annotations.jar] at org.jetbrains.android.compiler.tools.AndroidDxRunner.runDex(AndroidDxRunner.java:136) Error:Android Pre Dex: [annotations.jar] Failed to load dx.jar Error:Android Pre Dex: [annotations.jar] java.lang.ClassNotFoundException: com.android.dx.command.DxConsole Error:Android Pre Dex: [annotations.jar] at java.net.URLClassLoader$1.run(URLClassLoader.java:372) Error:Android Pre Dex: [annotations.jar] at java.net.URLClassLoader$1.run(URLClassLoader.java:361) Error:Android Pre Dex: [annotations.jar] at java.security.AccessController.doPrivileged(Native Method) Error:Android Pre Dex: [annotations.jar] at java.net.URLClassLoader.findClass(URLClassLoader.java:360) Error:Android Pre Dex: [annotations.jar] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) Error:Android Pre Dex: [annotations.jar] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) Error:Android Pre Dex: [annotations.jar] at org.jetbrains.android.compiler.tools.AndroidDxRunner.loadDex(AndroidDxRunner.java:80)
-
Sonar Systems adminLikes 0
Is this a fresh project?
-
iamkunalLikes 0
Yes Sir its a fresh project
-
Sonar Systems adminLikes 0
How are you building it?
-
iamkunalLikes 0
Building Process to Install Cocos 2d-x-3.15
- Download Cocos 2d-x-3.15, Apache ant – 1.10.1, android-ndk-r14b , python 2.7
- Install it in C:/ drive all 3 and set the path in environment variable (Path :- C:\Python27;C:\Android\tools;C:\Android\platform-tools and ANDROID_HOME :- C:\Users\pc\AppData\Local\Android\Sdk;
ANDROID_SDK_ROOT :- C:\Users\pc\AppData\Local\Android\Sdk
ANT_ROOT :- C:\Android\apache-ant-1.10.1\bin
JAVA_HOME :- C:\Program Files\Java\jdk1.8.0_25
NDK_ROOT :- C:\Android\android-ndk-r14b ) - Open the command Prompt :- set the path of cocos and run the command setup.py
- run the command cocos new <game name> -p <package identifier> -l <language> -d <location>
- cocos compile -p android because when i am using this command (cocos compile . -p android -m release) its show the project file ‘.keystore’
- I just successfully build my apk also and its run in the device but when i import on the android studio its shows the error.
Please you send me the step by step procedure of installation of cocos 2dx in android studio. I watch your video but still i got the error. Thank you!!
-
Sonar Systems adminLikes 0
Have you tried running the android studio build command?
-
iamkunalLikes 0
Build command not show in my android studio at the time of impoting the cocos project
-
Sonar Systems adminLikes 0
What do you mean it doesn’t show?
-
iamkunalLikes 0
Yes i try to run the android studio build command ‘project.android’ but its shows the same 13 error related jar file! and even I try to compile it but its shows the error. When i created the new project of cocos than successfully its build the apk but when i just import the project than its show the error and I saw this video for importing the project “https://www.youtube.com/watch?v=VLeGy1foMQA”
-
Sonar Systems adminLikes 0
Does Eclipse work?
-
iamkunalLikes 0
No Sir!!
-
Sonar Systems adminLikes 0
What happens with Eclipse.
Login to reply