gradle - Building a Android 6 Messaging app out of AOSP tree -


i'm trying build messaging app android 6.... i've imported packages/app/messaging android studio... , created following build.gradle file:

buildscript {     repositories {         mavencentral()     }     dependencies {        classpath 'com.android.tools.build:gradle:1.3.+'     } }  apply plugin: 'com.android.application'  android {     compilesdkversion 23     buildtoolsversion "23.0.2"      sourcesets {         main {             manifest.srcfile 'androidmanifest.xml'             java.srcdirs = ['src']             resources.srcdirs = ['src']             aidl.srcdirs = ['src']             renderscript.srcdirs = ['src']             res.srcdirs = ['res']             assets.srcdirs = ['assets']         }          // move tests tests/java, tests/res, etc...         instrumenttest.setroot('tests')          // move build types build-types/<type>         // instance, build-types/debug/java, build-types/debug/androidmanifest.xml, ...         // moves them out of them default location under src/<type>/...         // conflict src/ being used main source set.         // adding new build types or product flavors should accompanied         // similar customization.         debug.setroot('build-types/debug')         release.setroot('build-types/release')     }      defaultconfig {         applicationid "com.android.messaging"         minsdkversion 23         targetsdkversion 23          ndk {             modulename "libgiftranscode"         }          repositories {             mavencentral()         }          testapplicationid "com.android.messaging.test"         testinstrumentationrunner "android.test.instrumentationtestrunner"     }      dependencies {         compile "com.android.support:support-v4:+"         compile "com.android.support:appcompat-v7:+"         compile "com.android.support:recyclerview-v7:+"         compile "com.android.support:palette-v7:+"         compile "com.android.support:support-v13:+"         compile group: 'com.google.guava', name: 'guava', version: '18.0'         compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.0'         compile group: 'com.googlecode.libphonenumber', name: 'libphonenumber', version: '3.5'         compile group: 'com.klinkerapps', name: 'android-chips', version: '1.0.2'         // https://mvnrepository.com/artifact/com.google.collections/google-collections         compile group: 'com.google.collections', name: 'google-collections', version: '1.0'         // https://mvnrepository.com/artifact/com.1gravity/android-colorpicker         compile group: 'com.1gravity', name: 'android-colorpicker', version: '2.0.1'         // https://mvnrepository.com/artifact/com.googlecode.ez-vcard/ez-vcard         compile group: 'com.googlecode.ez-vcard', name: 'ez-vcard', version: '0.4.1'         // https://mvnrepository.com/artifact/javax.annotation/jsr250-api         compile group: 'javax.annotation', name: 'jsr250-api', version: '1.0'         // https://mvnrepository.com/artifact/com.google.guava/guava-annotations         compile group: 'com.google.guava', name: 'guava-annotations', version: 'r03'           }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt'         }     } } 

it build ok @ end i'm getting:

starting process 'command '/home/vadim/android/sdk/build-tools/23.0.2/aapt''. working directory: /home/vadim/work/messaging2 command: /home/vadim/android/sdk/build-tools/23.0.2/aapt package -f --no-crunch -i /home/vadim/android/sdk/platforms/android-23/android.jar -m /home/vadim/work/messaging2/build/intermediates/manifests/full/debug/androidmanifest.xml -s /home/vadim/work/messaging2/build/intermediates/res/merged/debug -a /home/vadim/work/messaging2/build/intermediates/assets/debug -m -j /home/vadim/work/messaging2/build/generated/source/r/debug -f /home/vadim/work/messaging2/build/intermediates/res/resources-debug.ap_ --debug-mode --custom-package com.android.messaging -0 apk --output-text-symbols /home/vadim/work/messaging2/build/intermediates/symbols/debug started process 'command '/home/vadim/android/sdk/build-tools/23.0.2/aapt'' /home/vadim/work/messaging2/res/values/styles.xml:2 : error retrieving parent item: no resource found matches given name 'photoviewtheme.translucent'.

:processdebugresources failed :processdebugresources (thread[main,5,main]) completed. took 1.175 secs.

failure: build failed exception.

  • what went wrong: execution failed task ':processdebugresources'.

    com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command '/home/vadim/android/sdk/build-tools/23.0.2/aapt'' finished non-zero exit value 1

  • try: run --stacktrace option stack trace. run --debug option more log output.

the missing style 'photoviewtheme.translucent' seems reside in appcompat library build not find it... ideas on how fix it?

thanks

i'm sorry disappoint can not import specific file source , build inside gradle regular apk.
system apps built inside linux environment gnu make , not regular apks gradle.
compile system app need build whole aosp first. (takes week if it's first time)

search gradle version off app ( or similar app) online.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -