I am using a Nexus 5, with Android 5.0 Lollipop and it for some reason fails.
I then have a Sony Xperia Z running Android 4.4.4 KitKat and it installs fine.
I did have the developer preview (Android L) on my Nexus 5 and it installed fine.
I wonder if this has something with the new SDK I downloaded. However I did replace the AAPT file which allowed me to now compile the app, just won't install now.
When I try and compile it using the USB I get the following error:
Parsing code. 0.47
Compiling code. 0.78
Compiling layouts code. 0.08
Generating R file. 0.06
Compiling generated Java code. 4.01
Convert byte code - optimized dex. 4.73
Packaging files. 2.02
Copying libraries resources 0.03
Found 16 resource files.
Signing package file (private key) 0.61
ZipAlign file. 0.03
Installing file to device. Error
pkg: /data/local/tmp/m1_basic_DEBUG.apk
Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
Restarting ADB Server may solve this problem.
Tools - Restart ADB Server. Device serial: 074ae88d0074fe59
I have gone to 'Tools' > 'Restart ADB Server' then tried to compile the app again, then a popup messages comes up on my device saying if I allow USB debugging. I tapped on OK, and then got the same error as above.