I've got the same problem and any help would be welcome.
On Monday, October 5, 2015 at 4:21:05 AM UTC+2, Mathew Winters wrote:
>
> Just changed the plugin on a app i am developing, from 1.3.1 to
> 1.4.0-beta5 and I get the following error when i go to run the app (its a
> android-tv app on the tv emulator).
> The app has androidTests which also wont rin,,,
>
> I have changed my package name for XXX in the pasted...
>
> Testing started at 12:31 PM ...
> Installing XXX.tvtv
> DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/XXX.tvtv"
> pkg: /data/local/tmp/nz.org.winters.android.tvtv
> Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
>
> Installation failed since the APK was either not signed, or signed
> incorrectly.
> If this is a Gradle-based project, then make sure the signing
> configuration is specified in the Gradle build script.
>
>
> My build.gradle(s) is quite simple coming from the new app template.
> (dependencies removed for brevity).
>
> When I change the gradle plugin back to 1.3.1 i am able to install and run
> the app and tests.
>
> // Top-level build file where you can add configuration options common to all
> sub-projects/modules.
>
> buildscript {
> repositories {
> jcenter()
> }
> dependencies {
> // classpath 'com.android.tools.build:gradle:1.3.1'
> classpath 'com.android.tools.build:gradle:1.4.0-beta5'
> classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
> // NOTE: Do not place your application dependencies here; they belong
> // in the individual module build.gradle files
> }
> }
>
> allprojects {
> repositories {
> jcenter()
> }
> }
>
> task clean(type: Delete) {
> delete rootProject.buildDir
> }
>
>
>
>
> apply plugin: 'com.android.application'
> apply plugin: 'com.neenbedankt.android-apt'
>
> android {
>
> compileSdkVersion 23
> buildToolsVersion "23.0.1"
> defaultConfig {
> applicationId "XXX.tvtv"
> minSdkVersion 22
> targetSdkVersion 23
> versionCode 1
> versionName "1.0"
> testInstrumentationRunner
> 'android.support.test.runner.AndroidJUnitRunner'
>
> }
> buildTypes {
> release {
> minifyEnabled false
> proguardFiles getDefaultProguardFile('proguard-android.txt'),
> 'proguard-rules.pro'
> }
>
> }
> testOptions {
> unitTests.returnDefaultValues = true;
> }
> packagingOptions {
> exclude 'META-INF/DEPENDENCIES.txt'
> exclude 'META-INF/LICENSE.txt'
> exclude 'META-INF/NOTICE.txt'
> exclude 'META-INF/NOTICE'
> exclude 'META-INF/LICENSE'
> exclude 'META-INF/DEPENDENCIES'
> exclude 'META-INF/notice.txt'
> exclude 'META-INF/license.txt'
> exclude 'META-INF/dependencies.txt'
> exclude 'META-INF/LGPL2.1'
> exclude 'META-INF/beans.xml'
> }
> dexOptions {
> incremental true
> }
> }
>
> dependencies {
> compile fileTree(dir: 'libs', include: ['*.jar'])
> ........
>
> }
>
> apt {
> arguments {
> resourcePackageName android.defaultConfig.applicationId
> androidManifestFile variant.outputs.head().processResources.manifestFile
> // if you have multiple outputs (when using splits), you may want to have
> other index than 0
>
> // you should set your package name here if you are using different
> application IDs
> // resourcePackageName "your.package.name"
>
> // You can set optional annotation processing options here, like these
> commented options:
> // logLevel 'INFO'
> // logFile '/var/log/aa.log'
> }
> }
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.