gpt4 book ai didi

android - 安装 Estimote SDK for Android

转载 作者:行者123 更新时间:2023-11-29 15:13:18 24 4
gpt4 key购买 nike

我正在尝试将 Estimote SDK 集成到 Android 应用程序中。我正在按照 https://github.com/Estimote/Android-SDK 提供的 SDK 说明进行操作.我已将 estimote-sdk-preview.jar 文件添加到 libs 目录。知道我做错了什么吗?

我收到的错误信息是:

  • 无法解析符号'estimote'
  • 无法解析符号“sdk”
  • 无法解析符号“服务”
  • 无法解析符号“BeaconService”

这就是我尝试添加服务的方式

<service android:name="com.estimote.sdk.service.BeaconService"
android:exported="false"/>

list

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="company.com.application1" >
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

//----------THIS IS WHERE THE ERRORS ARE----------
<service android:name="com.estimote.sdk.service.BeaconService"
android:exported="false"/>
</application>

</manifest>

最佳答案

您应该转到文件 -> 项目结构 -> 单击绿色 + -> 从“更多模块”列表中选择“导入 .JAR 或 .AAR 包” -> 选择 JAR 文件。然后转到您的 build.gradle 文件并将以下行添加到您的依赖项 block

compile project(':estimote-sdk-preview')

关于android - 安装 Estimote SDK for Android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28008478/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com