I am using Kudan SDK 1.4.1 and Android studio 2.2.2
I have created an empty project named "ar" with a package 'eu.kudan.ar', added KudanAR.aar library and created a simple 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);
}
}
I copied the long 1.4 License key from kudan wiki (also tried with other older keys). The app compiles and starts but immediately reports Your API key is not valid.. Tried on both, device and emulator.
What should I do to make the key working?
Kudan SDK 1.4.1 Api key has changed.
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
Related
Package - https://github.com/capacitor-community/facebook-login
Setup - Facebook login for Android in Quasar + Capacitor
So I just followed the instructions from the documentation for android. Everything is working fine in web setup but when I am trying to build using android studio I am getting the error:
error: package com.getcapacitor.community.facebooklogin does not exist
MainActivity.java
package org.mycure.mobile.pxp;
import android.os.Bundle;
import com.getcapacitor.BridgeActivity;
import com.getcapacitor.Plugin;
import com.getcapacitor.community.facebooklogin.FacebookLogin;
import java.util.ArrayList;
public class MainActivity extends BridgeActivity {
#Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Initializes the Bridge
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
// Additional plugins you've installed go here
// Ex: add(TotallyAwesomePlugin.class);
add(FacebookLogin.class);
}});
}
}
Versions
quasar - 1.15.10
#capacitor/core - 2.4.7
#capacitor/android - 2.4.7
Relevant links
I also saw this issue and followed the suggested fixes but non worked. I was hoping maybe I just missed something? Thanks.
I am creating simple android application in android of hello world printing and getting an -- error Description
Resource Path Location Type Error generating final archive: java.lang.ArrayIndexOutOfBoundsException: 13 Demo_ABC Unknown Android Packaging Problem
Code is:
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class MainActivity extends Activity
{
#Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
Someone else had the same problem with eclipse. The solution was to check the box "Create Test Project":
Your project is getting associated with some Test Project which you are not mapping with your newly created project. When you are creating any new project check carefully whether you are including the "Create Test Project" option or not.
Another guess: As the error seems to be package-related and your code does not include that, insert the correct package yourpackage.tld; in the code. (you said "Code is:").
Maybe that is missing Android expects it by default and gives weird errors because that was totally unforseen by the Google Android developers.
I have been finished step 3 of "Getting Started with the Facebook SDK for Android" from facebook developers support and this is code from the Sample directory :
package com.facebook.samples.profilepicture;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
public class ProfilePictureSampleActivity extends FragmentActivity {
#Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_profile_picture_sample);
}
}
When I try to run ProfilePictureSample there are some errors like this :
"The import android.os.Bundle cannot be resolved"
"The type android.app.Activity cannot be resolved. It is indirectly
referenced from required .class files"
"The hierarchy of the type ProfilePictureSampleActivity is
inconsistent"
So how can I fix them ? It's strange because if I build a simple activity project with android.os.Bundle works fine.
Probably the problem is the holder api version that the application of this code request because I suppose that android.os.Bundle is for api 17 of android sdk. So it can be resolved by go to "android sdk Manager" and download the version of requested api.
I am running Eclipse Indigo with Android SDK 4.0.3 and Google API in Linux 11.10. However, when I start up a new Android project, my R.java is no where to be found, hence resulting in the following issue:
package com.lol.asdf;
import android.app.Activity;
import android.os.Bundle;
public class AsdfActivity extends Activity {
/** Called when the activity is first created. */
#Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
I have tried all suggestion on this page but it's no good.
Anyone have any ideas?
your R.java is an auto generated class from the res/ folder. Check for error inside it. Try clean and rebuild your project too.
R.java will generated automatically...
first solve all other errors of your project it will be created...
I am trying the google maps api for android, but eclipse does not import the com.google.android.maps.* files.
Source:
MyMapActivity:
package org.madmax.map;
import android.app.Activity;
import android.os.Bundle;
import com.google.android.maps.*;
public class MyMapActivity extends MapActivity {
private MapView map;
private MapController controller;
/** Called when the activity is first created. */
#Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
in the Manifest file I have already declared:
<uses-library android:name="com.google.android.maps" />
How do I import the com.google.android.maps.* files?
It is not enough to just have the API SDK installed. From the android maps documentation,
http://code.google.com/android/add-ons/google-apis/maps-overview.html
If you want to add Maps to an existing application, right-click the project in Package Explorer, choose Properties > Android and then select a build target from the list displayed. You must choose the "Google APIs" build target.
(The standard Android packages don't include Google Maps)
Update, found a screenshot online, don't pick a Target with the name "Android x.x" pick the corresponding target that says "Google APIs" for the version of Android you want.
Make sure you have the Google APIs installed in your SDK. Open the SDK manager from the tools directory and use it to install the package.