Search code examples
androiddeeplearning4jdl4j

Deeplearning4J nd4j-native.properties cannot be opened because it does not exist


When I used DL4J(version 1.0.0-M1.1) on android studio, it says that "nd4j-native.properties cannot be opened because it does not exist".However if I used on IDEA or the version was 1.0.0-beta7, the error did not occurred.


Solution

  • I solved the issue by including nd4j-native.properties as follows,

    packagingOptions {
        merge 'nd4j-native.properties'
    }
    

    For Gradle 7.0.2 and above the following might work,

    packagingOptions {
        resources.merges.add('nd4j-native.properties');
    }
    

    Also refer to More than one file was found with OS independent path 'META-INF/LICENSE' for more info.