Start a new topic

Wikitude SDK 7.1 + Android Studio - License Key Missing.

Hello,

im trying to setup the example scene for android studio, but it keeps saying "license key missing". The key is working fine in the unity example.

I've setup a new project and followed the instructions accourding to https://www.wikitude.com/external/doc/documentation/7.0/android/setupguideandroid.html#setup-guide-android

Anyone got the same problem?

package com.janarenz.architecture;

import android.content.pm.PackageManager;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.wikitude.architect.ArchitectStartupConfiguration;
import com.wikitude.architect.ArchitectView;

public class MainActivity extends AppCompatActivity {

public ArchitectView architectView;
private static final int WIKITUDE_PERMISSIONS_REQUEST_CAMERA = 1;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

if ( ContextCompat.checkSelfPermission(this, android.Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED ) { ActivityCompat.requestPermissions(this, new String[]{android.Manifest.permission.CAMERA}, WIKITUDE_PERMISSIONS_REQUEST_CAMERA); }

this.architectView = (ArchitectView)this.findViewById( R.id.architectView );
final ArchitectStartupConfiguration config = new ArchitectStartupConfiguration();
config.setLicenseKey("I've Entered my valid key here");
this.architectView.onCreate( config );
}

@Override
protected void onPostCreate(Bundle savedInstanceState) {
super.onPostCreate(savedInstanceState);

architectView.onPostCreate();

try {
this.architectView.load("file:///android_asset/example/index.html");
}
catch ( Exception e){

}
}
1 Comment

Hi,

This message is e.g. shown if you have a license key that is not valid for a certain SDK version. If you e.g. have a key for SDK 7.0 and you try with SDK 7.1 you'd get this message.

Please check the versions and for which versions the license key is valid. If you have any non-technical questions, please send an email to sales[ at ]wikitude.com.

Thx and greetings

Nicola

 

Login or Signup to post a comment