Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

Ionic Package license agreements #142

Open
RTeran opened this issue Jan 19, 2017 · 6 comments
Open

Ionic Package license agreements #142

RTeran opened this issue Jan 19, 2017 · 6 comments

Comments

@RTeran
Copy link

RTeran commented Jan 19, 2017

Hello, I have a license agreements problem in Ionic Package service. After uploading the application with ionic package build android, the compilation in the cloud fails and gives me this error:

ANDROID_HOME=/usr/local/src/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Subproject Path: CordovaLib
Incremental java compilation is an incubating feature.

FAILURE: Build failed with an exception.

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

You have not accepted the license agreements of the following SDK components:
[Android Support Repository].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

  • 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: 6.345 secs
Error: /home/package/workspace/apps-XXXXXX-26/cordova/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

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

You have not accepted the license agreements of the following SDK components:
[Android Support Repository].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

If I was in local to solve it with the command android update sdk, but being in the Ionic Cloud I can do nothing.

My cordova-android version is 6.1.1. I tested with 5.0.0 and 6.0.0

@imhoffd
Copy link
Contributor

imhoffd commented Jan 19, 2017

@RTeran Please try your build again?

@RTeran
Copy link
Author

RTeran commented Jan 20, 2017

@dwieeb I already tried, I still have the same problem

@djereg
Copy link

djereg commented May 29, 2017

Same here.

global packages:

    @ionic/cli-utils : 1.2.0
    Cordova CLI      : 7.0.0
    Ionic CLI        : 3.2.0

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.2.1
    @ionic/cli-plugin-ionic-angular : 1.2.0
    Cordova Platforms               : android 6.1.2 ios 4.4.0
    Ionic Framework                 : ionic-angular 3.3.0

System:

    Node       : v7.10.0
    OS         : Windows 10
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed

Tried with 6.2 but throws another error #211

@dovk
Copy link

dovk commented Jun 6, 2017

HELP!!! Everything worked perfectly until adding the Facebook plugin.
Someone wrote somewhere to use version 1.7.4 instead of 1.9.1 but that didn't help.
ionic info

@ionic/cli-utils: 1.3.0, 
Cordova CLI: 7.0.1, 
Ionic CLI: 3.3.0, 
@ionic/app-scripts: 1.3.7, 
@ionic/cli-plugin-cordova: 1.3.0, 
@ionic/cli-plugin-ionic-angular: 1.3.0, 
Cordova Platforms: none, 
Ionic Framework: ionic-angular 3.3.0

