Kudan AR开发关键不起作用

时间:2017-01-03 16:23:59

标签: android android-studio kudan

我正在使用Kudan SDK 1.4.1和Android studio 2.2.2

我创建了一个名为“ar”的空项目,其中包含'eu.kudan.ar',添加了KudanAR.aar库并创建了一个简单的Activity:

package eu.kudan.ar;

import android.os.Bundle;
import eu.kudan.kudan.ARAPIKey;
import eu.kudan.kudan.ARActivity;

public class MainActivity extends ARActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        ARAPIKey key = ARAPIKey.getInstance();
        key.setAPIKey("...api key from kudan wiki...");
        System.out.println(key.licenseKeyIsValid());

        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}

我从kudan wiki复制了长1.4许可证密钥(也尝试使用其他旧密钥)。该应用程序会编译并启动,但会立即报告Your API key is not valid.。设备和模拟器都试过。

如何使密钥正常工作?

1 个答案:

答案 0 :(得分:1)

Kudan SDK 1.4.1 Api密钥已更改。

sVmoznmKZ+4nFEHD6HoslwpC26PNuBZGHrikUwyon2BKSvza1yu2CqbSrae+pHPr1NHjhsf5pHQOZn8IEqXlqXFodGsrOJhxJANbMOdvnRLUi9/QWGqyRL9FViDmyohw6e5R7U4Ex8H7d7spLLvhfp5HFv56DgLr8c8sC2ipDtv9g1IjOTaY7UGxata3eulG2A/UkIdRv2NcotZXqan01xQUWFAislEwlGguParEYiwu11T4mqtU3dQBbfxpvxbczjdYz493YG3rAO2RHgT+5M5TJShJsz2irkNo71JD2Fzqf4AR2b4+7t1c55zKjegXzGS6Xa/rpNn9yiXUn7rUYIHNvN3cEQa9HsZiVxAV4vJgxFS+T/AxfWqKrEg1uj6xF5MsodZ2EkZ8mqliYIsxZqnFz+Re2HeWG8wvrEob0ZwRIO0TxppAemZc3HChTAPLcNt5gzeBk0oRP4wnrFAFFBDi8XjDocwTSVw++hWZb1qNHzt6bKLsMDRT057UVuuZB6M8f7EOQD79Oah0Vrx/3DUK6e9BEV8oGFNHtk1wyYEkg0i6RLhVSokGx//Qj36A4gCz3h1OjtfB0OuukbNq7xI1L/FcNQLmGYNGZwszARjGr9ESw1gVAkbQMxaV27uo/KoIq4+nR7RL8iT7t7NAaXCFIi24RR+7WGjTvKqWYjA=

link:https://wiki.kudan.eu/Development_License_Keys