Building

Building-related troubleshooting solutions.

Android

Problem Solution
When building to device: ERROR: Failed to deploy to device, no devices found Make sure you have all necessary Android images installed (run android). Also make sure that you have unlocked Developer Settings on your device and enabled USB Debugging.
When building to device: [Error: spawn EACCES] code: 'EACCES', errno: 'EACCES', syscall: 'spawn' This applies if you have Android Studio installed. You need to set permissions for gradle: chmod 755 /Applications/[YOUR-ANDROID-STUDIO-APP].app/Contents/gradle/[YOUR-GRADLE-VERSION]/bin/gradle
When building to device: ERROR: Android target: No android targets (SDKs) installed 1st solution is meteor remove-platform android then add it again meteor add-platform android.

2nd solution: typing sdkmanager --list and check the Installed packages:. It should contains build-tools; <version>, emulator, patcher, platform-tools, tools, platform;android-<version same with build-tools>.
If it doesn’t have platform;android then you must install it by sdkmanager "platforms;android-<version>". After that, you should check again in sdkmanager --list and avdmanager list target
When building to device: ERROR: Android target: avdmanager: Command failed with exit code 1 Error output: Exception in thread “main” java.lang.noclassdeffounderror Solution: JDK 9 does not work with Cordova -> install JDK 8 brew cask install caskroom/versions/java8 if this does not work, try: brew upgrade brew-cask (brew upgrade brew-cask-completion)

Add JDK 8 home folder to terminal init file (e.g. ~/.zshrc) e.g. export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.jdk/Contents/Home
When building to device: ERROR: [INSTALL_FAILED_OLDER_SDK] Solution: The phone’s API is older than android-minSdkVersion in config -> change App.setPreference('android-minSdkVersion', '21'); in config file

iOS

Problem Solution
Nothing Yet

XCode

Problem Solution
When trying to archive: <The app> is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified Go to general -> signing. Untick Automatically manage signing tick again and select team again.
Edit on GitHub