Need help for building my apk with meteor 1.4 (resolved)

Hello everyone,

I open a new topic cause i didn’t find a solution to my problem. I made an app that works well when i just launch ‘meteor’ command in the terminal. I pushed it to a server without a problem using mup ( http://legoutdessaisons.com ). Now i want to make an apk and there i ran into problems :

meteor build ../apktry --server 192.168.0.44:3000
ANDROID_HOME=/home/yoann/Android/Sdk         \
JAVA_HOME=/home/yoann/local/jdk1.8.0_101
   Building Cordova app for Android          |                       
:preBuild
:preReleaseBuild
:checkReleaseManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyReleaseLint UP-TO-DATE       |
:CordovaLib:mergeReleaseProguardFiles UP-TO-DATE
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseRenderscript UP-TO-DATE
:CordovaLib:generateReleaseResValues UP-TO-DATE
:CordovaLib:generateReleaseResources UP-TO-DATE
:CordovaLib:packageReleaseResources UP-TO-DATE
 UP-TO-DATE Cordova app for Android          |                              
:CordovaLib:generateReleaseBuildConfig UP-TO-DATE
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets UP-TO-DATE
:CordovaLib:processReleaseManifest UP-TO-DATE
:CordovaLib:processReleaseResources UP-TO-DATE
:CordovaLib:generateReleaseSources UP-TO-DATE
:CordovaLib:compileReleaseJavaWithJavac UP-TO-DATE
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:CordovaLib:mergeReleaseJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:CordovaLib:bundleRelease UP-TO-DATE
:prepareAndroidCordovaLibUnspecifiedReleaseLibrary UP-TO-DATE
:prepareReleaseDependencies
:compileReleaseAidl UP-TO-DATE
:compileReleaseRenderscript UP-TO-DATE
:generateReleaseBuildConfig UP-TO-DATE
:generateReleaseAssets UP-TO-DATE
   Building Cordova app for Android          /                   
:generateReleaseResValues UP-TO-DATE
:generateReleaseResources UP-TO-DATE
:mergeReleaseResources UP-TO-DATE
:processReleaseManifest UP-TO-DATE
 FAILEDding Cordova app for Android          /                        

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/yoann/Android/Sdk/build-tools/24.0.3/aapt'' finished with non-zero exit value 1
   Building Cordova app for Android          -
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 5.372 secs
=> Errors executing Cordova commands:         
                                              
   While building Cordova app for platform Android:
   Error code 1 for command:                  
   /home/yoann/webdev/lego/.meteor/local/cordova-build/platforms/android/gradlew
   with args:
   cdvBuildRelease,-b,/home/yoann/webdev/lego/.meteor/local/cordova-build/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true


i have those meteor packages installed :slight_smile:

meteor-base@1.0.4             # Packages every Meteor app needs to have
mobile-experience@1.0.4       # Packages for a great mobile UX
mongo@1.1.12_1                   # The database Meteor supports right now
blaze-html-templates@1.0.4    # Compile .html files into Meteor Blaze views
kadira:flow-router
kadira:blaze-layout
reactive-var@1.0.10            # Reactive variable for tracker
jquery@1.11.9                  # Helpful client-side library
tracker@1.1.0                 # Meteor's client-side reactive programming library
session@1.1.6
meteortoys:allthings
#chart:chart
matb33:bootstrap-glyphicons
fortawesome:fontawesome
flowkey:bootstrap-tour
joshowens:shareit

# standard-minifier-css   # CSS minifier run for production mode
seba:minifiers-autoprefixer # en remplacement du standard-minifier-css pour scss
fourseven:scss
standard-minifier-js@1.2.0_1    # JS minifier run for production mode
es5-shim@4.6.14_1                # ECMAScript 5 compatibility for older browsers.
ecmascript@0.5.8_1              # Enable ECMAScript2015+ syntax in app code

# autopublish             # Publish all data to the clients (for prototyping)
# insecure                # Allow all DB writes from clients (for prototyping)
twbs:bootstrap
natestrauser:animate-css
u2622:persistent-session
datariot:ganalytics
dfischer:prerenderio
shell-server@0.2.1

I have this config.mobile.js file :

// This section sets up some basic app metadata,
// the entire section is optional.
App.info({
  id: 'lego.com',
  name: 'lego.com',
  description: '...',
  author: 'Yoann',
  email: 'john.doe@laposte.net',
  website: 'http://lego.com',
  version: "0.0.1"

});
// Set up resources such as icons and launch screens.
App.icons({
  "iphone_2x": "resources/icons/ios/res/appicon-60@2x.png", // 120x120
  "iphone_3x": "resources/icons/ios/res/appicon-60@3x.png", // 180x180
  "ipad": "resources/icons/ios/res/appicon-76.png", // 76x76
  "ipad_2x": "resources/icons/ios/res/appicon-76@2x.png", // 152x152
  "ios_settings": "resources/icons/ios/res/appicon-Small.png", // 29x29
  "ios_settings_2x": "resources/icons/ios/res/appicon-Small@2x.png", // 58x58
  "ios_settings_3x": "resources/icons/ios/res/appicon-Small@3x.png", // 87x87
  "ios_spotlight": "resources/icons/ios/res/appicon-Small-40.png", // 40x40
  "ios_spotlight_2x": "resources/icons/ios/res/appicon-Small-40@2x.png", // 80x80
  "android_mdpi": "resources/icons/android/res/drawable-mdpi/icon.png", // 48x48
  "android_hdpi": "resources/icons/android/res/drawable-hdpi/icon.png", // 72x72
  "android_xhdpi": "resources/icons/android/res/drawable-xhdpi/icon.png", // 96x96
  "android_xxhdpi": "resources/icons/android/res/drawable-xxhdpiicon.png", // 144x144
});

App.launchScreens({
  "iphone_2x": "resources/splashes/ios/res/Default@2x~iphone.png", // 640x490
  "iphone5": "resources/splashes/ios/res/Default-568h@2x~iphone.png", // 640x1136
  "iphone6": "resources/splashes/ios/res/Default-667h@2x~iphone.png", // 750x1334
  "iphone6p_landscape": "resources/splashes/ios/res/Default-Landscape-736h@3x.png", // 2208x1242
  "ipad_portrait": "resources/splashes/ios/res/Default-Portrait~ipad.png", // 768x1024
  "ipad_portrait_2x": "resources/splashes/ios/res/Default-Portrait@2x~ipad.png", // 1536x2048
  "ipad_landscape": "resources/splashes/ios/res/Default-Landscape~ipad.png", // 1024x768
  "android_mdpi_portrait": "resources/splashes/android/res-long-port-mdpi/default.png", // 320x480
  "android_mdpi_landscape": "resources/splashes/android/res-long-land-mdpi/default.png", // 480x320
  "android_hdpi_portrait": "resources/splashes/android/res-long-port-hdpi/default.png", // 480x800
  "android_hdpi_landscape": "resources/splashes/android/res-long-land-hdpi/default.png", // 800x480
  "android_xhdpi_portrait": "resources/splashes/android/res-long-port-xhdpi/default.png", // 720x1280
  "android_xhdpi_landscape": "resources/splashes/android/res-long-land-xhdpi/default.png", // 1280x720
  "android_xxhdpi_portrait": "resources/splashes/android/res-long-port-xxhdpi/default.png", // 1080x1440
  "android_xxhdpi_landscape": "resources/splashes/android/res-long-land-xxhdpi/default.png" // 1440x1080
});

my java and android sdk seems ok but i tried many different configurations and i stil run this problem after two days of searching, anyone can help on this problem ? i would really appreciate even just if u have an idea to follow…

thx Yoann

EDIT : I found the problem which was just an img named accidentaly with an accent éèà which made the build impossible…

Could you please mark this as “resolved”? It’s not nice to read through all of this and then find the most relevant info at the very bottom :slight_smile:

yes sorry i wrote it in title now…

1 Like