Titanium JIRA Archive
Appcelerator Community (AC)

[AC-852] Creating the demo android module does not work

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-11-06T05:51:43.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
LabelsTCSupportTriage
ReporterTommy Leirvik
AssigneeMauro Parra-Miranda
Created2014-10-15T08:57:20.000+0000
Updated2016-03-08T07:37:08.000+0000

Description

Comments

  1. Harish Mridha 2014-10-17

    Hi, We tried to reproduce this issue with a sample test case. It’s not a valid bug. We successfully created a demo android module using Ti SDK 3.4.0.GA. Check the screenshot: http://oi60.tinypic.com/bex8q0.jpg

    TESTING ENVIRONMENT:

    Ti SDK 3.4.0.GA Ti CLI 3.4.0 Mac OS X 10.9.5 Android 4.4.2

    EXPECTED RESULT:

    It’s working as expected. Thanks
  2. Bryan Johnson 2015-01-28

    I would like to see this issue reopened. I am experiencing this error on Windows 8.1 and Mac OSX Mavericks and Yosemite using titanium 3.4.1.GA. The author of the previous comment (Harish Mridha) stated that he successfully created a demo module and provided a screenshot of the created module. However, the error the original submitter encountered did not occur during creation of the module. The error occurs when the user runs using either “ant run” or (in our case) “ant install” after creating the module. Our goal with titanium was to create a custom module for our application. Titanium Studio provides a mechanism to deploy your module to another Titanium app to facilitate debugging/testing. I found documentation online where you can run your module using the app.js file located in the example directory. This seemed to be a simpler method for testing our native module. Here was my process for replicating the error. *Create the module:*
       titanium create -p android -t module -n myexample --id com.mycompany.myexample -d . -u http://www.mycompany.com
       
    This command runs successfully with no errors *Compile the module (in the module’s android directory):*
       ant dist
       
    There are a few configuration changes I needed to make to the build.properties so that it contains the right sdk/ndk paths. Afterwards this command worked fine. I've saved my build.properties for reference to pastebin: http://pastebin.com/8TLx10m3 *Install the module:*
       ant install
       
    This command fails and displays the output that the original submission describes. I have attached the output I receive when running the above command. I've saved the result of this command to pastebin: http://pastebin.com/ebPVmF88 Other information: - If I create the module in Titanium Studio, the error still occurs when I run the “ant install” command. - I’ve noticed a user on stack overflow has posted a question about this very point. He notes that upgrading the MIN_API_LEVEL in the builder.py file will fix the issue. However, I find that to be a very hacky solution. The link for the question is: http://stackoverflow.com/questions/26110492/titanium-mobile-cannot-build-android-modules-in-3-3-0 - This occurs on all machines (Mac OSX Mavericks and Yosemite) in our office. I also tried it on a windows machine at home (Windows 8.1, Titanium 3.4.1.GA) and got the same error. Thank you in advance, Bryan Johnson
  3. Bryan Johnson 2015-02-11

    I haven't seen any activity with this bug. If there's no activity for another week or so. I will open a new bug.

JSON Source