Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3806] Can't build android module

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2016-07-14T19:09:26.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsAppcelerator Modules
Labelsandroid, cli, module
ReporterVittorio Sorbera
AssigneeAminul Islam
Created2016-06-09T10:41:36.000+0000
Updated2016-07-14T19:09:26.000+0000

Description

Attachments

FileDateSize
build.properties2016-06-09T16:25:31.000+0000247
miga.adbuddiz-android-1.2.0.zip2016-06-09T17:24:09.000+0000340990
Schermata 2016-06-09 alle 12.39.42.png2016-06-09T10:40:03.000+000040761
Screen Shot 2016-06-09 at 10.18.14 PM.png2016-06-09T16:25:32.000+000017273

Comments

  1. Aminul Islam 2016-06-09

    Hi, Thanks for reaching us. Please include *build.properties* in your module and configure it with latest SDK, NDK
       titanium.platform=/Users/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android
       android.platform=/Users/Library/android-sdk-macosx/platforms/android-23
       google.apis=/Users/Library/android-sdk-macosx/add-ons/addon-google_apis-google-23
       
    Please find the attached screenshot and build.properties file. Let us know if you get error again. Regards, Aminul
  2. Vittorio Sorbera 2016-06-09

    Thanks, this is my *build.properties*
       titanium.platform=/Users/Astrovic/Library/Application\ Support/Titanium/mobilesdk/osx/5.3.0.GA/android
       android.platform=/Users/Astrovic/Dati/Applicazioni/android-sdk/platforms/android-23
       google.apis=/Users/Astrovic/Dati/Applicazioni/android-sdk/add-ons/addon-google_apis-google-23
       android.ndk=/Users/Astrovic/Dati/Applicazioni/android-ndk/android-ndk-r10e
       
  3. Aminul Islam 2016-06-09

    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 ?
       <?xml version="1.0" encoding="UTF-8"?>
       <ti:module xmlns:ti="http://ti.appcelerator.org" xmlns:android="http://schemas.android.com/apk/res/android">
       	<!--
       		Similar to tiapp.xml, but contains module/platform specific
       		configuration in <iphone>, <android>, and <mobileweb> sections
       	-->
       	<iphone>
       	</iphone>
       	<android xmlns:android="http://schemas.android.com/apk/res/android">
       		<manifest>
                   <application>
                       <activity android:name="com.purplebrain.adbuddiz.sdk.AdBuddizActivity" android:theme="@android:style/Theme.Translucent" />
                   </application>
                   <uses-permission android:name="android.permission.INTERNET" />
                   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
               </manifest>
       	</android>
       	<mobileweb>
       	</mobileweb>
       </ti:module>
       
    My test environment
       Operating System
         Name                        = Mac OS X
         Version                     = 10.11.5
         Architecture                = 64bit
         # CPUs                      = 4
         Memory                      = 8589934592
       Node.js
         Node.js Version             = 4.4.4
         npm Version                 = 2.15.1
       Titanium CLI
         CLI Version                 = 5.0.8
       Titanium SDK
         SDK Version                 = 5.3.0.GA
       
    Thanks
  4. Vittorio Sorbera 2016-06-09

    Hi, no, I don't change anything in timodule.xml My test environment:
       Operating System
         Name                        = Mac OS X
         Version                     = 10.11.2
         Architecture                = 64bit
         # CPUs                      = 4
         Memory                      = 8589934592
       
       Node.js
         Node.js Version             = 4.4.5
         npm Version                 = 2.15.5
       
       Titanium CLI
         CLI Version                 = 5.0.8
       
       Titanium SDK
         SDK Version                 = 5.3.0.GA
       
    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.
  5. Federico Botta 2016-06-10

    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
  6. Vittorio Sorbera 2016-06-10

    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.
  7. Vittorio Sorbera 2016-06-10

    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.
  8. Federico Botta 2016-06-10

    Unfortunately no :-( Thanks anyway Vittorio!
  9. Aminul Islam 2016-06-10

    Hi, Is it still an issue for you? We are waiting for your response.
  10. Vittorio Sorbera 2016-06-10

    Hi, not for me. After removing tiapp.xml in my workplace root, it works again. But seems that Federico still has the problem.
  11. Flavio Lacerda 2016-06-16

    Still with problem! Anyone? There is no tiapp.xml on my workspace.
  12. Ricardo Pereira 2016-06-20

    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?
  13. Mikael Hemligt 2016-06-27

    I have the same problem.. Cannot compile any module..
  14. Ricardo Pereira 2016-06-27

    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.
  15. Aminul Islam 2016-06-27

    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
  16. Ricardo Pereira 2016-06-27

    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
  17. Aminul Islam 2016-06-27

    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.
  18. Ricardo Pereira 2016-06-28

    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!
  19. Ashraf Abu 2016-06-30

    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.
  20. Ricardo Pereira 2016-06-30

    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
  21. Sharif AbuDarda 2016-06-30

    Hello, In your fresh installation, Use an old NDK r10e. And try to build Android module. See if that works.

JSON Source