TapLinx SDK

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

TapLinx SDK

435 次查看
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 项奖励
回复
5 回复数

393 次查看
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 项奖励
回复

285 次查看
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 项奖励
回复

275 次查看
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 项奖励
回复

405 次查看
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 项奖励
回复

329 次查看
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 项奖励
回复