OK, maybe this is very simple, but I just can't figure it out now.
I imported the Google Card Reader sample project into Android Studio 1.5.1, it compiles to compileSdkVerison 23, it works on my mobile device.
Then I went through the SDK, when I came to the source code android.nfc.tech.BasicTagTechnology , I found that TransceiveResult inside android.nfc.tech.BasicTagTechnology#transceive could not be resolved, then I found that the TransceiveResult class is missing in my D:\Android\sdk\platforms\android-23\android.jar , but presented in the Android source code here D:\Android\sdk\sources\android-23\android\nfc\TransceiveResult.java , then I realized that it can be hidden from the public, not exported, in fact it
public final class TransceiveResult implements Parcelable
Then I did some random things, after I synchronized the project, cleared and rebuilt, invalidated caches / restarted, but so far I couldnβt allow TransceiveResult , I was wondering, since the character was lost in the SDK, how can I compile the project?
Edit for me finally aha
We call android.nfc.tech.BasicTagTechnology#transceive in our code, not TransceiveResult , at compilation we do not need to enable TransceiveResult , we only need to allow android.nfc.tech.BasicTagTechnology#transceive , which our code refers to, I was lost at this moment.
android android-studio android-sdk-tools android-build android-studio-import
hylepo
source share