journeyapps / android-maven-example Goto Github PK
View Code? Open in Web Editor NEWSample Android project with Maven, with CI on Travis
License: MIT License
Sample Android project with Maven, with CI on Travis
License: MIT License
This is more of a question than an issue. Have you tried maybe using adb wait-for-device
rather than the shell script? This should get you to the point where adb devices
lists it. Only thing I've noticed is on the first boot, sometimes when you try to install the apk you get a Error: Could not access the Package Manager. Is the system running?
message.
A build randomly failed with:
Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.4.1:internal-pre-integration-test (default-internal-pre-integration-test) on project androidexample-tests: Install of /home/travis/build/embarkmobile/android-maven-example/androidexample-tests/target/androidexample-tests.apk failed. InstallException: ShellCommandUnresponsiveException
See this log.
Restarting the build fixed it.
This is great stuff. Thanks for doing this.
I would like to use your .travis.yml
and ./wait-for-emulator
for our official Android Maven Plugin builds, and the builds of the official samples.
Please add an open source license to the project, so it's obvious we can use your stuff. Preferably the Apache License version 2.0, like this: https://github.com/jayway/maven-android-plugin/blob/master/LICENSE.txt
Thanks,
Hugo Josefson
Jayway
Hi ,
I have downloaded the code i..e Sample Android project with Maven, with CI on Travis and when I ran that I am getting an MavenFilteringException like below
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.6:copy-resources (copy-manifest) on project androidexample-app: Execution copy-manifest of goal org.apache.maven.plugins:maven-resources-plugin:2.6:copy-resources failed: A required class was missing while executing org
.apache.maven.plugins:maven-resources-plugin:2.6:copy-resources: org/apache/maven/shared/filtering/MavenFilteringException
[ERROR] -----------------------------------------------------
Please help me to fix this issue.
When I run the execute command, it has the following errors:
java.lang.RuntimeException: java.lang.ClassCastException: java.util.ArrayList cannot be cast to android.view.View[]
at com.jayway.android.robotium.solo.Searcher.searchFor(Searcher.java:113)
at com.jayway.android.robotium.solo.Waiter.waitForText(Waiter.java:328)
at com.jayway.android.robotium.solo.Getter.getView(Getter.java:61)
at com.jayway.android.robotium.solo.Solo.getText(Solo.java:1535)
at com.embarkmobile.androidexample.tests.ExampleTest.testIncrement(ExampleTest.java:26)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)
Caused by: java.lang.ClassCastException: java.util.ArrayList cannot be cast to android.view.View[]
at com.jayway.android.robotium.solo.ViewFetcher.getWindowDecorViews(ViewFetcher.java:395)
at com.jayway.android.robotium.solo.ViewFetcher.getAllViews(ViewFetcher.java:83)
at com.jayway.android.robotium.solo.ViewFetcher.getViews(ViewFetcher.java:194)
at com.jayway.android.robotium.solo.ViewFetcher.getCurrentViews(ViewFetcher.java:314)
at com.jayway.android.robotium.solo.ViewFetcher.getCurrentViews(ViewFetcher.java:301)
at com.jayway.android.robotium.solo.Searcher$1.call(Searcher.java:106)
at com.jayway.android.robotium.solo.Searcher$1.call(Searcher.java:99)
at com.jayway.android.robotium.solo.Searcher.searchFor(Searcher.java:200)
at com.jayway.android.robotium.solo.Searcher.searchFor(Searcher.java:111)
... 18 more
How can I fix it?
First of all, thanks a lot for this repository, it's awesome!
However it's rather difficult to re-configure this project every time back to Gingerbread.
Does it matter? The statistics of 1st April 2014 (http://appleinsider.com/articles/14/04/07/apples-ios-7-reaches-87-adoption-still-growing-faster-than-android-44-kitkat) state, that still 17% of all Android devices run 2.3.3 and statistics from 1st Quartal 2014 (http://www.idc.com/prodserv/smartphone-os-market-share.jsp) state that android has 81% global market share. Which ultimately means you'd lose about 13% user of the entire global market if you don't support 2.3.3.
I guess this is rather a feature request than an issue, but I feel it is fitting here rather ok-ish. (Don't hit me for suggesting it)
At any rate, thanks for this project it saves tons of times nonetheless. Keep up the good work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.