Meteor 1.3 + cordova 6 update

Hi there, im having a problem regarding compiling my mobile app, its run fine on the web but when i try to run on a device or emulator im having an error. I guess its might be because i just updated to cordova 6.0 and now im getting:

=> Errors executing Cordova commands:

While running Cordova app for platform Android with options --emulator:
Error: Command failed: /home/noslen/Desktop/andagoeV2/.meteor/local/cordova-build/platforms/android/cordova/run --emulator
FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

Could not resolve all dependencies for configuration ‘:_debugCompile’.
Could not find any version that matches com.android.support:support-v4:23.+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml
https’://repo1.maven.org/maven2/com/android/support/support-v4/
Required by:
:android:unspecified
Could not find any version that matches com.android.support:appcompat-v7:23.+.
Searched in the following locations:
https’://repo1.maven.org/maven2/com/android/support/appcompat-v7/maven-metadata.xml
https’://repo1.maven.org/maven2/com/android/support/appcompat-v7/
Required by:
:android:unspecified

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Error code 1 for command: /home/noslen/Desktop/andagoeV2/.meteor/local/cordova-build/platforms/android/gradlew with args:
    cdvBuildDebug,-b,/home/noslen/Desktop/andagoeV2/.meteor/local/cordova-build/platforms/android/build.gradle,-PcdvBuildArch=x86,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
    undefined
    at ChildProcess.exitCallback (/tools/utils/processes.js:151:23)
    at ChildProcess.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:820:12)

/home/noslen/.meteor/packages/meteor-tool/.1.3.2_4.10vjklo++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/isopackets/cordova-support/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:116
throw error;
^
ExitWithCode:1


i was thinking about downgrade to version 5.4.0 it was my previous version but i dont know if sudo npm install -g cordova@5.4.0 actually will solve my problem,im not 100% sure if the problem is regarding cordova version…
PS- note that some https link have ’ bcuz newbies only can post 2 links in a post
Thank you in advance.

Could not find any version that matches com.android.support:support-v4:23.+.

You need add (or update) “Android Support Repository” from the Android SDK Manager.

As dar as I know, your cordova installation has no influence on meteor.

1 Like

thankz. it actually solve the problem :smiley: its was wird because it was working and suddendly after the update it gaveme this error.
bu solved. ^^

Hi @n0slen, how did you do that, updating to cordova 6 if I might ask?

I have updated that but still failing. This happens on Mac, but using Windows works well