Calsign / APDE

Source code for APDE: Create and run Processing sketches on an Android device.
GNU General Public License v2.0
351 stars 76 forks source link

AAPT exited with error code 1 (a.k.a. "Build failed, help me!") #10

Open Diogov27 opened 9 years ago

Diogov27 commented 9 years ago

screenshot_2015-01-29-10-54-50

samsung galaxy tab 3 lite android 4.2.2

Diogov27 commented 9 years ago

I can not use the APDE my tab 3 lite

Calsign commented 9 years ago

Navigate to Settings > Build and enable "Verbose Output". Now, build again and paste the contents of the console here (not a screenshot).

Some more troubleshooting: Do any of the examples work? You can try disabling "Build on Internal Storage" at the same location as above.

Diogov27 commented 9 years ago

screenshot_2015-01-29-21-45-35

screenshot_2015-01-29-21-44-54

the examples do not work all the builds with the same error!!

Calsign commented 9 years ago

The relevant error message is probably caused by AAPT, but that part of the output is not visible in the screenshots. Please select the entire console (by long-pressing the console area and pressing the "select all" button in the action bar), copy it, and paste it here. When it comes to debugging, screenshots are not particularly useful (although they are better then nothing).

Diogov27 commented 9 years ago
Initializing build sequence...
Target: debug
Deleted old build folder
Pre-processing...
Injected log broadcaster
Writing AndroidManifest.xml...
Writing resources...
Copying Processing libraries...
Copying dexed Processing libraries...
Copying contributed libaries...
Detected architecture armeabi-v7a
Using position independent executable (PIE) AAPT binary
Copying AAPT...
Changing execution permissions for AAPT...
Copying GLSL shader files...

