我将Crashlytic插件集成到我的Unity项目中.如果我直接从Unity构建一个APK文件,它工作正常.
但是如果我在Unity中使用选项导出到"Google Android Project"
- >然后打开Android Studio,选择"导入项目(Eclipse ADT,Graddle等)"
- >跑
- >启动时应用程序崩溃,异常:"java.lang.ClassNotFoundException:io.fabric.unity.android.FabricApplication"
这是我的build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.xct.poke.khongchien"
minSdkVersion 15
targetSdkVersion 25
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile project(':answers')
compile project(':an_social')
compile project(':beta')
compile project(':common')
compile project(':crashlytics')
compile project(':crashlyticswrapper')
compile project(':fabric')
compile project(':fabricinit')
compile project(':facebookandroidsdk470')
compile project(':facebookandroidwrapperrelease')
compile project(':googleAIDL')
compile project(':googlePlay')
compile project(':unityadsrelease')
compile 'com.android.support:support-v4:23.4.0'
compile 'com.google.android.gms:play-services-analytics:9.0.0'
compile 'com.google.android.gms:play-services-auth:9.0.0'
compile files('libs/bolts-android-1.2.0.jar') …Run Code Online (Sandbox Code Playgroud)