android


Too many assets file causes an error?


I can run the project
but i found,if i add to much file,when i build the project,android studio will show the error
this is the error
Information:Gradle tasks [:app:assembleRelease]
:app:preBuild UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:app:checkReleaseManifest
:app:preDebugBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2330Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72330Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2311Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72311Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42330Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2330Library UP-TO-DATE
:app:prepareReleaseDependencies
:app:compileReleaseAidl
:app:compileReleaseRenderscript
:app:generateReleaseBuildConfig
:app:mergeReleaseShaders
:app:compileReleaseShaders
:app:generateReleaseAssets
:app:mergeReleaseAssets
:app:generateReleaseResValues UP-TO-DATE
:app:generateReleaseResources
:app:mergeReleaseResources
:app:processReleaseManifest
:app:processReleaseResources FAILED
Error:Execution failed for task ':app:processReleaseResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\k03\AppData\Local\Android\sdk\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1
i try clean project and rebuild project,but still show same error
this is the gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.example.k03.vv"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:design:23.1.1'
compile 'com.google.code.gson:gson:2.5'
}
I met this problem before. Usually, the reason is some of your asset doesn't meet the specifications of Android Studio. Try to add the assets in batches,and do clean projectafter each time.Then find the bad one and fix it.
Hope helpful.

Related Links

Issue with creating an AlertDialog
What is Neon with respect to Android?
How can I use the camera in Droid X by Android application
Why the view goes all black before ViewFlipper starts to flip?
How to pass the AppDelegate reference from activity to async task?
Conversion of GPS values from deg to dms format
Best way to pass an Button onClick back to main activity?
How to setup background not to be stretched?
Error in http connection
Forcing admob to refresh ad every second in Android
How to set background colour for a button in selected and pressed states that has #drawable image
selecting image from specific drawable folder in android
android sdk version 3.0 minSdkVersion
Games using cocos2d-android
Android Visualizer class throwing runtime exception
Sound Pool, Native Extension, AIR/Android

Categories

HOME
forms
battery
composite-primary-key
vscode-extensions
edge
xbee
interpolation
iis-6
data-visualization
openpyxl
ibeacon-android
resultset
magnetic-cards
coin3d
modbus-tcp
event-sourcing
symfony-console
jmp
kendo-mobile
libigl
hta
exit
froala
data.stackexchange.com
itunes
amazon-quicksight
oculus
google-earth
left-join
cart
jbutton
r-grid
login-script
keras-layer
least-squares
numpy-broadcasting
servicestack-text
health-monitoring
linq-to-objects
metawidget
cin
p4merge
news
parser-generator
softmax
install.packages
tcc
flask-restful
manova
context-switch
rspec2
expectations
xdoclet
udpclient
respondcms
qiime
cassia
nss
project-organization
inf
boomerang
opserver
eoferror
typemock
mirror
snackbar
actionfilterattribute
nodelist
sonarqube-5.0
verold
grails-plugin-rabbitmq
winginx
twitter-bootstrap-rails
ecslidingviewcontroller
notorm
embedded-fonts
rolify
observium
cnf
workitem
http-status-code-410
objectquery
fusefabric
user-tracking
matlab-load
u2netdk
winmain
rmdir
cuteeditor
luajava
dot-emacs
zen
duplex
spread
skype4java
cuda.net
asynchronous-wcf-call
mathematical-typesetting

Resources

Encrypt Message