Titanium JIRA Archive
Appcelerator Community (AC)

[AC-969] Image doesn't display unless in res-hdpi folder

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2016-03-09T07:47:53.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterMichael Kellogg
AssigneeShak Hossain
Created2016-03-03T14:17:55.000+0000
Updated2016-03-09T13:45:35.000+0000

Description

Steps to Reproduce

header.png should already be in the assets->images and I believe I've referenced the image in the index.xml already Just execute

Actual Result

no image shows

Expected Result

image should show Related SO question: http://stackoverflow.com/questions/35635180/titanium-appcelerator-images-will-not-show-on-android/

Attachments

FileDateSize
.log2016-03-03T14:17:58.000+00002673915
android_20160309-084428.png2016-03-09T07:47:26.000+000098967
diagnostic5981547644041106151.log2016-03-03T14:18:05.000+000058921

Comments

  1. Michael Kellogg 2016-03-03

    Log when I executed application:
       Appcelerator Command-Line Interface, version 5.2.0
       Copyright (c) 2014-2016, Appcelerator, Inc.  All Rights Reserved.
       2016-03-03T14:34:45.210Z | TRACE  | set environment to {"registry":"https://software.appcelerator.com","security":"https://security.appcelerator.com","baseurl":"https://platform.appcelerator.com"}
       2016-03-03T14:34:45.212Z | TRACE  | checking credentials for existing session
       2016-03-03T14:34:45.485Z | TRACE  | Attempting to load session info from config file
       2016-03-03T14:34:45.490Z | TRACE  | check if session is invalidated
       2016-03-03T14:34:45.937Z | TRACE  | session expiry 1457531748489 false
       2016-03-03T14:34:45.938Z | TRACE  | Arrow Cloud config file: /Users/michael.kellogg/.acs
       2016-03-03T14:34:45.942Z | TRACE  | found Arrow Cloud login { mid: 'c15e9f83b8d824452e443bb96ca8076ba897d3ab',
         publishPort: 443,
         publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
         username: 'mkellogg91@gmail.com',
         cookie: [ 'connect.sid=s%3AmO%2F0FI7dxYE9EGFeyjGcu%2Fyp.BeDRnFadYkhCCl9BLXRO5rlbrudnTv%2BDnYWBJPrLqJo; Path=/; Expires=Wed, 16 Mar 2016 13:55:50 GMT; HttpOnly' ],
         defaultEP: 
          { publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
            publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com
       2016-03-03T14:34:45.944Z | TRACE  | Arrow Cloud cookie expiry [ 1458136550000 ]
       2016-03-03T14:34:45.944Z | TRACE  | session already loaded in opts.session
       2016-03-03T14:34:45.945Z | TRACE  | getCredentials() session:
       {
         "ipaddress": "192.168.1.10",
         "username": "mkellogg91@gmail.com",
         "password": "<OMITTED>",
         "session": "<OMITTED>",
         "nonce": "<OMITTED>",
         "environment": {
           "name": "production",
           "isProduction": true,
           "acsBaseUrl": "https://api.cloud.appcelerator.com",
           "acsAuthBaseUrl": "https://secure-identity.cloud.appcelerator.com",
           "nodeACSEndpoint": "https://admin.cloudapp-enterprise.appcelerator.com"
         },
         "token": "<OMITTED>",
         "fingerprint": "c15e9f83b8d824452e443bb96ca8076ba897d3ab",
         "fingerprint_description": "Mac OSX Serial Number: C02Q60S1G8WL",
         "org_id": 100094648,
         "expiry": 1457531748489
       }
       2016-03-03T14:34:45.946Z | TRACE  | loading plugins for command "run"
       2016-03-03T14:34:45.990Z | TRACE  | run search paths:
       [
         "/Users/michael.kellogg/.appcelerator/install/5.2.0/package",
         "/Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules",
         "/Applications/Appcelerator Studio/AppceleratorStudio.app/Contents/MacOS/node_modules",
         "/Applications/Appcelerator Studio/AppceleratorStudio.app/Contents/node_modules",
         "/Applications/Appcelerator Studio/AppceleratorStudio.app/node_modules",
         "/Applications/Appcelerator Studio/node_modules",
         "/Applications/node_modules",
         "/node_modules",
         "/Users/michael.kellogg/.appcelerator/.npm/lib/node_modules"
       ]
       2016-03-03T14:34:45.991Z | DEBUG  | [PLUGIN-LOAD] 0ms /Users/michael.kellogg/.appcelerator/install/5.2.0/package/appc.js
       2016-03-03T14:34:46.118Z | DEBUG  | [PLUGIN-LOAD] 126ms /Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/appc-cli-titanium/appc.js
       2016-03-03T14:34:46.118Z | DEBUG  | run plugin: /Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/appc-cli-titanium
       2016-03-03T14:34:46.121Z | DEBUG  | [PLUGIN-LOAD] 1ms /Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/arrow/appc.js
       2016-03-03T14:34:46.125Z | DEBUG  | run plugin: /Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/arrow
       2016-03-03T14:34:46.131Z | TRACE  | plugin "arrow" failed its "when" function check, skipping...
       2016-03-03T14:34:46.132Z | TRACE  | loading plugin "titanium" for command "run" CLI options via function
       2016-03-03T14:34:46.134Z | TRACE  | loading plugin "titanium" for command "run" CLI options via array
       2016-03-03T14:34:46.136Z | TRACE  | executing command "run" with the following plugins:
       ["titanium"]
       2016-03-03T14:34:46.138Z | TRACE  | Attempting to load session info from config file
       2016-03-03T14:34:46.140Z | TRACE  | check if session is invalidated
       2016-03-03T14:34:46.586Z | TRACE  | session expiry 1457531748489 false
       2016-03-03T14:34:46.587Z | TRACE  | session already loaded in opts.session
       2016-03-03T14:34:46.589Z | DEBUG  | Titanium Downloads Last Checked: 1456926998159
       2016-03-03T14:34:46.592Z | TRACE  | "/usr/local/bin/node" "/Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/titanium/bin/titanium" sdk -o json
       2016-03-03T14:34:47.169Z | TRACE  | checking for titanium, result:
        { activeSDK: '5.2.0.GA',
         defaultInstallLocation: '/Users/michael.kellogg/Library/Application Support/Titanium',
         installLocations: 
          [ '/Users/michael.kellogg/Library/Application Support/Titanium',
            '/Library/Application Support/Titanium' ],
         installed: 
          { '5.2.0.GA': '/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA',
            '5.1.2.GA': '/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA' },
         sdks: 
          { '5.2.0.GA': 
             { name: '5.2.0.GA',
               manifest: [Object],
               path: '/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA' },
            '5.1.2.GA': 
             { name: '5.1.2.GA',
               manifest: [Object],
               path: '/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA' } } }
       2016-03-03T14:34:47.170Z | DEBUG  | getTiDefaultPath /Users/michael.kellogg/Library/Application Support/Titanium
       2016-03-03T14:34:47.170Z | DEBUG  | active sdk install path /Users/michael.kellogg/Library/Application Support/Titanium
       2016-03-03T14:34:48.488Z | DEBUG  | to download {"modules":[{"oses":["linux","win32","osx"],"platforms":["iphone","android"],"required":true,"partner_id":"C62F568D148845509E7E9D8317A24462","partner_name":"crittercism","name":"Appcelerator Performance Module","description":"Used to enable the Appcelerator Performance service. Appcelerator Performance service allows you to identify and troubleshoot crashes in your mobile applications.","id":"com.appcelerator.apm","guid":"ec36d909-befa-4ca1-b518-1e3f152ead61","version":"1.1.5","url":"http://s3-us-west-2.amazonaws.com/appcelerator-modules/com.appcelerator.apm-ios_android-1.1.5.zip","min_mobilesdk_version":"3.5.1"}],"components":[{"id":"com.soasta.touchtest.matt","name":"Appcelerator Test Module","description":"Used to enable the Appcelerator Test service. Appcelerator Test service allows you to easily automate functional testing for mobile applications.","oses":["linux","win32","osx"],"platforms":["iPhone","android"],"version":"8023.374","url":"http://appctest-2.appcelerator.com/concerto/downloads/mobile/MakeAppTouchTestable.zip","min_mobilesdk_version":"3.1.1","required":true,"partner_id":"B70300B47FCF40FB83F9F870B7BF77E8","partner_name":"soasta"}]}
       3/3/2016, 9:34:52 AM
       Operating System
         Name                        = Mac OS X
         Version                     = 10.10.5
         Architecture                = 64bit
         # CPUs                      = 8
         Memory                      = 17179869184
       Node.js
         Node.js Version             = 0.12.10
         npm Version                 = 2.14.9
       Titanium CLI
         CLI Version                 = 5.0.6
       Titanium SDK
         SDK Version                 = 5.1.2.GA
         SDK Path                    = /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA
         Target Platform             = android
       Command
         /usr/local/bin/node /Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/titanium/lib/titanium.js build run --platform android --log-level trace --sdk 5.1.2.GA --project-dir /Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester --target emulator --android-sdk /Users/michael.kellogg/android-sdk --device-id Google Nexus 10 - 5.0.0 - API 21 - 2560x1600 --skip-js-minify --no-colors --no-progress-bars --no-prompt --prompt-type socket-bundle --prompt-port 64274 --username mkellogg91@gmail.com --password altec1991 --config-file /var/folders/9t/5wy55nd50sjc91s_lnny1pn178qlrm/T/build-1457015686587.json --no-banner --project-dir /Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester
       [INFO] :   Found Titanium module id=ti.cloud version=3.2.9 platform=commonjs deploy-type=development path=/Users/michael.kellogg/Library/Application Support/Titanium/modules/commonjs/ti.cloud/3.2.9
       [INFO] :   Found better matching module id=ti.cloud version=latest platform=commonjs deploy-type=development path=/Users/michael.kellogg/Library/Application Support/Titanium/modules/commonjs/ti.cloud/3.2.10
       [INFO] :   Found Titanium plugin id=ti.alloy version=1.0 
       [INFO] :   Deploy type: development
       [INFO] :   Building for target: emulator
       [INFO] :   Building for emulator: Google Nexus 10 - 5.0.0 - API 21 - 2560x1600
       [INFO] :   Targeting Android SDK API: 23
       [INFO] :   Building for the following architectures: armeabi, armeabi-v7a, x86
       [INFO] :   Signing with keystore: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/dev_keystore (tidev)
       [INFO] :   Debugging disabled
       [INFO] :   Profiler disabled
       [INFO] :   Forcing rebuild: /Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/build-manifest.json does not exist
       [INFO] :   Found Alloy app in /Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/app
       [INFO] :   Executing Alloy compile: /usr/local/bin/node /Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/alloy/bin/alloy compile /Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/app --config platform=android,version=0,simtype=none,devicefamily=none,deploytype=development,target=emulator --no-colors
       [INFO] :   [config.json] regenerating CFG.js from config.json...
       [INFO] :   ----- MVC GENERATION -----
       [INFO] :   [app.tss] global style processing...
       [INFO] :   [global style] writing to cache...
       [INFO] :   [index.xml] view processing...
       [INFO] :   style:      "index.tss"
       [INFO] :   view:       "index.xml"
       [INFO] :   controller: "index.js"
       [INFO] :   created:    "Resources/android/alloy/controllers/index.js"
       [INFO] :   created:     "Resources/android/alloy/styles/index.js"
       [INFO] :   
       [INFO] :   
       [INFO] :   [app.js] Titanium entry point processing...
       [INFO] :   created:    "Resources/android/app.js"
       [INFO] :   
       [INFO] :   ----- OPTIMIZING -----
       [INFO] :   - android/alloy.js
       [INFO] :   - android/alloy/sync/localStorage.js
       [INFO] :   - android/alloy/sync/properties.js
       [INFO] :   - android/alloy/sync/sql.js
       [INFO] :   
       [INFO] :   Alloy compiled in 0.63869s
       [INFO] :   Alloy compiler completed successfully
       [INFO] :   Launching emulator: Google Nexus 10 - 5.0.0 - API 21 - 2560x1600
       [INFO] :   Emulator already running
       [INFO] :   Emulator is booted
       [INFO] :   SD card not required, skipping mount check
       [INFO] :   Emulator ready!
       [INFO] :   Processing JavaScript files
       [INFO] :   Encrypting JavaScript files: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/titanium_prep.macos "com.tester.test" "/Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/assets" "alloy/CFG.js" "app.js" "alloy/backbone.js" "alloy/constants.js" "alloy/controllers/BaseController.js" "alloy/controllers/index.js" "alloy/styles/index.js" "alloy/sync/localStorage.js" "alloy/sync/properties.js" "alloy/sync/sql.js" "alloy/underscore.js" "alloy/widget.js" "alloy.js" "ti.cloud.js" "_app_props_.json"
       [INFO] :   Writing /Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/bin/assets/app.json
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-analytics.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-android.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-app.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-filesystem.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-media.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-locale.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-network.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-xml.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-utils.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-geolocation.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-accelerometer.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-contacts.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-map.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-calendar.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-gesture.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-platform.res.zip
       [INFO] :   Extracting module resources: /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-database.res.zip
       [INFO] :   No aidl files to compile, continuing
       [INFO] :   Generating i18n files
       [INFO] :   Generating /Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/res/values/theme.xml
       [INFO] :   Packaging application: /Users/michael.kellogg/android-sdk/build-tools/23.0.2/aapt "package" "-f" "-m" "-J" "/Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/gen" "-M" "/Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/AndroidManifest.xml" "-A" "/Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/bin/assets" "-S" "/Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/res" "-I" "/Users/michael.kellogg/android-sdk/platforms/android-23/android.jar" "-F" "/Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/bin/app.ap_" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.v7.appcompat:android.support.v7.cardview" "-S" "/var/folders/9t/5wy55nd50sjc91s_lnny1pn178qlrm/T/11623-30474-xs1ea1/res" "-S" "/var/folders/9t/5wy55nd50sjc91s_lnny1pn178qlrm/T/11623-30474-184ocox/res" "-S" "/var/folders/9t/5wy55nd50sjc91s_lnny1pn178qlrm/T/11623-30474-1fgtccc/res"
       [INFO] :   Building Java source files: /Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/bin/javac "-J-Xmx1024M" "-encoding" "utf8" "-bootclasspath" "/Users/michael.kellogg/android-sdk/platforms/android-23/android.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/kroll-v8.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-analytics.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/aps-analytics.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-android.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/jaxen-1.1.1.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/ti-commons-codec-1.3.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/kroll-common.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/titanium.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-app.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-ui.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/nineoldandroids-appc-2.4.0.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-filesystem.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-media.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-appcompat.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/android-support-v4.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/android-support-v7-appcompat.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-cardview.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/cardview-v7-23.0.1.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-locale.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-network.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-xml.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-utils.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-geolocation.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-accelerometer.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-contacts.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-map.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-calendar.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-gesture.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-platform.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-database.jar:/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/lib/titanium-verify.jar:R.class:AndroidstyletesterActivity.class:AndroidstyletesterAppInfo.class:AndroidstyletesterApplication.class:AssetCryptImpl.class" "-d" "/Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/bin/classes" "-proc:none" "-target" "1.6" "-source" "1.6" "@/Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/java-sources.txt"
       [INFO] :   Running dexer: /Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/bin/java "-Xmx1024M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/Users/michael.kellogg/android-sdk/platform-tools" "-jar" "/Users/michael.kellogg/android-sdk/build-tools/23.0.2/lib/dx.jar" "--dex" "--output=/Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/bin/classes.dex" "/Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/bin/classes" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/lib/titanium-verify.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/kroll-v8.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-analytics.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/aps-analytics.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-android.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/jaxen-1.1.1.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/ti-commons-codec-1.3.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/kroll-common.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/titanium.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-app.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-ui.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-filesystem.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-media.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-appcompat.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/android-support-v4.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/android-support-v7-appcompat.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-cardview.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/cardview-v7-23.0.1.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-locale.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-network.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-xml.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-utils.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-geolocation.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-accelerometer.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-contacts.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-map.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-calendar.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-gesture.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-platform.jar" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/modules/titanium-database.jar"
       [INFO] :   Creating unsigned apk
       [INFO] :   Processing /Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/src
       [INFO] :   Writing unsigned apk: /Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/bin/app-unsigned.apk
       [INFO] :   Using MD5withRSA signature algorithm
       [INFO] :   Signing apk: /Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/bin/jarsigner "-sigalg" "MD5withRSA" "-digestalg" "SHA1" "-keystore" "/Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA/android/dev_keystore" "-storepass" "*******" "-signedjar" "/Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/bin/AndroidStyleTester.apk" "/Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/bin/app-unsigned.apk" "tidev"
       [INFO] :   Aligning zip file: /Users/michael.kellogg/android-sdk/build-tools/23.0.2/zipalign "-v" "4" "/Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/bin/AndroidStyleTester.apk" "/Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/bin/AndroidStyleTester.apkz"
       [INFO] :   Writing build manifest: /Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/build-manifest.json
       [INFO] :   Making sure the adb server is running
       [INFO] :   Installing apk: /Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/AndroidStyleTester/build/android/bin/AndroidStyleTester.apk
       [INFO] :   App successfully installed
       [INFO] :   Starting app: com.tester.test/.AndroidstyletesterActivity
       [INFO] :   Application pid: 1884
       [INFO] :   Project built successfully in 50s 211ms
       -- Start application log -----------------------------------------------------
       [INFO] :   TiApplication: (main) [0,0] checkpoint, app created.
       [INFO] :   TiApplication: (main) [25,25] Titanium 5.1.2 (2015/12/16 19:00 ca822b2)
       [INFO] :   TiApplication: (main) [37,62] Titanium Javascript runtime: v8
       [INFO] :   TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
       [WARN] :   V8Object: (KrollRuntimeThread) [48,48] Runtime disposed, cannot set property 'userAgent'
       [INFO] :   TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.tester.test.AndroidstyletesterActivity@2f83bc4b
       [INFO] :   OpenGLRenderer: Initialized EGL, version 1.4
       [WARN] :   EGL_emulation: eglSurfaceAttrib not implemented
       [WARN] :   OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xf0108ec0, error=EGL_SUCCESS
       [WARN] :   EGL_emulation: eglSurfaceAttrib not implemented
       [WARN] :   OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xf0108ee0, error=EGL_SUCCESS
       [INFO] :   APSAnalyticsService: Analytics Service Started
       [INFO] :   APSAnalyticsService: Stopping Analytics Service
       
  2. Sharif AbuDarda 2016-03-03

    Hello, "app/assets" folder contains image assets and other files that need to be copied into the Resources directory. Reference these files in the code without the 'app/assets' path and without the platform-specific folder if it is inside one. So in your case the image path should be "/images/header.png". Try that. Thanks.
  3. Michael Kellogg 2016-03-03

    I was using '/images/header.png' it didn't work. I could try the lib thing.
  4. Fokke Zandbergen 2016-03-08

    [~mkellogg91@gmail.com] could you attach a sample project?
  5. Nazmus Salahin 2016-03-08

    I am able to display image using the following code and the following conditions. 1.In a classic mobile app project for android putting the image in "Resources" folder and code "image: 'header.png'," 2.In a classic mobile app project for android putting the image in "Resources/android/images" folder and code " image: '/images/header.png',".
       var header = Ti.UI.createImageView({
           width: 300,
           image: '/images/header.png',  // this line changes
           width: 300
       });
       
       var win = Ti.UI.createWindow({
           backgroundColor: 'white',
           height: Ti.UI.FILL,
           title: 'test',
           width: Ti.UI.FILL
       });
       
       win.add(header);
       
       win.open();
       
    *Environment*: *Device info:* Nexux7 (android 6.0.1) *Node.js Version:* 0.12.7 *npm Version:* 2.11.3 *Titanium SDKs:* 5.2.0 and 5.1.2.GA *Java Development Kit Version:* 1.8.0_73 *Titanium CLI Version:* 5.0.5
  6. Michael Kellogg 2016-03-08

  7. Fokke Zandbergen 2016-03-09

    [~mkellogg91@gmail.com] Thanks for the project. I could reproduce. However, if I copy over another PNG (e.g. the appicon.png one level up) to the same folder that image works fine. So it seems like your PNG is corrupt:
       <Alloy>
       	<Window class="container">
       		<ImageView top="20" width="100" height="100" image='/images/header.png' backgroundColor="red"></ImageView>
       		<ImageView bottom="20" width="100" height="100" image='/images/logo.png' backgroundColor="green"></ImageView>
       	</Window>
       </Alloy>
       
    !android_20160309-084428.png|thumbnail! This seems to be confirmed by what I get when I move your header.png into a res-hdpi folder. The compile then fails with:
       [ERROR] Failed to package application:
       [ERROR]
       [ERROR] libpng error: CgBI: unhandled critical chunk
       [ERROR] ERROR: Failure processing PNG image /Users/fokkezb/Downloads/CustomSchemeTest/build/android/res/drawable-hdpi/header_d4829b6ff7.png
       
  8. Michael Kellogg 2016-03-09

    I was aware of the failure processing PNG issue. I resolved that by exporting as .png and then re-adding into the project previously. I will try to re-export my png. However, I was able to reproduce the results that you came up with. Thank you sir

JSON Source