[TIMOB-24164] Android: Module is not building
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-12-21T17:11:27.000+0000 |
Affected Version/s | Release 6.0.0 |
Fix Version/s | Release 6.0.0 |
Components | Android |
Labels | n/a |
Reporter | Ricardo Ramirez |
Assignee | Gary Mathews |
Created | 2016-11-22T22:33:34.000+0000 |
Updated | 2018-08-06T17:49:30.000+0000 |
Description
Issue description
Since the release of Ti SDK 6.0.0.GA requires rebuilding the old Appcelerator modules using the latest SDK, trying to rebuild an Android module with latest SDK.
After make changes to my manifest file and build.properties, the build process is not working.
PFA the manifest, build.properties and error log files.
Steps to reproduce
Download and import the project to the studio
build using SDK 6.0.0
Wild error log will appear
Attachments
[~rramirez] Modules should be built using
appc run
orti build
. Not saying that will fix the problem but just that it is now the documented way to build. Check out http://skypanther.com/2016/10/rebuilding-modules-for-titanium-6/ and make sure they are using NDK11rc which can be downloaded here https://github.com/android-ndk/ndk/wiki#r11cYes, try
appc run -p android --build-only
?Additional note to the already good tips: There is also a great tutorial for [migrating Android modules to Titanium 6.0.0|skypanther.com/2016/10/rebuilding-modules-for-titanium-6/] you should check out.
What V8 version was used? Mine is 12.1 together with Node JS 4.6.1 and it works fine.
All the errors are coming from the ExampleProxy.java file, found in the titanium mobile repo [here](https://github.com/appcelerator/titanium_mobile/blob/ab89453a97f2dc345007f5476351d9a9b1ed9d00/android/templates/module/default/template/android/src/%7B%7BModuleIdAsFolder%7D%7D/ExampleProxy.java.ejs). If they aren't using that file then they can delete it.
Where is located the ExampleProxy.java ? because is not in the project.
Team !? Something ?
I created a module using 5.5.1.GA & then tried to build it with 6.0.0.GA & it failed with error:
After following http://skypanther.com/2016/10/rebuilding-modules-for-titanium-6/ to the dot I was able to successfully build the same module with SDK 6.0.0.GA using studio & CLI. Appc Studio : 4.8.0.201611121409 SDK Version : 6.0.0.GA Mac OS Version : 10.12 Xcode Version : Xcode 8.1 Build version 8B62 Appc CLI AND Appc NPM : {"NPM":"4.2.8","CLI":"6.0.0"} Ti CLI : 5.0.10 Alloy : 1.9.4 Node : v4.6.0 Java version "1.8.0_101" NDK: r12b
[~cng]Client is requesting for an update on this since its critical for them
Hi ! the error that the customer is getting is different, please take a look:
Here is the Appc info, as you can see, the nodejs is a valid version and the NDK is higher than 10
[~rramirez] I see they are using Android NDK r13b, could they download [Android NDK r12b](https://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip). Also, use
appc run -p android --build-only
instead ofant
Customer was using Android NDK r12b earlier and updated it to r13b recently since you suggested. Trying to build the module again with the older NDK. Going forward, can you please make sure about the version that has to be used before informing us to update since customer had this back and forth earlier with other softwares as well. The build process is not working even with Android NDK r12b using the command "appc run -p android --build-only". PFA the log file "buildLog-12thDec” and appc info output "appcInfo-12thDec”.
[~rramirez] Yes, I created separate tickets to address the specific problems. This is specific to modules created on 5.5.1 and compiled on 6.0.0+ with the appropriate changes already taken. Here's the steps that should be taken: 1. Delete the
build/generated/jni
folder (if it exists) 2. Delete thelibs/armeabi
folder (if it exists) and removearmeabi
from themanifest
3. Rebuild the module usingappc run -p android --build-only
Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.