• Home
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • App Market Developer Platform
  • Clover GO
  • Ideas & Feedback
  • Semi-Integration
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
Skip to main content
  • Create
    • Ask a question
    • Post an idea
    • App Market Developer Platform
    • Clover GO
    • Ideas & Feedback
    • Semi-Integration
    • Topics
    • Questions
    • Articles
    • Ideas
  • Sign in
  • Home
  • App Market Developer Platform
This question was closed Jul 03 at 11:26 PM by Frank Faustino for the following reason: The question is answered, right answer was accepted

question

aadel avatar image
aadel asked · May 13 at 10:34 PM

Retrieving Device Account on Clover Mini 2nd Gen

Hi,

Running the code snippet below on Clover Mini 2nd Gen emulator connected to the sandbox:

mAccount = CloverAccount.getAccount(this);
the returned value is null

Environemnt: Sandbox
SDK version: 28 and 26

Note: building against SDK version 25 generates errors related to missing resources:

.gradle/caches/transforms-1/files-1.1/appcompat-v7-26.1.0.aar/77f53e7e5532d91f058879b164ac9a0d/res/values-v26/values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.
/.gradle/caches/transforms-1/files-1.1/appcompat-v7-26.1.0.aar/77f53e7e5532d91f058879b164ac9a0d/res/values-v26/values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
Attached build.gradle file

Any thoughts?

Thanks,
A.
SandboxEmulator
buildgradle.zip (2.6 KiB)
Comment
· 1 comment
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Rohit Bhardwaj avatar image Rohit Bhardwaj · May 14 at 05:44 PM

Can you show us your build.gradle(app) file ?

0 · ·

1 Answer

Bryanne Vega avatar image
Bryanne Vega answered · May 15 at 06:03 PM ACCEPTED ANSWER
In second Gen devices, Android Oreo requires a different method on obtaining accounts and it's not through the Manifest's permissions.

Lower your SDK to 25 (I believe 27 is the maximum you can go with) and retry.
· 2 comments · Share
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dan avatar image Dan · May 14 at 08:21 AM
Your targetSdkVersion must be 25 at a maximum. Your other issues look like Android Studio ones, have you tried invalidating caches and restarting AS?
0 · ·
aadel avatar image aadel Dan · May 14 at 12:22 PM

Hi Dan - thanks for your reply. Yes, we tried invalidating caches and restarting AS but got the same issue. We also tried removing .gradle/cache directory. We use gradlew to build the release though not the build module inside AS.

0 · ·

Welcome to the
Clover Developer Community

question details

4 People are following this question.

aadel follows this question Wingnut follows this question iamRohit45 follows this question Bryanne Vega follows this question
Answers Subscribe to Answers Answers and Comments Subscribe to Comments and Answers

Related Questions

Emulator Setup (Clover Updater Fails to Update) 0 Answers

Setting Up Clover Station 2018 Emulator 1 Answer

How to setting up an android emulator? 1 Answer

Unfortunately Clover has Stopped : Sandbox issue 2 Answers

Merchants Unable to Install New, Approved APK 0 Answers

Answerhub Logo
  • About
  • ·
  • FAQ
  • ·
  • Privacy
  • ·
  • Copyright © 2010-19 DZone, Inc.