We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello. i tried to change my andorid app's icon . but i couldnt manage and i closed sketch pages without saving . but Later when i tried to compile my another sketch i got this Error :( i think its about icon but i have icon-36.png in the icons file )
java.io.FileNotFoundException: C:\Users\Toshiba\Documents\Processing\modes\AndroidMode\icons\icon-36.png (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at processing.app.Base.copyFile(Base.java:2458)
at processing.mode.android.AndroidBuild.writeRes(AndroidBuild.java:602)
at processing.mode.android.AndroidBuild.createProject(AndroidBuild.java:148)
at processing.mode.android.AndroidBuild.build(AndroidBuild.java:71)
at processing.mode.android.AndroidMode.handleRunDevice(AndroidMode.java:220)
at processing.mode.android.AndroidEditor$14.run(AndroidEditor.java:310)
-set-mode-check:
-set-debug-files:
-check-env:
Android SDK Tools Revision 22.6.2
Installed at C:\adt-bundle-windows-x86-20131030\adt-bundle-windows-x86-20131030\sdk
-setup:
[echo] Project Name: OLUYOR
Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
Using latest Build Tools: 18.0.1
[echo] Resolving Build Target for OLUYOR...
Project Target: Android 2.3.3
API level: 10
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\Users\Toshiba\AppData\Local\Temp\android8918141415983900745sketch\bin
[mkdir] Created dir: C:\Users\Toshiba\AppData\Local\Temp\android8918141415983900745sketch\bin\res
[mkdir] Created dir: C:\Users\Toshiba\AppData\Local\Temp\android8918141415983900745sketch\bin\rsObj
[mkdir] Created dir: C:\Users\Toshiba\AppData\Local\Temp\android8918141415983900745sketch\bin\rsLibs
[mkdir] Created dir: C:\Users\Toshiba\AppData\Local\Temp\android8918141415983900745sketch\gen
[mkdir] Created dir: C:\Users\Toshiba\AppData\Local\Temp\android8918141415983900745sketch\bin\classes
[mkdir] Created dir: C:\Users\Toshiba\AppData\Local\Temp\android8918141415983900745sketch\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for OLUYOR...
Library dependencies:
No Libraries
------------------
API<=15: Adding annotations.jar to the classpath.
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
-code-gen:
Merging AndroidManifest files into one.
Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
Generating resource IDs...
[aapt] C:\Users\Toshiba\AppData\Local\Temp\android8918141415983900745sketch\bin\AndroidManifest.xml:1: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/icon').
BUILD FAILED
C:\adt-bundle-windows-x86-20131030\adt-bundle-windows-x86-20131030\sdk\tools\ant\build.xml:653: The following error occurred while executing this line:
C:\adt-bundle-windows-x86-20131030\adt-bundle-windows-x86-20131030\sdk\tools\ant\build.xml:698: null returned: 1
Total time: 1 second
Answers
Based on the stack trace at the beginning of the output, where Processing tries to copy the default icon to the sketch's build folder, it looks like you may have deleted one of the icon files in Android Mode's directory. Does the file
C:\Users\Toshiba\Documents\Processing\modes\AndroidMode\icons\icon-36.png
exist? If not, are there similar icon files in this location?If this is the problem, then it should be fixable by restoring the icon files to this location (you can probably re-install Android Mode) or by placing custom icon files in the sketch folder.