TapLinx SDK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TapLinx SDK

701 Views
galaxy68
Contributor I

When downloading and extracting the TapLinx_Library_Android.zip file, there is only the NxpNfcAndroidLib-release-protected.aar file and not the file: nxpnfcandroidlib-5.0.0-RELEASE.aar.

I have successfully registered the key online and offline. However, in the 4th step of the instructions

Step 4

Use a generated key and update gradle to pull the AAR file for the right product repository. For more details take a look at the Application Note. 


I still don't understand how to download SDK nxpnfcandroidlib-5.0.0-RELEASE.aar
Can you help me with this problem?
Thanks a lot

0 Kudos
Reply
5 Replies

659 Views
galaxy68
Contributor I

I have completed the registration and configured in Gladle but the system still fails to download.
Please guide me to configure correctly in Gladle. I did the following:
gladle ( : app):

implementation("com.nxp.nfclib:nxpnfcandroidlib:5.0.0-RELEASE")

 Setting.gladle( Project) :
  

pluginManagement{....
gradlePluginPortal()
maven {
url = uri("https://inspire.nxp.com/repo/maven")
credentials {
username = providers.gradleProperty("NXP_REPO_USER").get()
password = providers.gradleProperty("NXP_REPO_KEY").get()
}
dependencyResolutionManagement { ...
maven {
url = uri("https://inspire.nxp.com/repo/maven")
credentials {
username = providers.gradleProperty("NXP_REPO_USER").get()
password = providers.gradleProperty("NXP_REPO_KEY").get()
}

 i  NXP_REPO_KEY (" key I was given from Taplinx account" )

NXP_REPO_USER ( " I tried both options: project's package name. and also the username to log into your account" 

  : However, the options and project builds all failed with errors > Could not find com.nxp.nfclib:nxpnfcandroidlib:5.0.0-RELEASE.
I checked the connection and everything is good.

C:\>ping inspire.nxp.com -t


Reply from 23.7.217.244: bytes=32 time=32ms TTL=55
Reply from 23.7.217.244: bytes=32 time=31ms TTL=55
Reply from 23.7.217.244: bytes=32 time=31ms TTL=55

  I don't know what I'm doing wrong, please guide me through the configuration to download the nxpnfcandroidlib-5.0.0-RELEASE.aar file.
Thanks you verymuch 

0 Kudos
Reply

551 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @galaxy68 

You also need to add the dependency to app/build.gradle:
implementation "com.nxp.nfclib:nxpnfcandroidlib:5.0.0-RELEASE"


and set the following in gradle.properties:
NXP_REPO_USER=<your username or package name>
NXP_REPO_KEY=<your License Key>

Please try.

0 Kudos
Reply

541 Views
galaxy68
Contributor I

Cảm ơn KaiLi  đã trả lời, nhưng tôi đã thử những cách đó trước khi bạn nói ( tích hợp :
performance("com.nxp.nfclib:nxpnfcandroidlib:5.0.0-RELEASE"), sửa khóa của tôi ( Taplinx ) và gói tên trong tệp gradle.properties ). Nhưng sau tất cả các cài đặt đó, ứng dụng vẫn không thể tự động tải xuống SDK.
Có phải vấn đề ở liên kết của tôi bị sai không? Hay là làm một vấn đề khác đi.
Xin hãy giúp tôi, cảm ơn bạn
Mã : 
( settings.gradle : project) 
kho lưu trữ {
google()
mavenCentral()
gradlePluginPortal()
maven {
#url = uri(" ")#
thông tin xác thực {
tên người dùng = nhà cung cấp.gradleProperty("NXP_REPO_USER").get()
mật khẩu = nhà cung cấp.gradleProperty("NXP_REPO_KEY").get()
}

Trân trọng ! 

0 Kudos
Reply

671 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @galaxy68 

The TapLinx SDK download package typically includes a protected AAR file (*-protected.aar) to prevent unauthorized use.
The actual nxpnfcandroidlib-5.0.0-RELEASE.aar is not included directly in the ZIP package; instead, it is pulled from the NXP Maven repository.
You must complete online or offline registration and obtain a License Key, then configure the NXP Maven repository in Gradle. Gradle will automatically download the corresponding version of the AAR file.
You do not need to manually download nxpnfcandroidlib-5.0.0-RELEASE.aar; simply configure the NXP Maven repository in Gradle and add the dependency, and Gradle will pull it automatically.

0 Kudos
Reply

595 Views
galaxy68
Contributor I

i am stuck on the configuration problem so that the app can automatically download the file
Can you guide me to configure it correctly? i don't know if the path i configured as the code i sent is correct file  nxpnfcandroidlib-5.0.0-RELEASE.aar
i am stuck here quite
I look forward to your reply.
Thank you very much.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2199583%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ETapLinx%20SDK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2199583%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWhen%20downloading%20and%20extracting%20the%20TapLinx_Library_Android.zip%20file%2C%20there%20is%20only%20the%20NxpNfcAndroidLib-release-protected.aar%20file%20and%20not%20the%20file%3A%20nxpnfcandroidlib-5.0.0-RELEASE.aar.%3C%2FP%3E%3CP%3EI%20have%20successfully%20registered%20the%20key%20online%20and%20offline.%20However%2C%20in%20the%204th%20step%20of%20the%20instructions%3C%2FP%3E%3CP%3EStep%204%3C%2FP%3E%3CP%3EUse%20a%20generated%20key%20and%20update%20gradle%20to%20pull%20the%20AAR%20file%20for%20the%20right%20product%20repository.%20For%20more%20details%20take%20a%20look%20at%20the%20Application%20Note.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EI%20still%20don't%20understand%20how%20to%20download%20SDK%20nxpnfcandroidlib-5.0.0-RELEASE.aar%3CBR%20%2F%3ECan%20you%20help%20me%20with%20this%20problem%3F%3CBR%20%2F%3EThanks%20a%20lot%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E