bthurlow / nativescript-imagecropper

A nativescript image cropping plugin.
Other
49 stars 35 forks source link

Always null in UCrop; #24

Closed yclau closed 6 years ago

yclau commented 6 years ago

Which platform(s) does your issue occur on?

Android

Please, provide the following version numbers that your issue occurs with:

{
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "NativeScript Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "org.nativescript.testing",
    "tns-android": {
      "version": "3.4.1"
    }
  },
  "dependencies": {
    "nativescript-camera": "^3.2.1",
    "nativescript-hprt": "^0.9.7",
    "nativescript-imagecropper": "^0.1.2",
    "nativescript-plugin-seed": "^1.0.2",
    "nativescript-pro-ui": "^3.3.0",
    "nativescript-theme-core": "~1.0.4",
    "tns-core-modules": "~3.4.0"
  },
  "devDependencies": {
    "babel-traverse": "6.26.0",
    "babel-types": "6.26.0",
    "babylon": "6.18.0",
    "copy-webpack-plugin": "~4.3.0",
    "css-loader": "~0.28.7",
    "extract-text-webpack-plugin": "~3.0.2",
    "lazy": "1.0.11",
    "nativescript-dev-webpack": "^0.9.0",
    "nativescript-worker-loader": "~0.8.1",
    "raw-loader": "~0.5.1",
    "resolve-url-loader": "~2.2.1",
    "uglifyjs-webpack-plugin": "~1.1.6",
    "webpack": "~3.10.0",
    "webpack-bundle-analyzer": "^2.9.1",
    "webpack-sources": "~1.1.0"
  }
}

In version 0.1.2 or 0.1.0 also null; var UCrop = com.yalantis.ucrop.UCrop;

Isn't need add jar or aar file into folder? And I try follow your step installation --> https://i.imgur.com/RdgN8Eu.png , but also get null.

shiv19 commented 6 years ago

Did you try doing tns platform remove android then tns run android

yclau commented 6 years ago

Thank you advise, after remove platform and build then can work smoothly