android-maven-plugin

maven android error reading file source.properties

被刻印的时光 ゝ 提交于 2020-02-05 07:06:53
问题 I am trying to build a simple hello world android app. I am getting this error: Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven- plugin:3.9.0-rc.2:generate-sources (default-generate-sources) on project ndbc: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.9.0-rc.2:generate- sources failed: Error reading /storage/code/android-NDBC/ndbc/~/android-sdks/tools /source.properties -> [Help 1] I am using

maven android error reading file source.properties

亡梦爱人 提交于 2020-02-05 07:06:15
问题 I am trying to build a simple hello world android app. I am getting this error: Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven- plugin:3.9.0-rc.2:generate-sources (default-generate-sources) on project ndbc: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.9.0-rc.2:generate- sources failed: Error reading /storage/code/android-NDBC/ndbc/~/android-sdks/tools /source.properties -> [Help 1] I am using

Android Maven plugin - How to start an app automatically after deploying it

萝らか妹 提交于 2020-01-01 05:33:11
问题 I wondering if there's a way to start an application which was deployed using mvn install android:deploy automatically. If this is somehow possible it would speedup development. 回答1: Here the post: http://www.hrupin.com/2011/06/21/how-to-run-android-application-then-you-use-maven-in-your-project First you need to add plugin in your POM <plugin> <artifactId>exec-maven-plugin</artifactId> <groupId>org.codehaus.mojo</groupId> <configuration> <executable>${basedir}/scripts/run_app.sh</executable>

Maven Android SDK Deployer run the command “mvn install” error: Properties file not found. The file path seems not correct

ε祈祈猫儿з 提交于 2019-12-24 18:29:06
问题 [ERROR] Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties (default) on project android-17: Properties file not found: D:\maven-android-sdk-deployer-master\platforms\android-17\${env.ANDROID_HOME}\platforms\android-17\source.properties -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties (default) on project android-17:

Robolectric, Dagger and compile time $ModuleAdapter creation

限于喜欢 提交于 2019-12-24 02:38:07
问题 Following on from the other questions in my Android TDD series, I have managed to get as far as using Robolectric , Mockito , Maven and ABS to unit test my Android developments. Evidently, I am seemingly pushing my own knowledge boundaries but the Android CI dream is just too alluring. If you can assist with my next problem I would be very grateful, here it is; I am wanting to write an integration test case which takes my application's database from v1 to head. I am using Dagger for DI and to

how to start using android-maven-plugin? [closed]

浪子不回头ぞ 提交于 2019-12-23 06:58:12
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . First steps to use the android-maven-plugin? 回答1: 1 Set android home export ANDROID_HOME=/your/android-SDK/path 2 Run mvn archetype:generate -DarchetypeArtifactId=android-with-test -DarchetypeGroupId=de.akquinet

Android maven using wrong java version

梦想与她 提交于 2019-12-21 22:44:57
问题 I'm compiling my Android project against Android V2.2.1, I'm using an Android dependency: <dependency> <groupId>com.google.android</groupId> <artifactId>android</artifactId> <version>2.2.1</version> <scope>provided</scope> </dependency> Everything compiles fine and libraries that were introduced in later versions (Nfc related stuff for example) are not available and that's fine. The problem arises when I'm using pure java methods like String.isEmpty which were introduced only in V2.3+, for

Eclipse Indigo cannot import maven android that builds OK on command line

为君一笑 提交于 2019-12-14 01:01:29
问题 I created a maven android project from the command line using this archetype: 19: remote -> android-quickstart (-) I can call "mvn install" on it with success. When I try to import the same project into Eclipse Indigo, I see this: No marketplace entries found to handle maven-android-plugin:2.8.3:generate-sources in Eclipse. Please see Help for more information. and this: No marketplace entries found to handle maven-android-plugin:2.8.3:unpack in Eclipse. Please see Help for more information.

How to import Android AAR dependencies using Maven in Eclipse?

妖精的绣舞 提交于 2019-12-12 11:15:32
问题 Note : I am using Maven 3.2.2, Eclipse Luna This is the dependency in my pom.xml that uses Android AAR archive <dependency> <groupId>com.github.gabrielemariotti.cards</groupId> <artifactId>library</artifactId> <version>1.7.3</version> <type>aar</type> </dependency> I can see the classes installed in target/classes folder. But when I try to use the classes in the AAR, Eclipse is showing class cannot be resolved. I have no problem using classes added by JAR dependencies in pom.xml Any help

android-maven-plugin and resource filtering

拜拜、爱过 提交于 2019-12-12 07:18:16
问题 I'm newbie in maven and trying to configure it to build my android project with android-maven-plugin. I have an application.properties file in assets directory which contains different application settings. And i want to obtain this values from my pom. In properties file i define one property as myFilteredProperty=${helloFromPOM} and also define the same property in POM: <properties> <helloFromPOM>MY PROPERTY</helloFromPOM> </properties> Switched on filtering on assets dir <build> ...