package.json

  "dependencies": {
    "@angular/animations": "4.1.2",
    "@angular/common": "4.1.2",
    "@angular/compiler": "4.1.2",
    "@angular/compiler-cli": "4.1.2",
    "@angular/core": "4.1.2",
    "@angular/forms": "4.1.2",
    "@angular/http": "4.1.2",
    "@angular/platform-browser": "4.1.2",
    "@angular/platform-browser-dynamic": "4.1.2",
    "@angular/platform-server": "4.1.2",
    "@ionic-native/android-full-screen": "^3.12.1",
    "@ionic-native/app-minimize": "^3.12.1",
    "@ionic-native/core": "^3.12.1",
    "@ionic-native/device": "^3.12.1",
    "@ionic-native/email-composer": "^3.12.1",
    "@ionic-native/facebook": "^3.12.1",
    "@ionic-native/in-app-browser": "^3.12.1",
    "@ionic-native/keyboard": "^3.12.1",
    "@ionic-native/local-notifications": "^3.12.1",
    "@ionic-native/splash-screen": "^3.12.1",
    "@ionic-native/status-bar": "^3.12.1",
    "angularfire2": "^4.0.0-rc.0",
    "chart.js": "^2.5.0",
    "cordova-plugin-appminimize": "^1.0.0",
    "cordova-plugin-device": "^1.1.4",
    "cordova-plugin-email": "^1.2.6",
    "cordova-plugin-facebook4": "^1.7.4",
    "cordova-plugin-fullscreen": "^1.1.0",
    "cordova-plugin-inappbrowser": "^1.7.1",
    "cordova-plugin-splashscreen": "^4.0.3",
    "cordova-plugin-statusbar": "^2.2.1",
    "de.appplant.cordova.plugin.local-notification": "^0.8.5",
    "firebase": "4.1.1",
    "ionic-angular": "3.3.0",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "^3.0.0",
    "promise-polyfill": "^6.0.2",
    "rxjs": "5.1.1",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.11"
  },
  "devDependencies": {
    "@angular/cli": "^1.1.0",
    "@ionic/app-scripts": "^1.3.7",
    "@ionic/cli-plugin-cordova": "1.3.0",
    "@ionic/cli-plugin-ionic-angular": "1.3.0",
    "typescript": "^2.3.4"
  },
  "cordova": {
    "plugins": {
      "cordova-plugin-fullscreen": {},
      "cordova-plugin-appminimize": {},
      "cordova-plugin-device": {},
      "cordova-plugin-email": {},
      "cordova-plugin-facebook4": {
        "APP_ID": "1234567890",
        "APP_NAME": "xxx"
      },
      "cordova-plugin-inappbrowser": {},
      "ionic-plugin-keyboard": {},
      "de.appplant.cordova.plugin.local-notification": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-statusbar": {}
    }

config.xml plugins

<plugin name="cordova-plugin-whitelist" spec="1.3.1" />
<plugin name="cordova-plugin-console" spec="1.0.5" />
<plugin name="cordova-plugin-appminimize" spec="^1.0.0" />
<plugin name="cordova-plugin-fullscreen" spec="^1.1.0" />
<plugin name="cordova-plugin-device" spec="^1.1.4" />
<plugin name="cordova-plugin-email" spec="^1.2.6" />
<plugin name="cordova-plugin-facebook4" spec="^1.7.4">
	<variable name="APP_ID" value="1234567890" />
	<variable name="APP_NAME" value="xxx" />
</plugin>
<plugin name="cordova-plugin-inappbrowser" spec="^1.7.1" />
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
<plugin name="de.appplant.cordova.plugin.local-notification" spec="^0.8.5" />
<plugin name="cordova-plugin-splashscreen" spec="^4.0.3" />
<plugin name="cordova-plugin-statusbar" spec="^2.2.1" />

And the message in the Ionic Cloud build

ANDROID_HOME=/usr/local/src/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-8-oracle
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 com.android.support:support-v4:25.3.1.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/android/support/support-v4/25.3.1/support-v4-25.3.1.pom
         https://repo1.maven.org/maven2/com/android/support/support-v4/25.3.1/support-v4-25.3.1.jar
         file:/usr/local/src/android-sdk-linux/extras/android/m2repository/com/android/support/support-v4/25.3.1/support-v4-25.3.1.pom
         file:/usr/local/src/android-sdk-linux/extras/android/m2repository/com/android/support/support-v4/25.3.1/support-v4-25.3.1.jar
         file:/usr/local/src/android-sdk-linux/extras/google/m2repository/com/android/support/support-v4/25.3.1/support-v4-25.3.1.pom
         file:/usr/local/src/android-sdk-linux/extras/google/m2repository/com/android/support/support-v4/25.3.1/support-v4-25.3.1.jar
     Required by:
         :android:unspecified
   > Could not find com.android.support:support-v4:25.3.1.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/android/support/support-v4/25.3.1/support-v4-25.3.1.pom
         https://repo1.maven.org/maven2/com/android/support/support-v4/25.3.1/support-v4-25.3.1.jar
         file:/usr/local/src/android-sdk-linux/extras/android/m2repository/com/android/support/support-v4/25.3.1/support-v4-25.3.1.pom
         file:/usr/local/src/android-sdk-linux/extras/android/m2repository/com/android/support/support-v4/25.3.1/support-v4-25.3.1.jar
         file:/usr/local/src/android-sdk-linux/extras/google/m2repository/com/android/support/support-v4/25.3.1/support-v4-25.3.1.pom
         file:/usr/local/src/android-sdk-linux/extras/google/m2repository/com/android/support/support-v4/25.3.1/support-v4-25.3.1.jar
     Required by:
         :android:unspecified > com.facebook.android:facebook-android-sdk:4.23.0
   > Could not find com.android.support:appcompat-v7:25.3.1.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/android/support/appcompat-v7/25.3.1/appcompat-v7-25.3.1.pom
         https://repo1.maven.org/maven2/com/android/support/appcompat-v7/25.3.1/appcompat-v7-25.3.1.jar
         file:/usr/local/src/android-sdk-linux/extras/android/m2repository/com/android/support/appcompat-v7/25.3.1/appcompat-v7-25.3.1.pom
         file:/usr/local/src/android-sdk-linux/extras/android/m2repository/com/android/support/appcompat-v7/25.3.1/appcompat-v7-25.3.1.jar
         file:/usr/local/src/android-sdk-linux/extras/google/m2repository/com/android/support/appcompat-v7/25.3.1/appcompat-v7-25.3.1.pom
         file:/usr/local/src/android-sdk-linux/extras/google/m2repository/com/android/support/appcompat-v7/25.3.1/appcompat-v7-25.3.1.jar
     Required by:
         :android:unspecified > com.facebook.android:facebook-android-sdk:4.23.0
   > Could not find com.android.support:cardview-v7:25.3.1.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/android/support/cardview-v7/25.3.1/cardview-v7-25.3.1.pom
         https://repo1.maven.org/maven2/com/android/support/cardview-v7/25.3.1/cardview-v7-25.3.1.jar
         file:/usr/local/src/android-sdk-linux/extras/android/m2repository/com/android/support/cardview-v7/25.3.1/cardview-v7-25.3.1.pom
         file:/usr/local/src/android-sdk-linux/extras/android/m2repository/com/android/support/cardview-v7/25.3.1/cardview-v7-25.3.1.jar
         file:/usr/local/src/android-sdk-linux/extras/google/m2repository/com/android/support/cardview-v7/25.3.1/cardview-v7-25.3.1.pom
         file:/usr/local/src/android-sdk-linux/extras/google/m2repository/com/android/support/cardview-v7/25.3.1/cardview-v7-25.3.1.jar
     Required by:
         :android:unspecified > com.facebook.android:facebook-android-sdk:4.23.0
   > Could not find com.android.support:customtabs:25.3.1.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/android/support/customtabs/25.3.1/customtabs-25.3.1.pom
         https://repo1.maven.org/maven2/com/android/support/customtabs/25.3.1/customtabs-25.3.1.jar
         file:/usr/local/src/android-sdk-linux/extras/android/m2repository/com/android/support/customtabs/25.3.1/customtabs-25.3.1.pom
         file:/usr/local/src/android-sdk-linux/extras/android/m2repository/com/android/support/customtabs/25.3.1/customtabs-25.3.1.jar
         file:/usr/local/src/android-sdk-linux/extras/google/m2repository/com/android/support/customtabs/25.3.1/customtabs-25.3.1.pom
         file:/usr/local/src/android-sdk-linux/extras/google/m2repository/com/android/support/customtabs/25.3.1/customtabs-25.3.1.jar
     Required by:
         :android:unspecified > com.facebook.android:facebook-android-sdk:4.23.0
* 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: 2.871 secs
Error: Error code 1 for command: /home/package/workspace/apps-151e1083-476/cordova/platforms/android/gradlew with args: cdvBuildRelease,-b,/home/package/workspace/apps-151e1083-476/cordova/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

@amandeepmittal
Copy link

Were any of you able to solve this problem?

@dovk
Copy link

dovk commented Jun 9, 2017

Yes, finally yesterday.
The suggestion to revert to version 1.7.4 of the Cordova Facebook plugin was correct, same for reverting to Corodova Android plugin version 6.1.2.
It seems that when I first installed (adding @1.7.4 in the install command) it showed up in package.json as "cordova-plugin-facebook4": "^1.7.4",.
When it still didn't work I changed it to "cordova-plugin-facebook4": "1.7.4", (without the ^) and it worked. Same thing for "cordova-android": "6.1.2".
I wish we all wouldn't have to go through this all the time. Here's my package.json

    "dependencies": {
        "@angular/animations": "4.1.2",
        "@angular/common": "4.1.2",
        "@angular/compiler": "4.1.2",
        "@angular/compiler-cli": "4.1.2",
        "@angular/core": "4.1.2",
        "@angular/forms": "4.1.2",
        "@angular/http": "4.1.2",
        "@angular/platform-browser": "4.1.2",
        "@angular/platform-browser-dynamic": "4.1.2",
        "@angular/platform-server": "4.1.2",
        "@ionic-native/app-minimize": "^3.12.1",
        "@ionic-native/core": "^3.12.1",
        "@ionic-native/device": "^3.12.1",
        "@ionic-native/email-composer": "^3.12.1",
        **"@ionic-native/facebook": "^3.12.1",**
        "@ionic-native/in-app-browser": "^3.12.1",
        "@ionic-native/keyboard": "^3.12.1",
        "@ionic-native/local-notifications": "^3.12.1",
        "@ionic-native/splash-screen": "^3.12.1",
        "@ionic-native/status-bar": "^3.12.1",
        "angularfire2": "^4.0.0-rc.0",
        "chart.js": "^2.5.0",
        "cordova-android": "6.1.2",
        "cordova-ios": "^4.4.0",
        "cordova-plugin-appminimize": "^1.0.0",
        "cordova-plugin-console": "^1.0.5",
        "cordova-plugin-device": "^1.1.4",
        "cordova-plugin-email": "^1.2.6",
        cordova-plugin-facebook4": "1.7.4",
        "cordova-plugin-inappbrowser": "^1.7.1",
        "cordova-plugin-googleplus": "^5.1.1",
        "cordova-plugin-splashscreen": "^4.0.3",
        "cordova-plugin-statusbar": "^2.2.1",
        "cordova-plugin-whitelist": "^1.3.1",
        "de.appplant.cordova.plugin.local-notification": "^0.8.5",
        "firebase": "4.1.1",
        "ionic-angular": "3.3.0",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionicons": "^3.0.0",
        "promise-polyfill": "^6.0.2",
        "rxjs": "5.1.1",
        "sw-toolbox": "3.6.0",
        "zone.js": "0.8.11",
        "cordova-plugin-app-event": "~1.2.0"
    },
    "devDependencies": {
        "@angular/cli": "^1.1.0",
        "@ionic/app-scripts": "^1.3.7",
        "@ionic/cli-plugin-cordova": "1.3.0",
        "@ionic/cli-plugin-ionic-angular": "1.3.0",
        "typescript": "^2.3.4"
    },
    "cordova": {
        "plugins": {
            "cordova-plugin-appminimize": {},
            "cordova-plugin-device": {},
            "cordova-plugin-email": {},
            "cordova-plugin-inappbrowser": {},
            "ionic-plugin-keyboard": {},
            "de.appplant.cordova.plugin.local-notification": {},
            "cordova-plugin-splashscreen": {},
            "cordova-plugin-statusbar": {},
            "cordova-plugin-console": {},
            "cordova-plugin-whitelist": {},
            "cordova-plugin-facebook4": {
                "APP_ID": "1234567890",
                "APP_NAME": "xxx"
            },

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants