Support for Wikitude Software Development Kit and tools is coming to an end. All the details can be found here. Kindly note that no new topics can be started on the forum from 21.09.2023. Also, some of the FAQs here (especially license related ones) might become inaccurate.
Hello.
I'm starting a application using android studio and wikitude but I get the message "Error:(23, 15) error: cannot find symbol method getLicenseKey(String)" when I generate the ArchitectView life-cycle events.
This is my code :
package com.example.garuda_diicc.appprueba7; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.wikitude.architect.ArchitectView; import com.wikitude.architect.StartupConfiguration; import java.io.IOException; public class PuntoInteres extends AppCompatActivity { protected ArchitectView architect; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.punto_interes); this.architect = (ArchitectView)this.findViewById(R.id.vistarq); final StartupConfiguration config = new StartupConfiguration(""); config.getLicenseKey("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); this.architect.onCreate(config); } @Override protected void onResume() { super.onResume(); if (this.architect != null){ this.architect.onResume(); } } @Override protected void onPause() { super.onPause(); if (this.architect != null){ this.architect.onPause(); } } @Override protected void onStop(){ super.onStop(); } @Override protected void onDestroy(){ super.onDestroy(); if (this.architect != null){ this.architect.onDestroy(); } } @Override protected void onPostCreate(Bundle savedInstanceState){ super.onPostCreate(savedInstanceState); if (this.architect != null){ this.architect.onPostCreate(); } try{ this.architect.load(""); } catch (IOException e1){ e1.printStackTrace(); } super.onPostCreate(savedInstanceState); } }
Rodrigo Hidalgo
Hello.
I'm starting a application using android studio and wikitude but I get the message "Error:(23, 15) error: cannot find symbol method getLicenseKey(String)" when I generate the ArchitectView life-cycle events.
This is my code :