Packaging resources with AAPT...
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
Compiling with ECJ...
Compiling: /storage/emulated/0/build/src/processing/test/diogo/DIOGO.java
[parsing    /storage/emulated/0/build/src/processing/test/diogo/DIOGO.java - #1/1]
[reading    processing/core/PApplet.class]
[reading    android/app/Activity.class]
[reading    android/view/ContextThemeWrapper.class]
[reading    android/content/ContextWrapper.class]
[reading    android/content/Context.class]
[reading    java/lang/Object.class]
[reading    android/content/ComponentCallbacks.class]
[reading    android/view/View$OnCreateContextMenuListener.class]
[reading    android/view/View.class]
[reading    android/view/KeyEvent$Callback.class]
[reading    android/view/KeyEvent.class]
[reading    android/os/Parcelable$Creator.class]
[reading    android/os/Parcelable.class]
[reading    android/view/Window$Callback.class]
[reading    android/view/Window.class]
[reading    android/view/LayoutInflater$Factory.class]
[reading    android/view/LayoutInflater.class]
[reading    java/lang/Runnable.class]
[reading    processing/core/PConstants.class]
[analyzing  /storage/emulated/0/build/src/processing/test/diogo/DIOGO.java - #1/1]
[reading    java/util/HashMap.class]
[reading    java/util/Map$Entry.class]
[reading    java/util/Map.class]
[reading    java/util/Map$Entry.class]
[reading    java/util/ArrayList.class]
[reading    java/io/File.class]
[reading    java/io/BufferedReader.class]
[reading    java/io/PrintWriter.class]
[reading    java/io/InputStream.class]
[reading    java/io/OutputStream.class]
[reading    java/io/IOException.class]
[reading    android/content/res/Configuration.class]
[reading    android/os/Bundle.class]
[reading    android/content/res/Resources$Theme.class]
[reading    android/content/res/Resources.class]
[reading    java/lang/String.class]
[reading    android/content/Intent.class]
[reading    android/content/IntentSender.class]
[reading    android/content/IntentSender$SendIntentException.class]
[reading    android/content/pm/PackageManager$NameNotFoundException.class]
[reading    android/content/pm/PackageManager.class]
[reading    android/net/Uri.class]
[reading    android/content/ComponentName.class]
[reading    android/content/ServiceConnection.class]
[reading    android/content/BroadcastReceiver.class]
[reading    android/os/Handler.class]
[reading    android/content/IntentFilter.class]
[reading    android/graphics/Bitmap.class]
[reading    android/graphics/drawable/Drawable.class]
[reading    android/database/sqlite/SQLiteDatabase.class]
[reading    android/database/sqlite/SQLiteDatabase$CursorFactory.class]
[reading    java/io/FileOutputStream.class]
[reading    java/io/FileNotFoundException.class]
[reading    java/io/FileInputStream.class]
[reading    android/content/SharedPreferences.class]
[reading    android/content/pm/ApplicationInfo.class]
[reading    java/lang/ClassLoader.class]
[reading    android/os/Looper.class]
[reading    android/content/ContentResolver.class]
[reading    android/content/res/AssetManager.class]
[reading    java/lang/System.class]
[reading    java/io/PrintStream.class]
[parsing    /storage/emulated/0/build/src/processing/test/diogo/APDEInternalLogBroadcasterUtil.java - #2/2]
[reading    java/lang/Thread.class]
[reading    java/lang/Thread$UncaughtExceptionHandler.class]
[reading    java/io/Flushable.class]
[reading    java/io/Closeable.class]
[reading    java/io/UnsupportedEncodingException.class]
[analyzing  /storage/emulated/0/build/src/processing/test/diogo/APDEInternalLogBroadcasterUtil.java - #2/2]
[writing    processing/test/diogo/DIOGO.class - #1]
[reading    java/lang/Throwable.class]
[completed  /storage/emulated/0/build/src/processing/test/diogo/DIOGO.java - #1/2]
[reading    java/lang/Override.class]
[reading    java/lang/Class.class]
[writing    processing/test/diogo/APDEInternalLogBroadcasterUtil$1.class - #2]
[writing    processing/test/diogo/APDEInternalLogBroadcasterUtil$APDEInternalExceptionHandler.class - #3]
[writing    processing/test/diogo/APDEInternalLogBroadcasterUtil$APDEInternalConsoleStream.class - #4]
[writing    processing/test/diogo/APDEInternalLogBroadcasterUtil.class - #5]
[completed  /storage/emulated/0/build/src/processing/test/diogo/APDEInternalLogBroadcasterUtil.java - #2/2]
[2 units compiled]
[5 .class files generated]
----------
1. WARNING in /storage/emulated/0/build/src/processing/test/diogo/DIOGO.java (at line 4)
    import processing.data.*; 
           ^^^^^^^^^^^^^^^
The import processing.data is never used
----------
2. WARNING in /storage/emulated/0/build/src/processing/test/diogo/DIOGO.java (at line 5)
    import processing.event.*; 
           ^^^^^^^^^^^^^^^^
The import processing.event is never used
----------
3. WARNING in /storage/emulated/0/build/src/processing/test/diogo/DIOGO.java (at line 6)
    import processing.opengl.*; 
           ^^^^^^^^^^^^^^^^^
The import processing.opengl is never used
----------
4. WARNING in /storage/emulated/0/build/src/processing/test/diogo/DIOGO.java (at line 8)
    import java.util.HashMap; 
           ^^^^^^^^^^^^^^^^^
The import java.util.HashMap is never used
----------
5. WARNING in /storage/emulated/0/build/src/processing/test/diogo/DIOGO.java (at line 9)
    import java.util.ArrayList; 
           ^^^^^^^^^^^^^^^^^^^
The import java.util.ArrayList is never used
----------
6. WARNING in /storage/emulated/0/build/src/processing/test/diogo/DIOGO.java (at line 10)
    import java.io.File; 
           ^^^^^^^^^^^^
The import java.io.File is never used
----------
7. WARNING in /storage/emulated/0/build/src/processing/test/diogo/DIOGO.java (at line 11)
    import java.io.BufferedReader; 
           ^^^^^^^^^^^^^^^^^^^^^^
The import java.io.BufferedReader is never used
----------
8. WARNING in /storage/emulated/0/build/src/processing/test/diogo/DIOGO.java (at line 12)
    import java.io.PrintWriter; 
           ^^^^^^^^^^^^^^^^^^^
The import java.io.PrintWriter is never used
----------
9. WARNING in /storage/emulated/0/build/src/processing/test/diogo/DIOGO.java (at line 13)
    import java.io.InputStream; 
           ^^^^^^^^^^^^^^^^^^^
The import java.io.InputStream is never used
----------
10. WARNING in /storage/emulated/0/build/src/processing/test/diogo/DIOGO.java (at line 14)
    import java.io.OutputStream; 
           ^^^^^^^^^^^^^^^^^^^^
The import java.io.OutputStream is never used
----------
11. WARNING in /storage/emulated/0/build/src/processing/test/diogo/DIOGO.java (at line 15)
    import java.io.IOException; 
           ^^^^^^^^^^^^^^^^^^^
The import java.io.IOException is never used
----------
11 problems (11 warnings)
Dexing with DX Dexer...
Merging DEX files with DX Merger...
Merged dex A (5 defs/4,3KiB) with dex B (151 defs/645,6KiB). Result is 156 defs/765,4KiB. Took 3,4s
Merged dex A (156 defs/765,4KiB) with dex B (2 defs/1,1KiB). Result is 158 defs/914,8KiB. Took 1,8s
Building APK file with APKBuilder...
APKBuilder failed
com.android.sdklib.build.ApkCreationException: java.io.FileNotFoundException: /storage/emulated/0/build/bin/DIOGO.apk.res does not exist
    at com.android.sdklib.build.ApkBuilder.init(ApkBuilder.java:469)
    at com.android.sdklib.build.ApkBuilder.<init>(ApkBuilder.java:396)
    at com.calsignlabs.apde.build.Build.build(Build.java:930)
    at com.calsignlabs.apde.EditorActivity$22.run(EditorActivity.java:2295)
    at java.lang.Thread.run(Thread.java:856)
Caused by: java.io.FileNotFoundException: /storage/emulated/0/build/bin/DIOGO.apk.res does not exist
    at com.android.sdklib.build.ApkBuilder.checkInputFile(ApkBuilder.java:934)
    at com.android.sdklib.build.ApkBuilder.init(ApkBuilder.java:438)
    ... 4 more
Diogov27 commented 9 years ago

?

Diogov27 commented 9 years ago

Help!

Calsign commented 9 years ago

This isn't as easy to debug as I thought it would be. I'll look into this more, but for now, I'm afraid that there isn't a real solution.

uraltermann commented 9 years ago

I think i've got the same problem. is there any fix yet?

Initializing build sequence...
Target: debug
Deleted old build folder
Pre-processing...
Injected log broadcaster
Writing AndroidManifest.xml...
Writing resources...
Copying Processing libraries...
Copying dexed Processing libraries...
Copying contributed libaries...
Detected architecture armeabi-v7a
Using position independent executable (PIE) AAPT binary
Copying AAPT...
Changing execution permissions for AAPT...
Copying GLSL shader files...

Packaging resources with AAPT...
Adding multiple application package resources; only one is allowed.
Use -x to create extended resources.
Adding multiple application package resources; only one is allowed.
Use -x to create extended resources.
Adding multiple application package resources; only one is allowed.
Use -x to create extended resources.
Adding multiple application package resources; only one is allowed.
Use -x to create extended resources.
Adding multiple application package resources; only one is allowed.
Use -x to create extended resources.
Adding multiple application package resources; only one is allowed.
Use -x to create extended resources.
/data/data/com.calsignlabs.apde/app_build/AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/icon').

Compiling with ECJ...
Compiling: /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/Partikel.java
[parsing    /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/Partikel.java - #1/1]
[reading    processing/core/PApplet.class]
[reading    android/app/Activity.class]
[reading    android/view/ContextThemeWrapper.class]
[reading    android/content/ContextWrapper.class]
[reading    android/content/Context.class]
[reading    java/lang/Object.class]
[reading    android/content/ComponentCallbacks.class]
[reading    android/view/View$OnCreateContextMenuListener.class]
[reading    android/view/View.class]
[reading    android/view/KeyEvent$Callback.class]
[reading    android/view/KeyEvent.class]
[reading    android/os/Parcelable$Creator.class]
[reading    android/os/Parcelable.class]
[reading    android/view/Window$Callback.class]
[reading    android/view/Window.class]
[reading    android/view/LayoutInflater$Factory.class]
[reading    android/view/LayoutInflater.class]
[reading    java/lang/Runnable.class]
[reading    processing/core/PConstants.class]
[analyzing  /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/Partikel.java - #1/1]
[reading    java/util/HashMap.class]
[reading    java/util/Map$Entry.class]
[reading    java/util/Map.class]
[reading    java/util/Map$Entry.class]
[reading    java/util/ArrayList.class]
[reading    java/io/File.class]
[reading    java/io/BufferedReader.class]
[reading    java/io/PrintWriter.class]
[reading    java/io/InputStream.class]
[reading    java/io/OutputStream.class]
[reading    java/io/IOException.class]
[reading    android/content/res/Configuration.class]
[reading    android/os/Bundle.class]
[reading    android/content/res/Resources$Theme.class]
[reading    android/content/res/Resources.class]
[reading    java/lang/String.class]
[reading    android/content/Intent.class]
[reading    android/content/IntentSender.class]
[reading    android/content/IntentSender$SendIntentException.class]
[reading    android/content/pm/PackageManager$NameNotFoundException.class]
[reading    android/content/pm/PackageManager.class]
[reading    android/net/Uri.class]
[reading    android/content/ComponentName.class]
[reading    android/content/ServiceConnection.class]
[reading    android/content/BroadcastReceiver.class]
[reading    android/os/Handler.class]
[reading    android/content/IntentFilter.class]
[reading    android/graphics/Bitmap.class]
[reading    android/graphics/drawable/Drawable.class]
[reading    android/database/sqlite/SQLiteDatabase.class]
[reading    android/database/sqlite/SQLiteDatabase$CursorFactory.class]
[reading    java/io/FileOutputStream.class]
[reading    java/io/FileNotFoundException.class]
[reading    java/io/FileInputStream.class]
[reading    android/content/SharedPreferences.class]
[reading    android/content/pm/ApplicationInfo.class]
[reading    java/lang/ClassLoader.class]
[reading    android/os/Looper.class]
[reading    android/content/ContentResolver.class]
[reading    android/content/res/AssetManager.class]
[reading    java/lang/System.class]
[reading    java/io/PrintStream.class]
[parsing    /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/APDEInternalLogBroadcasterUtil.java - #2/2]
[reading    java/lang/Thread.class]
[reading    java/lang/Thread$UncaughtExceptionHandler.class]
[reading    java/io/Flushable.class]
[reading    java/io/Closeable.class]
[reading    java/io/UnsupportedEncodingException.class]
[analyzing  /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/APDEInternalLogBroadcasterUtil.java - #2/2]
[writing    processing/test/partikel/Partikel$Particle.class - #1]
[writing    processing/test/partikel/Partikel.class - #2]
[completed  /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/Partikel.java - #1/2]
[reading    java/lang/Throwable.class]
[reading    java/lang/Override.class]
[reading    java/lang/Class.class]
[writing    processing/test/partikel/APDEInternalLogBroadcasterUtil.class - #3]
[writing    processing/test/partikel/APDEInternalLogBroadcasterUtil$1.class - #4]
[writing    processing/test/partikel/APDEInternalLogBroadcasterUtil$APDEInternalConsoleStream.class - #5]
[writing    processing/test/partikel/APDEInternalLogBroadcasterUtil$APDEInternalExceptionHandler.class - #6]
[completed  /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/APDEInternalLogBroadcasterUtil.java - #2/2]
[2 units compiled]
[6 .class files generated]
----------
1. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/Partikel.java (at line 4)
import processing.data.*;
       ^^^^^^^^^^^^^^^
The import processing.data is never used
----------
2. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/Partikel.java (at line 5)
import processing.event.*;
       ^^^^^^^^^^^^^^^^
The import processing.event is never used
----------
3. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/Partikel.java (at line 6)
import processing.opengl.*;
       ^^^^^^^^^^^^^^^^^
The import processing.opengl is never used
----------
4. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/Partikel.java (at line 8)
import java.util.HashMap;
       ^^^^^^^^^^^^^^^^^
The import java.util.HashMap is never used
----------
5. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/Partikel.java (at line 9)
import java.util.ArrayList;
       ^^^^^^^^^^^^^^^^^^^
The import java.util.ArrayList is never used
----------
6. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/Partikel.java (at line 10)
import java.io.File;
       ^^^^^^^^^^^^
The import java.io.File is never used
----------
7. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/Partikel.java (at line 11)
import java.io.BufferedReader;
       ^^^^^^^^^^^^^^^^^^^^^^
The import java.io.BufferedReader is never used
----------
8. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/Partikel.java (at line 12)
import java.io.PrintWriter;
       ^^^^^^^^^^^^^^^^^^^
The import java.io.PrintWriter is never used
----------
9. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/Partikel.java (at line 13)
import java.io.InputStream;
       ^^^^^^^^^^^^^^^^^^^
The import java.io.InputStream is never used
----------
10. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/Partikel.java (at line 14)
import java.io.OutputStream;
       ^^^^^^^^^^^^^^^^^^^^
The import java.io.OutputStream is never used
----------
11. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/partikel/Partikel.java (at line 15)
import java.io.IOException;
       ^^^^^^^^^^^^^^^^^^^
The import java.io.IOException is never used
----------
11 problems (11 warnings)
Dexing with DX Dexer...

trouble writing output: already prepared
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/partikel/Partikel$Particle.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/partikel/Partikel.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/partikel/APDEInternalLogBroadcasterUtil.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/partikel/APDEInternalLogBroadcasterUtil$1.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/partikel/APDEInternalLogBroadcasterUtil$APDEInternalConsoleStream.class...
processing /data/data/com.calsignlabs.apde/app_build/bin/classes/./processing/test/partikel/APDEInternalLogBroadcasterUtil$APDEInternalExceptionHandler.class...
Merging DEX files with DX Merger...
Merged dex A (6 defs/6,2KiB) with dex B (151 defs/645,6KiB). Result is 157 defs/767,7KiB. Took 0,4s
Merged dex A (157 defs/767,7KiB) with dex B (2 defs/1,1KiB). Result is 159 defs/917,4KiB. Took 0,4s
Building APK file with APKBuilder...
APKBuilder failed
com.android.sdklib.build.ApkCreationException: java.io.FileNotFoundException: /data/data/com.calsignlabs.apde/app_build/bin/Partikel.apk.res does not exist
at com.android.sdklib.build.ApkBuilder.init(ApkBuilder.java:469)
at com.android.sdklib.build.ApkBuilder.<init>(ApkBuilder.java:396)
at com.calsignlabs.apde.build.Build.build(Build.java:930)
at com.calsignlabs.apde.EditorActivity$22.run(EditorActivity.java:2295)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.io.FileNotFoundException: /data/data/com.calsignlabs.apde/app_build/bin/Partikel.apk.res does not exist
at com.android.sdklib.build.ApkBuilder.checkInputFile(ApkBuilder.java:934)
at com.android.sdklib.build.ApkBuilder.init(ApkBuilder.java:438)
... 4 more
Calsign commented 9 years ago

The new release to the preview channel includes a change to help in solving this bug. If you have experienced this bug, then please join the preview channel and download the update. In the preview update, there should be an AAPT error code instead of the unhelpful error message reported in v0.3.2. The error code is the source of the problem. Please report the error code that you receive.

Calsign commented 9 years ago

I have released v0.3.3-pre2 to the Preview Channel, and it contains a fix that has worked for at least one person. Due to my newly acquired understanding of the nature of the bug, I am fairly certain that this should solve the problem for all users, but I will wait to close this issue until I hear back from a couple more people, just to be certain.

So if you want the fix, join the Preview Channel or wait for v0.3.3 to be pushed to all users, which should be happening soon.

RinSer commented 9 years ago
Initializing` build sequence...
Target: debug
Deleted old build folder
Pre-processing...
Injected log broadcaster
Writing AndroidManifest.xml...
Writing resources...
Copying Processing libraries...
Copying dexed Processing libraries...
Copying contributed libaries...
Copying data folder...
Detected architecture x86
Available cores: 4
Using position independent executable (PIE) AAPT binary
Copying AAPT...
Changing execution permissions for AAPT...
Copying GLSL shader files...

Packaging resources with AAPT...
/data/data/com.calsignlabs.apde/app_build/res/drawable-hdpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/data/data/com.calsignlabs.apde/app_build/res/drawable-xhdpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/data/data/com.calsignlabs.apde/app_build/res/drawable-ldpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
Compiling with ECJ...
Compiling: /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java
[parsing    /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java - #1/1]
[reading    processing/core/PApplet.class]
[reading    android/app/Activity.class]
[reading    android/view/ContextThemeWrapper.class]
[reading    android/content/ContextWrapper.class]
[reading    android/content/Context.class]
[reading    java/lang/Object.class]
[reading    android/content/ComponentCallbacks.class]
[reading    android/view/View$OnCreateContextMenuListener.class]
[reading    android/view/View.class]
[reading    android/view/KeyEvent$Callback.class]
[reading    android/view/KeyEvent.class]
[reading    android/os/Parcelable$Creator.class]
[reading    android/os/Parcelable.class]
[reading    android/view/Window$Callback.class]
[reading    android/view/Window.class]
[reading    android/view/LayoutInflater$Factory.class]
[reading    android/view/LayoutInflater.class]
[reading    java/lang/Runnable.class]
[reading    processing/core/PConstants.class]
[reading    java/lang/Thread.class]
[analyzing  /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java - #1/1]
[reading    java/util/ArrayList.class]
[reading    java/io/File.class]
[reading    java/io/FileInputStream.class]
[reading    java/io/FileNotFoundException.class]
[reading    java/io/IOException.class]
[reading    java/io/BufferedInputStream.class]
[reading    java/net/MalformedURLException.class]
[reading    java/net/URL.class]
[reading    android/content/res/Resources.class]
[reading    android/os/Bundle.class]
[reading    android/media/audiofx/Visualizer.class]
[reading    android/content/res/AssetFileDescriptor.class]
[reading    java/util/HashMap.class]
[reading    java/util/Map$Entry.class]
[reading    java/util/Map.class]
[reading    java/util/Map$Entry.class]
[reading    java/io/BufferedReader.class]
[reading    java/io/PrintWriter.class]
[reading    java/io/InputStream.class]
[reading    java/io/OutputStream.class]
[reading    processing/core/PImage.class]
[reading    java/lang/String.class]
[reading    android/content/res/Configuration.class]
[reading    android/content/res/Resources$Theme.class]
[reading    android/content/Intent.class]
[reading    android/content/IntentSender.class]
[reading    android/content/IntentSender$SendIntentException.class]
[reading    android/content/pm/PackageManager$NameNotFoundException.class]
[reading    android/content/pm/PackageManager.class]
[reading    android/net/Uri.class]
[reading    android/content/ComponentName.class]
[reading    android/content/ServiceConnection.class]
[reading    android/content/BroadcastReceiver.class]
[reading    android/os/Handler.class]
[reading    android/content/IntentFilter.class]
[reading    android/graphics/Bitmap.class]
[reading    android/graphics/drawable/Drawable.class]
[reading    android/database/sqlite/SQLiteDatabase.class]
[reading    android/database/sqlite/SQLiteDatabase$CursorFactory.class]
[reading    java/io/FileOutputStream.class]
[reading    android/content/SharedPreferences.class]
[reading    android/content/pm/ApplicationInfo.class]
[reading    java/lang/ClassLoader.class]
[reading    android/os/Looper.class]
[reading    android/content/ContentResolver.class]
[reading    android/content/res/AssetManager.class]
[reading    java/io/FilterInputStream.class]
[reading    java/lang/Exception.class]
[reading    java/lang/Throwable.class]
[reading    java/lang/System.class]
[reading    java/io/PrintStream.class]
[reading    java/util/Collection.class]
[reading    android/media/AudioFormat.class]
[reading    java/lang/Class.class]
[reading    java/util/AbstractList.class]
[reading    java/util/AbstractCollection.class]
[reading    java/lang/Float.class]
[reading    java/lang/Math.class]
[parsing    /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/APDEInternalLogBroadcasterUtil.java - #2/2]
[reading    java/lang/Thread$UncaughtExceptionHandler.class]
[reading    java/io/Flushable.class]
[reading    java/io/Closeable.class]
[reading    java/io/UnsupportedEncodingException.class]
[analyzing  /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/APDEInternalLogBroadcasterUtil.java - #2/2]
[reading    java/lang/Override.class]
[completed  /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java - #1/2]
[writing    processing/test/djtubedesktop/APDEInternalLogBroadcasterUtil.class - #1]
[writing    processing/test/djtubedesktop/APDEInternalLogBroadcasterUtil$1.class - #2]
[writing    processing/test/djtubedesktop/APDEInternalLogBroadcasterUtil$APDEInternalConsoleStream.class - #3]
[writing    processing/test/djtubedesktop/APDEInternalLogBroadcasterUtil$APDEInternalExceptionHandler.class - #4]
[completed  /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/APDEInternalLogBroadcasterUtil.java - #2/2]
[2 units compiled]

## [4 .class files generated]
1. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 16)
   import javax.sound.sampled.AudioFormat; 
          ^^^^^^^^^^^
   The import javax.sound cannot be resolved
   ----------
2. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 17)
   import javax.sound.sampled.AudioSystem; 
          ^^^^^^^^^^^
   The import javax.sound cannot be resolved
   ----------
3. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 18)
   import javax.sound.sampled.DataLine; 
          ^^^^^^^^^^^
   The import javax.sound cannot be resolved
   ----------
4. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 19)
   import javax.sound.sampled.LineUnavailableException; 
          ^^^^^^^^^^^
   The import javax.sound cannot be resolved
   ----------
5. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 20)
   import javax.sound.sampled.SourceDataLine; 
          ^^^^^^^^^^^
   The import javax.sound cannot be resolved
   ----------
6. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 21)
   import processing.core.*; 
          ^^^^^^^^^^^^^^^
   The import processing.core is never used
   ----------
7. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 22)
   import processing.data.*; 
          ^^^^^^^^^^^^^^^
   The import processing.data is never used
   ----------
8. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 23)
   import processing.event.*; 
          ^^^^^^^^^^^^^^^^
   The import processing.event is never used
   ----------
9. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 24)
   import processing.opengl.*; 
          ^^^^^^^^^^^^^^^^^
   The import processing.opengl is never used
   ----------
10. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 34)
    import java.util.ArrayList; 
           ^^^^^^^^^^^^^^^^^^^
    The import java.util.ArrayList is never used
    ----------
11. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 35)
    import java.io.File; 
           ^^^^^^^^^^^^
    The import java.io.File is never used
    ----------
12. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 40)
    import java.io.IOException; 
           ^^^^^^^^^^^^^^^^^^^
    The import java.io.IOException is never used
    ----------
13. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 698)
    private ArrayList audioGens;
            ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
    ----------
14. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 703)
    private SourceDataLine sourceDataLine;
            ^^^^^^^^^^^^^^
    SourceDataLine cannot be resolved to a type
    ----------
15. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 713)
    audioGens = new ArrayList();
                    ^^^^^^^^^
    ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
    ----------
16. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 718)
    AudioFormat audioFormat = new AudioFormat(samplingRate, 16, 1, true, false);
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    The constructor AudioFormat(float, int, int, boolean, boolean) is undefined
    ----------
17. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 719)
    DataLine.Info dataLineInfo = new DataLine.Info(SourceDataLine.class, audioFormat);
    ^^^^^^^^
    DataLine cannot be resolved to a type
    ----------
18. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 719)
    DataLine.Info dataLineInfo = new DataLine.Info(SourceDataLine.class, audioFormat);
                                     ^^^^^^^^
    DataLine cannot be resolved to a type
    ----------
19. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 719)
    DataLine.Info dataLineInfo = new DataLine.Info(SourceDataLine.class, audioFormat);
                                                   ^^^^^^^^^^^^^^
    SourceDataLine cannot be resolved to a type
    ----------
20. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 721)
    sourceDataLine = null;
    ^^^^^^^^^^^^^^
    SourceDataLine cannot be resolved to a type
    ----------
21. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 725)
    sourceDataLine = (SourceDataLine) AudioSystem.getLine(dataLineInfo);
    ^^^^^^^^^^^^^^
    SourceDataLine cannot be resolved to a type
    ----------
22. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 725)
    sourceDataLine = (SourceDataLine) AudioSystem.getLine(dataLineInfo);
                      ^^^^^^^^^^^^^^
    SourceDataLine cannot be resolved to a type
    ----------
23. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 725)
    sourceDataLine = (SourceDataLine) AudioSystem.getLine(dataLineInfo);
                                      ^^^^^^^^^^^
    AudioSystem cannot be resolved
    ----------
24. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 726)
    sourceDataLine.open(audioFormat, bOutput.length);
    ^^^^^^^^^^^^^^
    SourceDataLine cannot be resolved to a type
    ----------
25. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 727)
    sourceDataLine.start();
    ^^^^^^^^^^^^^^
    SourceDataLine cannot be resolved to a type
    ----------
26. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 729)
    } catch (LineUnavailableException lue) {
             ^^^^^^^^^^^^^^^^^^^^^^^^
    LineUnavailableException cannot be resolved to a type
    ----------
27. ERROR in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 767)
    sourceDataLine.write(shortsToBytes(bufferS, bOutput), 0, bOutput.length);
    ^^^^^^^^^^^^^^
    SourceDataLine cannot be resolved to a type
    ----------
28. WARNING in /data/data/com.calsignlabs.apde/app_build/src/processing/test/djtubedesktop/DJTubeDesktop.java (at line 772)
    audioGens.add(ag);
    ^^^^^^^^^^^^^^^^^
    Type safety: The method add(Object) belongs to the raw type ArrayList. References to generic type ArrayList<E> should be parameterized
    ----------
    28 problems (18 errors, 10 warnings)
    Compilation with ECJ failed
RinSer commented 9 years ago

Hello

Seems to be the same old bug. Is it possible to fix it? I use your app on Asus Zenfone Android 4.4.2

Calsign commented 9 years ago

@RinSer This seems to be a different problem than the one described by the other users in this bug report. If so, this discussion would be best moved to a new issue.

As far as I can tell, the relevant error message is here:

The import javax.sound cannot be resolved

The Java Sound API is not available on Android, so if your desktop sketch makes use of it, it will not work properly in APDE (which uses Android mode). Is this your problem?

RinSer commented 9 years ago

Hello

Yes, you are right. When I build this sketch without sounds everything works properly. The issue is Maxim library. I have to use it, because it is an assignment on the course. Maybe you can advise me some alternative library for audio processing on Android? Thank you.

четверг, 13 августа 2015 г. пользователь William Smith написал:

@RinSer https://github.com/RinSer This seems to be a different problem than the one described by the other users in this bug report. If so, this discussion would be best moved to a new issue.

As far as I can tell, the relevant error message is here:

The import javax.sound cannot be resolved

The Java Sound API is not available on Android, so if your desktop sketch makes use of it, it will not work properly in APDE (which uses Android mode). Is this your problem?

— Reply to this email directly or view it on GitHub https://github.com/Calsign/APDE/issues/10#issuecomment-130509948.

SanBax commented 8 years ago

Initializing build sequence... Target: debug Deleted old build folder Pre-processing... Injected log broadcaster Writing AndroidManifest.xml... Writing resources... Copying Processing libraries... Copying dexed Processing libraries... Copying contributed libaries... Copying data folder... Detected architecture armeabi-v7a Available cores: 2 Using position independent executable (PIE) AAPT binary Copying AAPT... Changing execution permissions for AAPT... Copying GLSL shader files...

Packaging resources with AAPT... AAPT exited with error code 7

s-mv commented 6 years ago

I imported Ketaki library, and suddenly, the issue was back

Calsign commented 6 years ago

@ShreerangV Which version of APDE are you using? This error is probably due to incompatibilities between the versions of APDE and Ketai. v0.4.0 needs to use the older version of Ketai, v0.5.0-preX can use the newest one.

Your best bet is probably to join the preview channel and follow the instructions in the pinned post to get v0.5.0. This version will also provide the AAPT error logs if it keeps failing when you enable build verbose output.

s-mv commented 6 years ago

Thanks!

On Wed, Jun 6, 2018, 21:03 William Smith notifications@github.com wrote:

@ShreerangV https://github.com/ShreerangV Which version of APDE are you using? This error is probably due to incompatibilities between the versions of APDE and Ketai. v0.4.0 needs to use the older version of Ketai, v0.5.0-preX can use the newest one.

Your best bet is probably to join the preview channel https://plus.google.com/communities/117703520591262292626 and follow the instructions in the pinned post to get v0.5.0. This version will also provide the AAPT error logs if it keeps failing when you enable build verbose output.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Calsign/APDE/issues/10#issuecomment-395112641, or mute the thread https://github.com/notifications/unsubscribe-auth/AfDeEkuRiWgKmoxWJqZOL4hA-S6BuuFVks5t5_ZmgaJpZM4DY-ZE .

Calsign commented 6 years ago

I have received a report from one user experiencing this issue. With the help of the AAPT error logs reported by v0.5.x, it was determined that the manifest file was causing the problem. If you encounter this issue it may be worth renaming AndroidManifest.xml (and then re-adding the permissions and other manifest customizations to the newly generated file) to see if the AAPT failure disappears.