Skip to content

Commit a04a5b3

Browse files
committed
Use SNAPSHOT version; remove .idea folder
Signed-off-by: Paul Dubs <[email protected]>
1 parent 20165d4 commit a04a5b3

File tree

9 files changed

+23
-178
lines changed

9 files changed

+23
-178
lines changed

android-examples/.idea/codeStyles/Project.xml

Lines changed: 0 additions & 116 deletions
This file was deleted.

android-examples/.idea/dictionaries/rober.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

android-examples/.idea/gradle.xml

Lines changed: 0 additions & 20 deletions
This file was deleted.

android-examples/.idea/misc.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

android-examples/.idea/runConfigurations.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

android-examples/.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

android-examples/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,18 @@ The build configuration for Android can be found in [app/build.gradle](./app/bui
88

99
[Go back](../README.md) to the main repository page to explore other features/functionality of the **Eclipse Deeplearning4J** ecosystem. File an issue [here](https://github.com/eclipse/deeplearning4j-examples/issues) to request new features.
1010

11+
# Known Issues
12+
Due to an unfortunately timed change, the 1.0.0-beta7 release doesn't work well with most Android devices. For this reason, this example project uses the SNAPSHOT version.
13+
14+
Again unfortunately, gradle has issues retrieving SNAPSHOT versions when combined with classifiers, which are used here to retrieve only the android specific backend dependencies.
15+
16+
If you want to run this example locally, you will therefore need to have Maven installed in order to download those specific dependencies.
17+
18+
Once you have installed Maven, you will need to run the following commands from the command line to download the correct android backend files:
19+
20+
```
21+
mvn dependency:get -DremoteRepositories=snapshots::::https://oss.sonatype.org/content/repositories/snapshots -Dartifact=org.nd4j:nd4j-native:1.0.0-SNAPSHOT:jar:android-arm
22+
mvn dependency:get -DremoteRepositories=snapshots::::https://oss.sonatype.org/content/repositories/snapshots -Dartifact=org.nd4j:nd4j-native:1.0.0-SNAPSHOT:jar:android-arm64
23+
mvn dependency:get -DremoteRepositories=snapshots::::https://oss.sonatype.org/content/repositories/snapshots -Dartifact=org.nd4j:nd4j-native:1.0.0-SNAPSHOT:jar:android-x86
24+
mvn dependency:get -DremoteRepositories=snapshots::::https://oss.sonatype.org/content/repositories/snapshots -Dartifact=org.nd4j:nd4j-native:1.0.0-SNAPSHOT:jar:android-x86_64
25+
```

android-examples/app/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ android {
2727
}
2828

2929
dependencies {
30-
def dl4jVersion = '1.0.0-beta7'
30+
def dl4jVersion = '1.0.0-SNAPSHOT'
3131
def openblasVersion = '0.3.9-1.5.3'
3232
def opencvVersion = '4.3.0-1.5.3'
3333
def leptonicaVersion = '1.79.0-1.5.3'
@@ -45,13 +45,14 @@ dependencies {
4545
exclude group: 'org.bytedeco', module: 'leptonica-platform'
4646
exclude group: 'org.bytedeco', module: 'hdf5-platform'
4747
exclude group: 'org.nd4j', module: 'nd4j-base64'
48+
exclude group: 'org.nd4j', module: 'nd4j-api'
4849
}
4950

5051
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion
51-
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-arm"
52-
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-arm64"
53-
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-x86"
54-
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-x86_64"
52+
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-arm"
53+
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-arm64"
54+
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-x86"
55+
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-x86_64"
5556
implementation group: 'org.bytedeco', name: 'openblas', version: openblasVersion
5657
implementation group: 'org.bytedeco', name: 'openblas', version: openblasVersion, classifier: "android-arm"
5758
implementation group: 'org.bytedeco', name: 'openblas', version: openblasVersion, classifier: "android-arm64"

android-examples/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ allprojects {
2020
repositories {
2121
google()
2222
jcenter()
23-
23+
mavenLocal()
24+
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
2425
}
2526
}
2627

0 commit comments

Comments
 (0)