无法运行正在使用Crashlytics和Maven构建工具的Android应用程序
在下面文档的帮助下,我将CrashLytics添加到我的maven android项目中无法运行正在使用Crashlytics和Maven构建工具的Android应用程序,android,crash-reports,crashlytics,crashlytics-android,Android,Crash Reports,Crashlytics,Crashlytics Android,在下面文档的帮助下,我将CrashLytics添加到我的maven android项目中 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>myapp</artifactId>
<version>1.0.0</version>
<packaging>apk</packaging>
<name>MyApp</name>
<repositories>
<repository>
<id>fabric-repo</id>
<url>https://maven.fabric.io/public</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>crashlytics-plugin-repo</id>
<url>http://download.crashlytics.com/maven</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<!-- ... -->
<!-- Crashlytics Kit -->
<dependency>
<groupId>com.crashlytics.sdk.android</groupId>
<artifactId>crashlytics</artifactId>
<version>2.6.8</version>
<scope>compile</scope>
<type>aar</type>
</dependency>
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
<finalName>${project.artifactId}</finalName>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.simpligility.maven.plugins</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>4.1.1</version>
<extensions>true</extensions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.crashlytics</groupId>
<artifactId>crashlytics-maven</artifactId>
<version>1.12.0</version>
<executions>
<execution>
<id>GenerateResources</id>
<goals>
<goal>GenerateResources</goal>
</goals>
</execution>
<execution>
<id>CleanupResources</id>
<goals>
<goal>CleanupResources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.simpligility.maven.plugins</groupId>
<artifactId>android-maven-plugin</artifactId>
<configuration>
<sdk>
<platform>22</platform>
</sdk>
</configuration>
</plugin>
</plugins>
</build>
我已经搜索了很多,但是所有的解决方案都是针对gradle的,而不是针对Maven的。你能告诉我解决这个问题的方法并解释为什么会发生这种情况吗?你在错误中给出的链接上注册了吗?此外,据我记忆所及,你将获得一个你必须在应用程序中使用的密钥,以便他们能够映射崩溃和帐户。是的,我做了所有这些。你能说明你是如何将密钥包括在清单中的吗?(不要发布实际的密钥,只发布一个占位符。)另外,你可以检查这个解决方案,也许这个解决方案会起作用@Saran Sankaran你在错误中给出的链接上注册了吗?此外,据我记忆所及,你将获得一个你必须在应用程序中使用的密钥,以便他们能够映射崩溃和帐户。是的,我做了所有这些。你能说明你是如何将密钥包括在清单中的吗?(不要发布实际的密钥,只发布占位符。)另外,你可以检查这个解决方案,也许这个解决方案可以@Saran Sankaran使用
10-22 17:42:20.551 2957-2957/? E/CrashlyticsCore: .
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: . | |
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: . | |
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: . | |
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: . \ | | /
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: . \ /
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: . \ /
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: . \/
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: .
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: This app relies on Crashlytics. Please sign up for access at https://fabric.io/sign_up,
install an Android build tool and ask a team member to invite you to this app's organization.
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: .
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: . /\
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: . / \
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: . / \
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: . / | | \
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: . | |
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: . | |
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: . | |
10-22 17:42:20.552 2957-2957/? E/CrashlyticsCore: .
10-22 17:42:20.552 2957-2957/? W/System.err: io.fabric.sdk.android.services.concurrency.UnmetDependencyException: This app relies on Crashlytics. Please sign up for access at https://fabric.io/sign_up,