简体   繁体   English

集成 Aurasma 时出错:资源完整性检查失败

[英]Error integrating Aurasma: Resource Integrity check failed

I am trying to Integrating Aurasma in my application.我正在尝试在我的应用程序中集成 Aurasma。 All application work well but on Aurasma part when I launch it on Button Click IT throws a message on splash screen as "An error is occurred" and on Log Cat It shows "Resource integrity check failed" I am wondering why this is happening, I integrate aurasma on a separate application without any click event, it launches directly then it works but in side of my application its not working, why.所有应用程序都运行良好,但在 Aurasma 部分,当我在 Button Click 上启动它时,它会在启动屏幕上抛出一条消息“发生错误”,而在 Log Cat 上它显示“资源完整性检查失败”我想知道为什么会发生这种情况,我在没有任何点击事件的情况下将 aurasma 集成到一个单独的应用程序上,它直接启动然后它可以工作,但在我的应用程序一侧它不起作用,为什么。 I am sure about these points:我确信以下几点:

  • Make sure the SDK tools are version 14 or above.确保 SDK 工具版本为 14 或更高版本。

  • Check the Eclipse project to make sure that AurasmaKernel is set as required on the build path检查 Eclipse 项目以确保在构建路径上按要求设置了 AurasmaKernel

  • Check that the AurasmaKernel package has built properly in Eclipse (also try building it manually)检查 AurasmaKernel 包是否在 Eclipse 中正确构建(也尝试手动构建它)

  • Make sure that the kernel is correctly extracted, and that your resources don't clash with any of the packaged library确保正确提取内核,并且您的资源不会与任何打包的库发生冲突

But yet it not working same error message.但它没有工作相同的错误消息。

Code for launching Aurasma is below:启动 Aurasma 的代码如下:

  aurasmaIntent = AurasmaIntentFactory.getAurasmaLaunchIntent(HomeActivity.this,
 getString(R.string.app_name), getString(R.string.app_version));
 } catch (AurasmaLaunchException e) {
 Log.e("AKTest", "Error getting intent", e);
 showDialog(DIALOG_ERROR);
 return;
}

 if (DELAY_START) {
 AurasmaSetupCallback callback = new AurasmaSetupCallback() {

  @Override
  public void onLoaded() {
   dismissDialog(DIALOG_PROGRESS);
   startActivity(aurasmaIntent);
  }

@Override
public void onLoadWarning(final int code) {
 Log.w("AKTest", "Preload warning: " + code);
}

@Override
public void onLoadFail(final int code) {
 Log.e("AKTest", "Preload error: " + code);
 dismissDialog(DIALOG_PROGRESS);
 showDialog(DIALOG_ERROR);
}
 };
 showDialog(DIALOG_PROGRESS);

 AurasmaIntentFactory.startAurasmaPreload(getApplicationContext(), aurasmaIntent,
 callback);
 } else {
  startActivity(aurasmaIntent);
}
}

If you change some resource from Aurasma library(layout or string) you will get this error - "An error is occurred".如果您更改 Aurasma 库(布局或字符串)中的某些资源,您将收到此错误 - “发生错误”。 Library checks resources on Aurasma start.图书馆在 Aurasma 启动时检查资源。 Don't change or delete any files.不要更改或删除任何文件。

Another thing that can cause error is:可能导致错误的另一件事是:

aurasmaIntent = AurasmaIntentFactory.getAurasmaLaunchIntent(HomeActivity.this,
    getString(R.string.app_name), getString(R.string.app_version));

Here second parameter is userAgentName.这里的第二个参数是 userAgentName。 This is the name of your app that you have from studio.aurasma.com .这是您从studio.aurasma.com获得的应用程序的名称。 In "Make your own app" you can see the application name - this name is connected with your application but can be different.在“制作您自己的应用程序”中,您可以看到应用程序名称 - 该名称与您的应用程序相关,但可以不同。

check your minSdkVersion in the manifest检查清单中的 minSdkVersion

android:minSdkVersion="8" android:minSdkVersion="8"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM