Giter VIP home page Giter VIP logo

ahasbini / androidopencvgradleplugin Goto Github PK

View Code? Open in Web Editor NEW
26.0 3.0 7.0 225 KB

Gradle Plugin that will automate retrieving the Android OpenCV SDK and linking it to the project, making it easy to include OpenCV into Android applications.

License: MIT License

Groovy 2.52% Java 96.55% CMake 0.93%
android-opencv gradle-plugin cmake native-libraries opencv android-application ndk android-ndk opencv-sdk opencv-android-sdk

androidopencvgradleplugin's People

Contributors

ahasbini avatar mikrop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

androidopencvgradleplugin's Issues

build errors about CleanAndroidOpenCVBuildFolderTask missing annotations

I followed the steps in the README to update my project build.gradle and app build.gradle

When I build on Ubuntu Linux with

./gradlew clean assembleDebug

I get the following errors about missing annotations in CleanAndroidOpenCVBuildFolderTask:

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':passthrough:cleanAndroidOpenCVBuildFolder' (type 'CleanAndroidOpenCVBuildFolderTask').
  - In plugin 'com.ahasbini.android-opencv-gradle-plugin' type 'com.ahasbini.tools.androidopencv.task.CleanAndroidOpenCVBuildFolderTask' property 'description' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.4.2/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - In plugin 'com.ahasbini.android-opencv-gradle-plugin' type 'com.ahasbini.tools.androidopencv.task.CleanAndroidOpenCVBuildFolderTask' property 'group' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.4.2/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - In plugin 'com.ahasbini.android-opencv-gradle-plugin' type 'com.ahasbini.tools.androidopencv.task.CleanAndroidOpenCVBuildFolderTask' property 'name' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.4.2/userguide/validation_problems.html#missing_annotation for more details about this problem.

still asking for OpenCV Manager

I tried your sample and when running it still asks for opencv manager.
Looking at the generated apk i see this
Screen Shot 2020-02-25 at 18 16 45
Though when running it checks for openv_info so lib which is not there:
Screen Shot 2020-02-25 at 18 18 45

Any idea?

PS: i am using opencv 4.1.1

OpenCV sourceforge links incorrect?

Having setup the plugin as described, I get the following error when building the project:

ERROR: Not Found (HTTP status code: 404, URL: https://sourceforge.net/projects/opencvlibrary/files/3.4.3/opencv-3.4.3-android-sdk.zip)

As suggested by the error message the link that is being used does not seem to work.

The download link that is used when navigating manually via a browser is:

https://sourceforge.net/projects/opencvlibrary/files/opencv-android/3.4.3/opencv-3.4.3-android-sdk.zip/download

But that redirects to another site for the actual download, in my case:

https://cfhcable.dl.sourceforge.net/project/opencvlibrary/opencv-android/3.4.3/opencv-3.4.3-android-sdk.zip

Does not work!

I have followed the instructions and I always get this error:
ERROR: Failed to resolve: :opencv-debug:3.4.9

This is regardless of the OpenCV version I specify. I have tried with different ones.

I am using:
Android Studio 3.6.1
Gradle 3.6.1

Any help? Thanks.

Building fails

Following the directions and the build will fail because the sample project tried to access the plugin before it is place.

I fixed the issue by first commenting out the line 'include 'sample'" in the gradle.settings the first time that ./gradlew :plugin:publishToMavenLocal is run

EDIT: I thought that I fixed but it has now failed with a new error, I'll list it here even though it might be a different issue:

        Caused by java.lang.IllegalArgumentException: URI is not hierarchical```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.