- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 IntelliJ 12.1,当我尝试构建和安装时,一切运行完美。当我尝试通过 Maven 构建和安装应用程序时,出现以下错误:
04-10 21:28:03.044: WARN/dalvikvm(12727): Unable to resolve superclass of Lcom/moneydesktop/finance/shared/activity/BaseActivity; (105)
04-10 21:28:03.044: WARN/dalvikvm(12727): Link of class 'Lcom/moneydesktop/finance/shared/activity/BaseActivity;' failed
04-10 21:28:03.044: WARN/dalvikvm(12727): VFY: unable to resolve static field 5288 (sInForeground) in Lcom/moneydesktop/finance/shared/activity/BaseActivity;
04-10 21:28:03.044: INFO/dalvikvm(12727): Could not find method com.flurry.android.FlurryAgent.onError, referenced from method com.moneydesktop.finance.exception.CustomExceptionHandler.uncaughtException
04-10 21:28:03.044: WARN/dalvikvm(12727): VFY: unable to resolve static method 8300: Lcom/flurry/android/FlurryAgent;.onError (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
04-10 21:28:03.104: INFO/greenDAO(12727): Creating tables for schema version 1
04-10 21:28:03.285: WARN/dalvikvm(12727): Unable to resolve superclass of Lcom/moneydesktop/finance/shared/activity/BaseActivity; (105)
04-10 21:28:03.285: WARN/dalvikvm(12727): Link of class 'Lcom/moneydesktop/finance/shared/activity/BaseActivity;' failed
04-10 21:28:03.285: WARN/dalvikvm(12727): Unable to resolve superclass of Lcom/moneydesktop/finance/SplashActivity; (1158)
04-10 21:28:03.285: WARN/dalvikvm(12727): Link of class 'Lcom/moneydesktop/finance/SplashActivity;' failed
04-10 21:28:03.285: WARN/dalvikvm(12727): threadid=1: thread exiting with uncaught exception (group=0x40cf0930)
04-10 21:28:03.285: ERROR/CustomExceptionHandler(12727): Error
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.moneydesktop.finance/com.moneydesktop.finance.SplashActivity}: java.lang.ClassNotFoundException: Didn't find class "com.moneydesktop.finance.SplashActivity" on path: /data/app/com.moneydesktop.finance-1.apk
我的 pom.xml 看起来像:
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<version>1.0</version>
<groupId>com.moneydesktop.finance</groupId>
<artifactId>moneymobile</artifactId>
<name>MoneyMobile</name>
<packaging>apk</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.6</java.version>
<android.version>4.1.1.4</android.version>
<android.platform>16</android.platform>
<android-maven.version>3.5.3</android-maven.version>
<maven-compiler.version>3.1</maven-compiler.version>
<nineoldandroids.version>2.4.0</nineoldandroids.version>
<viewpageindicator.version>2.4.1</viewpageindicator.version>
<timessquare.version>1.0.3</timessquare.version>
<menudrawer.version>2.0.2</menudrawer.version>
<greendao.version>1.3.1</greendao.version>
<eventbus.version>2.0.2</eventbus.version>
<jackson.version>2.1.4</jackson.version>
<lang.version>2.6</lang.version>
</properties>
<dependencies>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>${android.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.nineoldandroids</groupId>
<artifactId>library</artifactId>
<version>${nineoldandroids.version}</version>
</dependency>
<dependency>
<groupId>com.viewpagerindicator</groupId>
<artifactId>library</artifactId>
<version>${viewpageindicator.version}</version>
<type>apklib</type>
</dependency>
<dependency>
<groupId>com.squareup</groupId>
<artifactId>android-times-square</artifactId>
<version>${timessquare.version}</version>
<type>apklib</type>
</dependency>
<dependency>
<groupId>net.simonvt</groupId>
<artifactId>android-menudrawer</artifactId>
<version>${menudrawer.version}</version>
<type>apklib</type>
</dependency>
<dependency>
<groupId>de.greenrobot</groupId>
<artifactId>greendao</artifactId>
<version>${greendao.version}</version>
</dependency>
<dependency>
<groupId>de.greenrobot</groupId>
<artifactId>eventbus</artifactId>
<version>${eventbus.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.apache.directory.studio</groupId>
<artifactId>org.apache.commons.lang</artifactId>
<version>${lang.version}</version>
</dependency>
<dependency>
<groupId>com.saulpower.communication</groupId>
<artifactId>library</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>com.saulpower.fayeclient</groupId>
<artifactId>library</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>com.flurry</groupId>
<artifactId>FlurryAgent</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${basedir}/libs/FlurryAgent.jar</systemPath>
</dependency>
<dependency>
<groupId>com.devsmart</groupId>
<artifactId>DevsMart</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${basedir}/libs/devsmartlib.jar</systemPath>
</dependency>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>support-v4</artifactId>
<scope>system</scope>
<version>r12</version>
<systemPath>${basedir}/libs/android-support-v4-r12.jar</systemPath>
</dependency>
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>${android-maven.version}</version>
<configuration>
<sdk>
<platform>${android.platform}</platform>
</sdk>
<sign>
<debug>auto</debug>
</sign>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
</configuration>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler.version}</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.7</version>
<configuration>
<failsOnError>true</failsOnError>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<manifest>
<debuggable>true</debuggable>
</manifest>
</configuration>
<executions>
<execution>
<id>manifestUpdate</id>
<phase>process-resources</phase>
<goals>
<goal>manifest-update</goal>
</goals>
</execution>
<execution>
<id>alignApk</id>
<phase>package</phase>
<goals>
<goal>zipalign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler.version}</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.10</version>
<configuration>
<failsOnError>true</failsOnError>
<configLocation>../checkstyle.xml</configLocation>
<consoleOutput>true</consoleOutput>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>checkstyle</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
要运行 Maven 构建和安装,我使用以下命令:
mvn clean package install android:deploy android:run -Dandroid.device=usb
最佳答案
flurry、devsmart 和 support-v4 的范围应该是编译(默认)它们需要包含在您的最终构建中。
support-v4 在 central 中可用,但您可能需要将其他两个安装到本地存储库。
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \
-DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
关于Android Maven 类未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15940399/
这个问题在这里已经有了答案: Different ways of loading a file as an InputStream (6 个答案) 关闭 8 年前。 在我的 gradle java
给定一个 User 类: class User end 我想使用 .class_eval 定义一个新常量.所以: User.class_eval { AVOCADO = 'fruit' } 如果我尝试
这可能听起来很奇怪,但我正在开发一个需要查找 div 内的元素或 div 本身的插件。 脚本根据用户选择查找元素,但内容(包括标记)是可变的。因此脚本将按如下方式查找元素: $('.block').f
关闭。此题需要details or clarity 。目前不接受答案。 想要改进这个问题吗?通过 editing this post 添加详细信息并澄清问题. 已关闭 7 年前。 Improve th
我需要在按我自己的函数排序的对的多集中查找并删除一个值。显然, .find 总是将迭代器返回到末尾,而不是返回到搜索到的值。有小费吗?这是函数: struct cmp { bool operato
求助!我将如何通过遍历查看字符并计算有效字符出现之前的下划线数量来查找和删除前导下划线。以及从字符串末尾向后迭代以查找任何尾随下划线。 我可以使用下面的方法来删除下划线,但是如何迭代才能找到下划线。
如果你在 $(xml) 中有下面的 xml,你会变得懒惰: $(xml).find("animal").find("dog").find("beagle").text() 在 jQuery 中是否有类
你如何找到4个文件的交集? 我用了grep -Fx -f 1.txt 2.txt 3.txt 4.txt ,但它似乎只适用于 2 个文件。同样comm -12 1.txt 2.txt无法扩展为 4 个
我已经完成了标记的姿势估计并获得了 rvec 和 tvec 值。我不知道如何找到它的中心,因为我需要绘制一个需要中心值的圆柱体。 我该怎么做? 最佳答案 标记的 tvec 是标记从原点的平移 (x,y
我有一个任务,我需要找到 2 个单链接(单对单)列表的交集。我还必须为 2 个双向链接(双重 vs 双重)列表执行此操作: 对于单链表,我使用 mergeSort() 对两个列表进行排序,然后逐项比较
我是 R 的新手,我有一个 100x100 的方阵。我想找到这个矩阵的最大特征值。我试过了 is.indefinite(x) 但是它写 is.indefinite(x) : argument x is
您好,我是 svg 和 JavaScript 的新手,当鼠标位于 svg 上方时,我试图使一些 svg 元素弹出(通过缩放),反之亦然,当鼠标离开 svg 元素时。 我已经能够通过使用转换使 svg
我正在尝试为 scala 项目编写一个类,但在多个地方使用 class、def、while 等关键字出现此错误。 它发生在这样的地方: var continue = true while (conti
我有两个 pandas 数据框,它们只取自一列并将日期列设置为索引,所以现在我有两个 Series。我需要找到这些系列的相关性。 这里有几行来自dfd: index change 2018-
我正在尝试调整我的 Vagrantfile,因此如果它丢失,它会自动在项目根目录中创建一个文件夹。创建文件夹没问题,但我无法找到创建该文件夹的位置。 我发现此信息可在 Vagrant::Environ
我正在尝试在 jquery 中找到 Test3 的位置,请有人引导我走上正确的道路。 我需要jquery来显示5 Test7 Test2 Test6 Test5 Test3 Test8 谢谢 最佳
大家早上好 我有一个像这样的图像列表: 使用 jQuery 如何查找 ul#preload 中包含特定字符串(例如“green”)的所有图像 src 类似... var new_src = j
我正在开发一个修改 Excel 文件的应用程序。 如何找到任意行中最后使用的单元格? 示例:行号 => 5 中最后使用的单元格 最佳答案 要找到一行中的最后一个单元格,您需要 Range 的 End
我刚刚陷入 react native ,需要一些帮助才能在找到 token 时导航到 protected 屏幕。我应该在哪里寻找应用程序加载时的 token ?如何在不多次调用导航的情况下导航用户一次
非常奇怪...此页面是 protected 内容还是我不知道的内容?我尝试单击下一页 anchor 。 参见this page first. 我试图用这个来抓取元素 var buttonNext =
我是一名优秀的程序员,十分优秀!