gpt4 book ai didi

android ant build 无法安装 apk 但可以通过 IDE 运行?

转载 作者:行者123 更新时间:2023-11-29 17:53:56 24 4
gpt4 key购买 nike

我正在尝试通过 jenkins 和 ant 构建一个 android 应用程序,问题是一旦构建没有错误,由于 crashlytics,该应用程序在安装后无法启动。

完全相同的应用程序可以使用像 Eclipse 这样的 IDE 构建和运行,并且所有必要的 crashlyitics 库都位于项目/lib 文件夹中。

这是应用程序启动时错误的堆栈跟踪。

01-03 10:56:24.351: E/AndroidRuntime(8119): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jr/com.jr.HomeActivity}: com.crashlytics.android.CrashlyticsMissingDependencyException: 
01-03 10:56:24.351: E/AndroidRuntime(8119): This app relies on Crashlytics. Configure your build environment here:
01-03 10:56:24.351: E/AndroidRuntime(8119): https://crashlytics.com/register/4346dsd1c0dsadadq77cf/android/com.jr
01-03 10:56:24.351: E/AndroidRuntime(8119): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
01-03 10:56:24.351: E/AndroidRuntime(8119): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
01-03 10:56:24.351: E/AndroidRuntime(8119): at android.app.ActivityThread.access$800(ActivityThread.java:135)
01-03 10:56:24.351: E/AndroidRuntime(8119): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
01-03 10:56:24.351: E/AndroidRuntime(8119): at android.os.Handler.dispatchMessage(Handler.java:102)
01-03 10:56:24.351: E/AndroidRuntime(8119): at android.os.Looper.loop(Looper.java:136)
01-03 10:56:24.351: E/AndroidRuntime(8119): at android.app.ActivityThread.main(ActivityThread.java:5017)
01-03 10:56:24.351: E/AndroidRuntime(8119): at java.lang.reflect.Method.invokeNative(Native Method)
01-03 10:56:24.351: E/AndroidRuntime(8119): at java.lang.reflect.Method.invoke(Method.java:515)
01-03 10:56:24.351: E/AndroidRuntime(8119): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
01-03 10:56:24.351: E/AndroidRuntime(8119): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
01-03 10:56:24.351: E/AndroidRuntime(8119): at dalvik.system.NativeStart.main(Native Method)
01-03 10:56:24.351: E/AndroidRuntime(8119): Caused by: com.crashlytics.android.CrashlyticsMissingDependencyException:
01-03 10:56:24.351: E/AndroidRuntime(8119): This app relies on Crashlytics. Configure your build environment here:
01-03 10:56:24.351: E/AndroidRuntime(8119): https://crashlytics.com/register/fdsfdsfdsfdsfdssdfdsf/android/com.jr
01-03 10:56:24.351: E/AndroidRuntime(8119): at com.crashlytics.android.j.a(SourceFile:52)
01-03 10:56:24.351: E/AndroidRuntime(8119): at com.crashlytics.android.Crashlytics.a(SourceFile:913)
01-03 10:56:24.351: E/AndroidRuntime(8119): at com.crashlytics.android.Crashlytics.start(SourceFile:212)
01-03 10:56:24.351: E/AndroidRuntime(8119): at com.crashlytics.android.Crashlytics.start(SourceFile:190)
01-03 10:56:24.351: E/AndroidRuntime(8119): at com.jr.HomeActivity.onCreate(HomeActivity.java:134)
01-03 10:56:24.351: E/AndroidRuntime(8119): at android.app.Activity.performCreate(Activity.java:5231)
01-03 10:56:24.351: E/AndroidRuntime(8119): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
01-03 10:56:24.351: E/AndroidRuntime(8119): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
01-03 10:56:24.351: E/AndroidRuntime(8119): ... 11 more

最佳答案

好的,他们在 logcat 中提到的库:

https://crashlytics.com/register/4346dsd1c0dsadadq77cf/android/com.jr

它可能从 libs 文件夹中丢失或者 Jenkins 没有拾取它

关于android ant build 无法安装 apk 但可以通过 IDE 运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20902807/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com