我正在使用Epson Wikitude的SDK的Android工作室。當我運行該應用程序時,它崩潰,我得到一個膨脹類錯誤。我已經看了其他幾個問題,但沒有一個是相同的,或者爲我的問題工作。膨脹類錯誤com.wikitude.architect.ArchitectView
/com.example.username.myapplication E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering/
com.example.username.myapplication E/AndroidRuntime: FATAL EXCEPTION: main
Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: load_library[1091]: Library '/data/data/com.example.pmbi002.myapplication/libarchitect.so'
not found
at java.lang.Runtime.load(Runtime.java: 340)
at java.lang.System.load(System.java: 524)
at com.wikitude.architect.ArchitectView.e(Unknown Source)
at com.wikitude.architect.ArchitectView.a(Unknown Source)
at com.wikitude.architect.ArchitectView. <init> (Unknown Source)
at com.wikitude.architect.ArchitectView. <init> (Unknown Source)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java: 417)
at android.view.LayoutInflater.createView(LayoutInflater.java: 586)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java: 680)
at android.view.LayoutInflater.rInflate(LayoutInflater.java: 739)
at android.view.LayoutInflater.inflate(LayoutInflater.java: 489)
at android.view.LayoutInflater.inflate(LayoutInflater.java: 396)
at android.view.LayoutInflater.inflate(LayoutInflater.java: 352)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java: 280)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java: 140)
at com.example.pmbi002.myapplication.MainActivity.onCreate(MainActivity.java: 30)
at android.app.Activity.performCreate(Activity.java: 4465)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1049)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 1920)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 1981)
at android.app.ActivityThread.access$600(ActivityThread.java: 123)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 1147)
at android.os.Handler.dispatchMessage(Handler.java: 99)
at android.os.Looper.loop(Looper.java: 137)
at android.app.ActivityThread.main(ActivityThread.java: 4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java: 511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java: 551)
at dalvik.system.NativeStart.main(Native Method)
的build.gradle文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 15
buildToolsVersion '22.0.0'
defaultConfig {
applicationId "com.example.myusername.myapplication"
minSdkVersion 11
targetSdkVersion 15
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v4:22.0.0'
compile 'com.android.support:design:22.0.0'
}
錯誤代碼的重要行是「無法加載庫:load_library [1091]:庫'/data/data/com.example.pmbi002.myapplication/libarchitect.so'未找到」。這是應用程序無法加載我認爲應由您正在集成的sdk提供的本機庫。它出現的一個充氣錯誤的原因是因爲這是圖書館被加載時,所以它看起來像通貨膨脹失敗。 – Warrick