Skip to content

Commit

Permalink
Android app needs to use 3.3.3 as it can't use Java 8 features only s…
Browse files Browse the repository at this point in the history
…upported in API 24+
  • Loading branch information
srowen committed May 22, 2019
1 parent e28ead1 commit 4b573da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>android</artifactId>
<version>4.7.8</version>
<version>4.7.9</version>
<packaging>apk</packaging>

<dependencies>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
<version>3.3.3</version> <!-- fixed at the last compatible version -->
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
Expand Down

1 comment on commit 4b573da

@githubZYQ
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,I had the same problem yesterday!
compileOptions { targetCompatibility 1.8 sourceCompatibility 1.8 }
I tried to use Java 8 in my projects,However, it still failed to run on my phone(Android API 23).
As long as I want to be compatible with phones under API 24, I can only use zxing-core lib under 3.3.3 .
If I want to use zxing-core 3.4.0, I must set a minimum api 24。
minSdkVersion 24
Is that right?

Please sign in to comment.