05-16 09:59:53.428 25010-25010/main.faseflex.de.fgnapp E/AndroidRuntime: FATAL EXCEPTION: main
Process: main.faseflex.de.fgnapp, PID: 25010
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/R$string;
at com.google.android.gms.common.internal.StringResourceValueReader.<init>(Unknown Source:14)
at com.google.firebase.FirebaseOptions.fromResource(Unknown Source:2)
at com.google.firebase.FirebaseApp.initializeApp(Unknown Source:19)
at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source:4)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1925)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1900)
at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source:23)
at android.app.ActivityThread.installProvider(ActivityThread.java:6578)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6133)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6043)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.R$string" on path: DexPathList[[zip file "/data/app/main.faseflex.de.fgnapp-C4iBOV7sIO2cNc4pfCATmA==/base.apk"],nativeLibraryDirectories=[/data/app/main.faseflex.de.fgnapp-C4iBOV7sIO2cNc4pfCATmA==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.google.android.gms.common.internal.StringResourceValueReader.<init>(Unknown Source:14)
at com.google.firebase.FirebaseOptions.fromResource(Unknown Source:2)
at com.google.firebase.FirebaseApp.initializeApp(Unknown Source:19)
at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source:4)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1925)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1900)
at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source:23)
at android.app.ActivityThread.installProvider(ActivityThread.java:6578)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6133)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6043)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
//buildToolsVersion "25.0.2"
defaultConfig {
applicationId "main.faseflex.de.fgnapp"
minSdkVersion 21
targetSdkVersion 25
multiDexEnabled true
dexOptions {
preDexLibraries true
}
versionCode 1
versionName "0.98.41"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
multiDexKeepFile file('multidex-config.txt')
}
}
productFlavors {
}
}
dependencies {
implementation 'com.android.support:support-v4:25.4.0'
implementation 'com.android.support:support-vector-drawable:25.4.0'
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.google.firebase:firebase-core:15.0.2'
implementation 'com.google.firebase:firebase-messaging:15.0.2'
implementation 'com.google.firebase:firebase-database:15.0.1'
implementation 'com.google.firebase:firebase-auth:15.1.0'
implementation 'com.android.support:appcompat-v7:25.4.0'
implementation 'com.android.support:design:25.4.0'
implementation 'com.android.support:preference-v7:25.4.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.github.SHashank02051997:FancyToast-Android:0.1.3'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.android.gms:play-services-auth:15.0.1'
testImplementation 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '25.3.0'
}
}
}
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.google.gms:google-services:3.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google()
maven {
url "https://jitpack.io"
}
maven {
url "https://maven.google.com"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
AndroidManifest.xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="main.faseflex.de.fgnapp"
tools:node="replace">
<supports-screens
android:anyDensity="true"
android:compatibleWidthLimitDp="50"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="false"
android:smallScreens="false"
android:xlargeScreens="false" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/fgn_icon"
android:label="@string/app_name"
android:resizeableActivity="false"
android:roundIcon="@mipmap/fgn_icon"
android:supportsRtl="true"
android:theme="@style/AppTheme">
------------------------------------------------
MAIN ACTIVITY
------------------------------------------------
<activity
android:name=".FGNmainActivity"
android:label="FGN-App"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
------------------------------------------------
STUNDENPLAN
------------------------------------------------
<activity
android:name=".activity_timetable"
android:label="FGN-App | Stundenplan"
android:parentActivityName=".FGNmainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme">
<intent-filter>
<category android:name="android.intent.category.APP_BROWSER" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
------------------------------------------------
ESSENSBESTELLUNG
------------------------------------------------
<activity
android:name=".activity_food"
android:label="FGN-App | Essenplan"
android:parentActivityName=".FGNmainActivity"
android:theme="@style/AppTheme">
<intent-filter>
<category android:name="android.intent.category.APP_BROWSER" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
------------------------------------------------
MDV
------------------------------------------------
<activity
android:name=".activity_mdv"
android:label="FGN-App | Verkehrsverbund"
android:parentActivityName=".FGNmainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme">
<intent-filter>
<category android:name="android.intent.category.APP_BROWSER" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
------------------------------------------------
DOKUMENTE
------------------------------------------------
<activity
android:name=".activity_documents"
android:label="FGN-App | Dokumente"
android:parentActivityName=".FGNmainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme">
<intent-filter>
<category android:name="android.intent.category.APP_BROWSER" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
------------------------------------------------
NEWS
------------------------------------------------
<activity
android:name=".activity_news"
android:label="FGN-App | News"
android:parentActivityName=".FGNmainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme">
<intent-filter>
<category android:name="android.intent.category.APP_BROWSER" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
------------------------------------------------
LEHRER
------------------------------------------------
<activity
android:name=".activity_teachers"
android:label="FGN-App | Lehrer"
android:parentActivityName=".FGNmainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme">
<intent-filter>
<category android:name="android.intent.category.APP_BROWSER" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
------------------------------------------------
MOODLE
------------------------------------------------
<activity
android:name=".activity_moodle"
android:label="FGN-App | Moodle"
android:parentActivityName=".FGNmainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme">
<intent-filter>
<category android:name="android.intent.category.APP_BROWSER" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
------------------------------------------------
OFFICE 365
------------------------------------------------
<activity
android:name=".activity_office"
android:label="FGN-App | Office 365"
android:parentActivityName=".FGNmainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme">
<intent-filter>
<category android:name="android.intent.category.APP_BROWSER" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
------------------------------------------------
KONTAKT
------------------------------------------------
<activity
android:name=".activity_contact"
android:label="FGN-App | Kontakt"
android:parentActivityName=".FGNmainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme">
<intent-filter>
<category android:name="android.intent.category.APP_BROWSER" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
------------------------------------------------
TERMINE
------------------------------------------------
<activity
android:name=".activity_termine"
android:label="FGN-App | Termine"
android:parentActivityName=".FGNmainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme">
<intent-filter>
<category android:name="android.intent.category.APP_BROWSER" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
------------------------------------------------
MITTAGSBAND
------------------------------------------------
<activity
android:name=".activity_mittagsband"
android:label="FGN-App | Mittagsband"
android:parentActivityName=".FGNmainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme">
<intent-filter>
<category android:name="android.intent.category.APP_BROWSER" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
------------------------------------------------
FEEDBACK
------------------------------------------------
<activity
android:name=".activity_menu_feedback"
android:label="FGN-App | Feedback"
android:parentActivityName=".SettingsActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
------------------------------------------------
IMPRESSUM
------------------------------------------------
<activity
android:name=".activity_menu_impressum"
android:label="FGN-App | Impressum"
android:parentActivityName=".FGNmainActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
------------------------------------------------
FIREBASE
------------------------------------------------
<service android:name=".MyFirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service android:name=".FirebaseIDService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
<service android:name=".MyInstanceIDListenerService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
------------------------------------------------
EINSTELLUNGEN
------------------------------------------------
<activity
android:name=".SettingsActivity"
android:label="FGN-App | Einstellungen"
android:parentActivityName=".FGNmainActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="main.faseflex.de.fgnapp.FGNmainActivity" />
</activity>
------------------------------------------------
SPLASH SCREEN
------------------------------------------------
<activity
android:name=".SplashActivity"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
------------------------------------------------
CHANGELOG
------------------------------------------------
<activity
android:name=".ChangelogActivity"
android:label="FGN-App | Changelog"
android:parentActivityName=".SettingsActivity"></activity>
</application>
</manifest>
我知道NoClassDefFoundError是做什么的,但我没有发现问题。询问你是否需要更多的解决问题的文件。
如果你在你的应用程序中使用领域插件,那么你可以尝试升级你的插件,因为这是应用程序在运行时崩溃的原因之一。
更新领域插件的步骤:
我把我的Gradle降级到3.5.3,以解决这个问题,直到它在将来得到修复。
步骤:
e/androidruntime:致命异常:main process:com.eldercare.fajri.eldercare,pid:30948 java.lang.noClassDefFounderror:解析失败:lcom/google/android/gms/common/internal/zzbp;在com.google.firebase.firestore.firebase.fire
gradle.app 请告诉我这里做错了什么!
问题内容: 我正在按照教程(链接)将图像上传到Firebase数据库,但遇到以下错误。我重新检查了gradle依赖项并启用了multidex支持,但仍然存在错误 Gradle.app 请在这里告诉我我做错了! 问题答案: 现在这是问题所在,您在gradle的依赖项中使用了不同的版本,请更改此 对此 还有一件事是现在不建议使用,因此您需要替换为 ,这是该https://firebase.google
我试着用android studio安装一个react-native应用程序,安装apk后应用程序就会停止。 以下是带有错误的logcat: 我尝试了很多事情:清洁,重建,...库的版本似乎在任何需要的地方都是一样的,multidex似乎是正确设置的。 你能帮帮我吗? 谢谢!
自从我更新到Android Studio3.1后,我的项目就不再运行了。我在互联网上到处寻找解决办法,但没有任何积极的结果。下面是我在logcat中得到的错误: 这是我的build.gradle(module:app)文件: 下面是我的build.gradle(项目:appname): 编辑:它不再成功构建了,它在构建消息控制台中抛出了一个非常奇怪的错误: .
问题内容: 我的应用抛出错误。不知道为什么,因为我检查了16.0.1确实包含该类。根据我的研究,看来这是一个错误吗? 我也有此代码供参考,尽管我认为这不是问题: 我的应用程序正在使用Restlet APISpark: 运行并访问应用程序的REST api时,它将引发以下错误: 问题答案: 使用扩展名时,检索到的番石榴依赖项具有版本。 它包含在使用以下maven配置从头创建的应用程序中: 我集成了您