Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Phonegap-plugin-push added, and now no build for android possible!

$
0
0

@HappyHappyJoyJoy wrote:

Hi there,

regarding to http://docs.ionic.io/docs/push-from-scratch
I added the web client with ionic add ionic-platform-web-client and
I added the push plugin with ionic plugin add phonegap-plugin-push to my project.

I had applied every step from the documentation http://docs.ionic.io/docs/push-from-scratch

If I run ionic run ios --device on my mac for my iPhone, everything is fine. Later I can recive one-time dev-push-notifications I send from my account on http://ionic.io

BUT if I run ionic run android --device on Windows, I'm getting this weird error output:

Running command: "C:\Program Files\nodejs\node.exe" T:\Coding\MyApp\hooks\after_prepare\010_add_platform_class.js T:\Coding\MyApp
add to body class: platform-android
Running command: cmd "/s /c "T:\Coding\MyApp\platforms\android\cordova\run.bat --device""
ANDROID_HOME=C:\Users\itsme\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_79
Running: T:\Coding\MyApp\platforms\android\gradlew cdvBuildDebug -b T:\Coding\MyApp\platforms\android\build.gradle -PcdvBuildArch=arm -Dorg.gradle.daemon=true

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-v13:23+.
 Searched in the following locations:
     https://repo1.maven.org/maven2/com/android/support/support-v13/maven-metadata.xml
     https://repo1.maven.org/maven2/com/android/support/support-v13/
     file:/C:/Users/dogrusoez/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/support-v13/maven-metadata.xml
     file:/C:/Users/dogrusoez/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/support-v13/maven-metadata.xml
     file:/C:/Users/dogrusoez/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/support-v13/
 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.

BUILD FAILED

Total time: 22.476 secs

T:\Coding\MyApp\platforms\android\cordova\node_modules\q\q.js:126
            throw e;
                  ^
Error code 1 for command: cmd with args: /s /c "T:\Coding\MyApp\platforms\android\gradlew cdvBuildDebug -b T:\Coding\MyApp\platforms\android\build.gradle -PcdvBuildArch=arm -Dorg.gradle.daemon=true"
ERROR running one or more of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to run this project

But why? How to resolve this little hurdle?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>