[AC-3806] Can't build android module
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2016-07-14T19:09:26.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Appcelerator Modules |
Labels | android, cli, module |
Reporter | Vittorio Sorbera |
Assignee | Aminul Islam |
Created | 2016-06-09T10:41:36.000+0000 |
Updated | 2016-07-14T19:09:26.000+0000 |
Description
Attachments
File | Date | Size |
---|---|---|
build.properties | 2016-06-09T16:25:31.000+0000 | 247 |
miga.adbuddiz-android-1.2.0.zip | 2016-06-09T17:24:09.000+0000 | 340990 |
Schermata 2016-06-09 alle 12.39.42.png | 2016-06-09T10:40:03.000+0000 | 40761 |
Screen Shot 2016-06-09 at 10.18.14 PM.png | 2016-06-09T16:25:32.000+0000 | 17273 |
Hi, Thanks for reaching us. Please include *build.properties* in your module and configure it with latest SDK, NDK
Please find the attached screenshot and build.properties file. Let us know if you get error again. Regards, Aminul
Thanks, this is my *build.properties*
Hi, Strange ! Module build properly in my environment. Find the attached module. It's seem build.properties is good. Did you changed anything in timodule.xml ?
My test environment
Thanks
Hi, no, I don't change anything in timodule.xml My test environment:
I also tried it with other modules, for example [ti.imagefactory](https://github.com/appcelerator-modules/ti.imagefactory) and I modified *build.properties* appropriately, but I get the same error message. It may be that there has been some kind of configuration error, but I can not solve it.
I try to give my 2 cents... It gives me the same error with a new module too: {noformat} Launching build and packaging failed Build failed. Unable to locate generated zip file at C:\Users\Federico\Documents\Appcelerator_Studio_Workspace\new_module\dist\it.module.newtest-android-1.0.0.zip {noformat} From .log: {noformat} !ENTRY com.appcelerator.titanium.ui 4 0 2016-06-10 10:55:09.335 !MESSAGE Launching build and packaging failed !STACK 1 org.eclipse.core.runtime.CoreException: Build failed. Unable to locate generated zip file at C:\Users\Federico\Documents\Appcelerator_Studio_Workspace\new_module\dist\it.module.newtest-android-1.0.0.zip at com.appcelerator.titanium.ui.module.BaseModulePackagerLaunchConfigurationDelegate.postBuildProcess(BaseModulePackagerLaunchConfigurationDelegate.java:412) at com.appcelerator.titanium.ui.module.BaseModulePackagerLaunchConfigurationDelegate$4.run(BaseModulePackagerLaunchConfigurationDelegate.java:472) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !SUBENTRY 1 com.appcelerator.titanium.core 4 0 2016-06-10 10:55:09.335 !MESSAGE Build failed. Unable to locate generated zip file at C:\Users\Federico\Documents\Appcelerator_Studio_Workspace\new_module\dist\it.module.newtest-android-1.0.0.zip {noformat} Windows 10 Appcelerator Studio 4.6.0 SDK 5.3.0.GA
In fact, now I've also tried to create a new android module using Appcelerator Studio 4.6.0, and when I try to build, it gives me the same error.
After two days of hell, I have found the cause of my problem! In my workspace root there was an old tiapp.xml (I do not know how it got there...). After removing it, I managed to make the build of the modules, both from Appcelerator Studio that from the CLI. Try to see if you also have a tiapp.xml or timodule.xml file in the root of the workspace.
Unfortunately no :-( Thanks anyway Vittorio!
Hi, Is it still an issue for you? We are waiting for your response.
Hi, not for me. After removing tiapp.xml in my workplace root, it works again. But seems that Federico still has the problem.
Still with problem! Anyone? There is no tiapp.xml on my workspace.
I'm also getting this error. I've tried to compile using 5.2.2.GA and 5.3.0.GA, with a old module and a new one. I don't have any tiapp or timodule file at the workspace root or module root. Any suggestion?
I have the same problem.. Cannot compile any module..
I've removed the Appcelerator Studio application and the Titanium folder inside Library/Application Support. Placed the android SDK and NDK inside the applications folder, and install the studio again, and JDT, now it works.
Hi [~MikaelSwe], Can you be more specific about your issue like provide a screenshot or steps to reproduce, so that we can dig into and help you out. So far, we have been unable to reproduce it. Thanks
In my case, the screens were the same as the ones at the issue description, and I don't know why it starts to happen. With a fresh installation It doesn't happened, but I've updated the Titanium SDK, CLI, JDT in 3 different macs and it throws that error
Hi, Please make sure the following steps : 1. Run *appc titanium sdk list* and check you have 3.5.0 GA SDK installed or not . 2. Run *appc titanium sdk select 3.5.0.GA* command 3. Run *appc ti info -t android* and make sure android SDK API version 23 installed 4. Also check NDK configuration. Then try to build module again and let me know.
appc titanium sdk list Installed SDKs: 5.3.0.GA [selected] 5.3.0.v20160601101756 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA 5.2.2.GA 5.2.2.v20160328141205 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA 5.1.0.GA 5.1.0.v20151118214427 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/5.1.0.GA 5.0.2.GA 5.0.2.v20150930120735 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA 5.0.0.GA 5.0.0.v20150915230722 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/5.0.0.GA 4.1.1.GA 4.1.1.v20150816214206 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA 3.5.1.GA 3.5.1.v20150305100816 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA 3.3.0.GA 3.3.0.v20140711123603 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA 3.2.3.GA 3.2.3 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA 3.2.1.GA 3.2.1 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA 3.2.0.GA 3.2.0 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.GA 3.1.3.GA 3.1.3 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA 3.1.2.GA 3.1.2 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA 3.1.1.GA 3.1.1 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/3.1.1.GA 3.1.0.GA 3.1.0 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA 3.0.2.GA 3.0.2 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA 3.0.0.GA 3.0.0 /Users/ricardopereira/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA 1.7.5 appc info (resume): Operating System Name = Mac OS X Version = 10.10.5 Architecture = 64bit # CPUs = 2 Memory = 4.0GB Node.js Node.js Version = 4.2.2 npm Version = 2.14.7 Appcelerator CLI Installer = 4.2.6 Core Package = 5.3.0 Titanium CLI CLI Version = 5.0.8 node-appc Version = 0.2.31 Java Development Kit Version = 1.7.0_80 Java Home = /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home Android SDK Android Executable = /Applications/Android/android-sdk-macosx/tools/android ADB Executable = /Applications/Android/android-sdk-macosx/platform-tools/adb SDK Path = /Applications/Android/android-sdk-macosx Android NDK NDK Path = /Applications/Android/android-ndk-r12 NDK Version = 12.0.2931149 Android Platforms 1) android-21 Name = Android 5.0.1 **Not supported by Titanium SDK 5.3.0.GA** API Level = 21 Revision = 2 Skins = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in ABIs = no ABIs. Path = /Applications/Android/android-sdk-macosx/platforms/android-21 2) android-23 Name = Android 6.0 API Level = 23 Revision = 3 Skins = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in ABIs = armeabi-v7a, x86, x86_64 Path = /Applications/Android/android-sdk-macosx/platforms/android-23 3) android-N Name = Android N (Preview) API Level = N Revision = 3 Skins = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in ABIs = no ABIs. Path = /Applications/Android/android-sdk-macosx/platforms/android-N 4) android-24 Name = Android N (not supported by Titanium SDK 5.3.0.GA, but may work) API Level = 24 Revision = 1 Skins = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in ABIs = x86, x86_64 Path !https://s32.postimg.org/4irj8ws45/appc.png!
I'm unable to reproduce this issue as well. For [~ricardo_jcp] I see that the NDK you are using is really brand new, r12. You can try using a version that is r10e.
Now after my fresh install, I only have ndk r12 and the 5.3.0.GA, before I had almost all Titanium SDK versions after 3.2.x.GA, and my NDK was r11c. I've another mac with the configuration that I've posted here, if you want me to test another thing just tell me
Hello, In your fresh installation, Use an old NDK r10e. And try to build Android module. See if that works.