Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2259] Android: Compile time Error Build process exited with code 1 due to Admob module

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2013-05-31T23:39:51.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelstriage
ReporterJoseph Sachs
AssigneeShak Hossain
Created2013-05-29T15:00:02.000+0000
Updated2016-03-08T07:41:15.000+0000

Description

Attachments

FileDateSize
build.log2013-05-29T19:35:57.000+0000332
SESSION 2013-05-29.txt2013-05-30T00:46:24.000+00001738

Comments

  1. Ingo Muschenetz 2013-05-29

    [~underlabs] Can you add the build file as noted in /Users/theUser/Documents/Titanium/AppName/build.log?
  2. Joseph Sachs 2013-05-29

    Attached the build.log I wish I can provide more info, but this is all that was traced. I can probably _securely_ send you the full project?
  3. Daniel Sefton 2013-05-29

    Hi Joseph, Yeah that doesn't provide much more info sadly :) That's also what you see when you go to Help -> Studio -> View Log File? Does it only happen for that particular project? You mention Admob - what happens if you remove that? Note that the Admob module is open source, so you could always try rebuilding it yourself: https://github.com/appcelerator/titanium_modules/tree/master/admob
  4. Joseph Sachs 2013-05-30

    Hi Daniel, I've removed AdMob, and I still got the same error. I also attached the logfile from Help -> Studio -> View Log File.
  5. Daniel Sefton 2013-05-30

    Thanks Joseph. The log is really long, it would help even more if you could go to Help -> Studio -> Clear Log File, try building again, and then posting that log too. Then we can know exactly which error is relevant. One other thing - can you clarify if it happens for other projects? What happens if you try to build one of the template projects? Cheers!
  6. Joseph Sachs 2013-05-30

    That was exactly what I was trying to do :) I've uploaded the essential session. On another note, an empty project/other projects, work. Notify me (seeing the log dosen't help too much) if you would like me to email you the Project itself as is. It runs perfectly on iOS... Now the Android version is next, and I'd prefer to have the same code base, and manage the platform differences by code. This error occurred on the first run of trying it on Android (the device & simulator gives this error). Also, I have tried removing All Modules. I wouldn't have logged this error in Jira till I saw this: http://developer.appcelerator.com/question/151834/build-process-exited-with-code-1 This was first asked 4 weeks ago. I also tried to target Android 2.3.3 to 4.0 with the same error.
  7. Daniel Sefton 2013-05-31

    Just ran your project - first on iOS 6 simulator, ran fine. I then installed it on a Samsung Galaxy S2 Android 2.3.6, it installed and ran fine without any error for both 3.1 GA and latest 3.1.1 build (however the screen is all white, but that's probably a porting issue you've yet to solve). I then built it for the Android 4.1.2 x86 HVGA emulator, and the project built fine, but crashed at runtime. Sadly I can't reproduce your "Build process exited with code 1" error...
  8. Joseph Sachs 2013-05-31

    I guess that's Good news :) No problem with the porting issue, I'd love to start working on it. I've copied all the resource/ folder into a New Project, and it gave me an error:
       [ERROR] Error generating R.java from manifest
       [ERROR] /Users/theFool/Documents/Titanium/BikeWatchAndroid/build/android/AndroidManifest.xml:13: error: Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize').
       [ERROR] :  Build process exited with code 1
       [ERROR] :  Project failed to build after 2s 291ms
       
    So now I'm figuring it's the tiapp.xml's ** tag that's causing the trouble. With a bit of research... seems it's AdMob that needs:
       <manifest android:versionCode="1" android:versionName="1.0"/>
       <uses-sdk android:maxSdkVersion="16" android:minSdkVersion="8" android:targetSdkVersion="16" />
       <tool-api-level>16</tool-api-level>
       
    And it WORKED!! Sorry to have bothered you. I think this issue should be changed to resolved.
  9. Daniel Sefton 2013-05-31

    Could be, I'm using the latest stable: 3.1.0.201304151600
  10. Joseph Sachs 2013-05-31

    It's Working now :)
  11. Daniel Sefton 2013-05-31

    I forgot about the studio version, I guess I'll try with 3.1.1 next.
  12. Daniel Sefton 2013-05-31

    Oh, ok. Nice. Glad you solved it :-) I'll resolve the issue. Thanks!
  13. Shak Hossain 2013-12-10

    Closing as per Joseph's feedback.

JSON Source