grzegorznittner / chanu

Chanu - 4chan for Android
https://play.google.com/store/apps/details?id=com.chanapps.four.activity
GNU General Public License v3.0
74 stars 32 forks source link

Build Issues (src does not exist/package errors) #417

Closed yate closed 10 years ago

yate commented 10 years ago

I'm having build issues following the directions in the README. I notice there are two Gallery2 projects. One inside app that has source folders and another in the top level that has build files. It tries to build the one without the source folders so it fails. If I copy the source directories into the one its building, it fails with unknown package errors. Can you give me any pointers on what I'm doing wrong?

Buildfile: /home/yate/workspace/chanu/app/build.xml

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 23.0.2
 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup:
     [echo] Project Name: 4channer
  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
     [echo] Resolving Build Target for 4channer...
[gettarget] Project Target:   Android 4.4.2
[gettarget] API level:        19
     [echo] ----------
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Resolving Dependencies for 4channer...
[dependency] Library dependencies:
[dependency] 
[dependency] ------------------
[dependency] Ordered libraries:
[dependency] 
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'debug'...

nodeps:

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 23.0.2
 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup:
     [echo] Project Name: ActionBar_PullToRefresh
  [gettype] Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
     [echo] Resolving Build Target for ActionBar_PullToRefresh...
[gettarget] Project Target:   Android 4.4.2
[gettarget] API level:        19
[gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions.
     [echo] ----------
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Resolving Dependencies for ActionBar_PullToRefresh...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] 
[dependency] ------------------

-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] No changed resources. R.java and Manifest.java untouched.
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.

-pre-compile:

-compile:
     [echo] Creating library output jar file...

-post-compile:

-obfuscate:

-dex:
     [echo] Library project: do not convert bytecode...

-crunch:
   [crunch] Crunching PNG Files in source dir: /home/yate/workspace/chanu/ActionBar-PullToRefresh/res
   [crunch] To destination dir: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/res
   [crunch] Crunched 0 PNG files to update cache

-package-resources:
     [echo] Library project: do not package resources...

-package:
     [echo] Library project: do not package apk...

-post-package:

-do-debug:
     [echo] Library project: do not create apk...
[propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop
[propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop
[propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop
[propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop

-post-build:

debug:

nodeps:

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 23.0.2
 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup:
     [echo] Project Name: Gallery2
  [gettype] Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
     [echo] Resolving Build Target for Gallery2...
[gettarget] Project Target:   Android 4.4.2
[gettarget] API level:        19
     [echo] ----------
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Resolving Dependencies for Gallery2...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] 
[dependency] ------------------

-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
     [echo] Handling aidl files...

BUILD FAILED
/home/yate/adt-bundle/sdk/tools/ant/build.xml:601: The following error occurred while executing this line:
/home/yate/adt-bundle/sdk/tools/ant/build.xml:653: The following error occurred while executing this line:
/home/yate/adt-bundle/sdk/tools/ant/build.xml:659: /home/yate/workspace/chanu/Gallery2/src does not exist.

Total time: 3 seconds

After I've copied the source folders

Buildfile: /home/yate/workspace/chanu/app/build.xml

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 23.0.2
 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup:
     [echo] Project Name: 4channer
  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
     [echo] Resolving Build Target for 4channer...
[gettarget] Project Target:   Android 4.4.2
[gettarget] API level:        19
     [echo] ----------
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Resolving Dependencies for 4channer...
[dependency] Library dependencies:
[dependency] 
[dependency] ------------------
[dependency] Ordered libraries:
[dependency] 
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'debug'...

nodeps:

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 23.0.2
 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup:
     [echo] Project Name: ActionBar_PullToRefresh
  [gettype] Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
     [echo] Resolving Build Target for ActionBar_PullToRefresh...
[gettarget] Project Target:   Android 4.4.2
[gettarget] API level:        19
[gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions.
     [echo] ----------
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Resolving Dependencies for ActionBar_PullToRefresh...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] 
[dependency] ------------------

-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] No changed resources. R.java and Manifest.java untouched.
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.

-pre-compile:

-compile:
     [echo] Creating library output jar file...

-post-compile:

-obfuscate:

-dex:
     [echo] Library project: do not convert bytecode...

-crunch:
   [crunch] Crunching PNG Files in source dir: /home/yate/workspace/chanu/ActionBar-PullToRefresh/res
   [crunch] To destination dir: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/res
   [crunch] Crunched 0 PNG files to update cache

-package-resources:
     [echo] Library project: do not package resources...

-package:
     [echo] Library project: do not package apk...

-post-package:

-do-debug:
     [echo] Library project: do not create apk...
[propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop
[propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop
[propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop
[propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop

-post-build:

debug:

nodeps:

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 23.0.2
 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup:
     [echo] Project Name: Gallery2
  [gettype] Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
     [echo] Resolving Build Target for Gallery2...
[gettarget] Project Target:   Android 4.4.2
[gettarget] API level:        19
     [echo] ----------
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Resolving Dependencies for Gallery2...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] 
[dependency] ------------------

-code-gen:
[mergemanifest] Found new input file
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Found new input file
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 268 source files to /home/yate/workspace/chanu/Gallery2/bin/classes
    [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/anim/AlphaAnimation.java:19: error: package com.android.gallery3d.common does not exist
    [javac] import com.android.gallery3d.common.Utils;
    [javac]                                    ^
    [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/anim/Animation.java:19: error: package com.android.gallery3d.common does not exist
    [javac] import com.android.gallery3d.common.Utils;
    [javac]                                    ^
    [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/ui/GLPaint.java:19: error: package com.android.gallery3d.common does not exist
    [javac] import com.android.gallery3d.common.Utils;
    [javac]                                    ^
    [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/ui/BasicTexture.java:19: error: package com.android.gallery3d.common does not exist
    [javac] import com.android.gallery3d.common.Utils;
    [javac]                                    ^
    [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/app/GalleryActivity.java:23: error: package com.chanapps.four.activity does not exist
    [javac] import com.chanapps.four.activity.ChanActivityId;
    [javac]                                  ^
    [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/ui/GLRootView.java:23: error: package com.android.gallery3d.common does not exist
.
.
.
. a lot more like this

BUILD FAILED
/home/yate/adt-bundle/sdk/tools/ant/build.xml:601: The following error occurred while executing this line:
/home/yate/adt-bundle/sdk/tools/ant/build.xml:720: The following error occurred while executing this line:
/home/yate/adt-bundle/sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.

Total time: 8 seconds
johnarleyburns commented 10 years ago

Don't copy any source files. First cd into Gallery2 at the top level and build. Then go back to the app folder and build. That should work. On Jul 23, 2014 5:57 PM, "yate" notifications@github.com wrote:

I'm having build issues following the directions in the README. I notice there are two Gallery2 projects. One inside app that has source folders and another in the top level that has build files. It tries to build the one without the source folders so it fails. If I copy the source directories into the one its building, it fails with unknown package errors. Can you give me any pointers on what I'm doing wrong?

Buildfile: /home/yate/workspace/chanu/app/build.xml

-set-mode-check:

-set-debug-files:

-check-env: [checkenv] Android SDK Tools Revision 23.0.2 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup: [echo] Project Name: 4channer [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup: [getbuildtools] Using latest Build Tools: 20.0.0 [echo] Resolving Build Target for 4channer... [gettarget] Project Target: Android 4.4.2 [gettarget] API level: 19 [echo] ---------- [echo] Creating output directories if needed... [echo] ---------- [echo] Resolving Dependencies for 4channer... [dependency] Library dependencies: [dependency] [dependency] ------------------ [dependency] Ordered libraries: [dependency] [dependency] ------------------ [echo] ---------- [echo] Building Libraries with 'debug'...

nodeps:

-set-mode-check:

-set-debug-files:

-check-env: [checkenv] Android SDK Tools Revision 23.0.2 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup: [echo] Project Name: ActionBar_PullToRefresh [gettype] Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup: [getbuildtools] Using latest Build Tools: 20.0.0 [echo] Resolving Build Target for ActionBar_PullToRefresh... [gettarget] Project Target: Android 4.4.2 [gettarget] API level: 19 [gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions. [echo] ---------- [echo] Creating output directories if needed... [echo] ---------- [echo] Resolving Dependencies for ActionBar_PullToRefresh... [dependency] Library dependencies: [dependency] No Libraries [dependency] [dependency] ------------------

-code-gen: [mergemanifest] No changes in the AndroidManifest files. [echo] Handling aidl files... [aidl] No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [echo] ---------- [echo] Handling Resources... [aapt] No changed resources. R.java and Manifest.java untouched. [echo] ---------- [echo] Handling BuildConfig class... [buildconfig] No need to generate new BuildConfig.

-pre-compile:

-compile: [echo] Creating library output jar file...

-post-compile:

-obfuscate:

-dex: [echo] Library project: do not convert bytecode...

-crunch: [crunch] Crunching PNG Files in source dir: /home/yate/workspace/chanu/ActionBar-PullToRefresh/res [crunch] To destination dir: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/res [crunch] Crunched 0 PNG files to update cache

-package-resources: [echo] Library project: do not package resources...

-package: [echo] Library project: do not package apk...

-post-package:

-do-debug: [echo] Library project: do not create apk... [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop

-post-build:

debug:

nodeps:

-set-mode-check:

-set-debug-files:

-check-env: [checkenv] Android SDK Tools Revision 23.0.2 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup: [echo] Project Name: Gallery2 [gettype] Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup: [getbuildtools] Using latest Build Tools: 20.0.0 [echo] Resolving Build Target for Gallery2... [gettarget] Project Target: Android 4.4.2 [gettarget] API level: 19 [echo] ---------- [echo] Creating output directories if needed... [echo] ---------- [echo] Resolving Dependencies for Gallery2... [dependency] Library dependencies: [dependency] No Libraries [dependency] [dependency] ------------------

-code-gen: [mergemanifest] No changes in the AndroidManifest files. [echo] Handling aidl files...

BUILD FAILED /home/yate/adt-bundle/sdk/tools/ant/build.xml:601: The following error occurred while executing this line: /home/yate/adt-bundle/sdk/tools/ant/build.xml:653: The following error occurred while executing this line: /home/yate/adt-bundle/sdk/tools/ant/build.xml:659: /home/yate/workspace/chanu/Gallery2/src does not exist.

Total time: 3 seconds

After I've copied the source folders

Buildfile: /home/yate/workspace/chanu/app/build.xml

-set-mode-check:

-set-debug-files:

-check-env: [checkenv] Android SDK Tools Revision 23.0.2 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup: [echo] Project Name: 4channer [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup: [getbuildtools] Using latest Build Tools: 20.0.0 [echo] Resolving Build Target for 4channer... [gettarget] Project Target: Android 4.4.2 [gettarget] API level: 19 [echo] ---------- [echo] Creating output directories if needed... [echo] ---------- [echo] Resolving Dependencies for 4channer... [dependency] Library dependencies: [dependency] [dependency] ------------------ [dependency] Ordered libraries: [dependency] [dependency] ------------------ [echo] ---------- [echo] Building Libraries with 'debug'...

nodeps:

-set-mode-check:

-set-debug-files:

-check-env: [checkenv] Android SDK Tools Revision 23.0.2 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup: [echo] Project Name: ActionBar_PullToRefresh [gettype] Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup: [getbuildtools] Using latest Build Tools: 20.0.0 [echo] Resolving Build Target for ActionBar_PullToRefresh... [gettarget] Project Target: Android 4.4.2 [gettarget] API level: 19 [gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions. [echo] ---------- [echo] Creating output directories if needed... [echo] ---------- [echo] Resolving Dependencies for ActionBar_PullToRefresh... [dependency] Library dependencies: [dependency] No Libraries [dependency] [dependency] ------------------

-code-gen: [mergemanifest] No changes in the AndroidManifest files. [echo] Handling aidl files... [aidl] No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [echo] ---------- [echo] Handling Resources... [aapt] No changed resources. R.java and Manifest.java untouched. [echo] ---------- [echo] Handling BuildConfig class... [buildconfig] No need to generate new BuildConfig.

-pre-compile:

-compile: [echo] Creating library output jar file...

-post-compile:

-obfuscate:

-dex: [echo] Library project: do not convert bytecode...

-crunch: [crunch] Crunching PNG Files in source dir: /home/yate/workspace/chanu/ActionBar-PullToRefresh/res [crunch] To destination dir: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/res [crunch] Crunched 0 PNG files to update cache

-package-resources: [echo] Library project: do not package resources...

-package: [echo] Library project: do not package apk...

-post-package:

-do-debug: [echo] Library project: do not create apk... [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop

-post-build:

debug:

nodeps:

-set-mode-check:

-set-debug-files:

-check-env: [checkenv] Android SDK Tools Revision 23.0.2 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup: [echo] Project Name: Gallery2 [gettype] Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup: [getbuildtools] Using latest Build Tools: 20.0.0 [echo] Resolving Build Target for Gallery2... [gettarget] Project Target: Android 4.4.2 [gettarget] API level: 19 [echo] ---------- [echo] Creating output directories if needed... [echo] ---------- [echo] Resolving Dependencies for Gallery2... [dependency] Library dependencies: [dependency] No Libraries [dependency] [dependency] ------------------

-code-gen: [mergemanifest] Found new input file [mergemanifest] Merging AndroidManifest files into one. [mergemanifest] Manifest merger disabled. Using project manifest only. [echo] Handling aidl files... [aidl] No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [echo] ---------- [echo] Handling Resources... [aapt] Found new input file [aapt] Generating resource IDs... [echo] ---------- [echo] Handling BuildConfig class... [buildconfig] Generating BuildConfig class.

-pre-compile:

-compile: [javac] Compiling 268 source files to /home/yate/workspace/chanu/Gallery2/bin/classes [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/anim/AlphaAnimation.java:19: error: package com.android.gallery3d.common does not exist [javac] import com.android.gallery3d.common.Utils; [javac] ^ [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/anim/Animation.java:19: error: package com.android.gallery3d.common does not exist [javac] import com.android.gallery3d.common.Utils; [javac] ^ [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/ui/GLPaint.java:19: error: package com.android.gallery3d.common does not exist [javac] import com.android.gallery3d.common.Utils; [javac] ^ [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/ui/BasicTexture.java:19: error: package com.android.gallery3d.common does not exist [javac] import com.android.gallery3d.common.Utils; [javac] ^ [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/app/GalleryActivity.java:23: error: package com.chanapps.four.activity does not exist [javac] import com.chanapps.four.activity.ChanActivityId; [javac] ^ [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/ui/GLRootView.java:23: error: package com.android.gallery3d.common does not exist . . . . a lot more like this

BUILD FAILED /home/yate/adt-bundle/sdk/tools/ant/build.xml:601: The following error occurred while executing this line: /home/yate/adt-bundle/sdk/tools/ant/build.xml:720: The following error occurred while executing this line: /home/yate/adt-bundle/sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.

Total time: 8 seconds

— Reply to this email directly or view it on GitHub https://github.com/grzegorznittner/chanu/issues/417.

grzegorznittner commented 10 years ago

Don't copy any source files. First cd into Gallery2 at the top level and build. Then go back to the app folder and build. That should work.

Those are libraries used by main project.

On Thu, Jul 24, 2014 at 12:57 AM, yate notifications@github.com wrote:

I'm having build issues following the directions in the README. I notice there are two Gallery2 projects. One inside app that has source folders and another in the top level that has build files. It tries to build the one without the source folders so it fails. If I copy the source directories into the one its building, it fails with unknown package errors. Can you give me any pointers on what I'm doing wrong?

Buildfile: /home/yate/workspace/chanu/app/build.xml

-set-mode-check:

-set-debug-files:

-check-env: [checkenv] Android SDK Tools Revision 23.0.2 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup: [echo] Project Name: 4channer [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup: [getbuildtools] Using latest Build Tools: 20.0.0 [echo] Resolving Build Target for 4channer... [gettarget] Project Target: Android 4.4.2 [gettarget] API level: 19 [echo] ---------- [echo] Creating output directories if needed... [echo] ---------- [echo] Resolving Dependencies for 4channer... [dependency] Library dependencies: [dependency] [dependency] ------------------ [dependency] Ordered libraries: [dependency] [dependency] ------------------ [echo] ---------- [echo] Building Libraries with 'debug'...

nodeps:

-set-mode-check:

-set-debug-files:

-check-env: [checkenv] Android SDK Tools Revision 23.0.2 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup: [echo] Project Name: ActionBar_PullToRefresh [gettype] Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup: [getbuildtools] Using latest Build Tools: 20.0.0 [echo] Resolving Build Target for ActionBar_PullToRefresh... [gettarget] Project Target: Android 4.4.2 [gettarget] API level: 19 [gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions. [echo] ---------- [echo] Creating output directories if needed... [echo] ---------- [echo] Resolving Dependencies for ActionBar_PullToRefresh... [dependency] Library dependencies: [dependency] No Libraries [dependency] [dependency] ------------------

-code-gen: [mergemanifest] No changes in the AndroidManifest files. [echo] Handling aidl files... [aidl] No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [echo] ---------- [echo] Handling Resources... [aapt] No changed resources. R.java and Manifest.java untouched. [echo] ---------- [echo] Handling BuildConfig class... [buildconfig] No need to generate new BuildConfig.

-pre-compile:

-compile: [echo] Creating library output jar file...

-post-compile:

-obfuscate:

-dex: [echo] Library project: do not convert bytecode...

-crunch: [crunch] Crunching PNG Files in source dir: /home/yate/workspace/chanu/ActionBar-PullToRefresh/res [crunch] To destination dir: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/res [crunch] Crunched 0 PNG files to update cache

-package-resources: [echo] Library project: do not package resources...

-package: [echo] Library project: do not package apk...

-post-package:

-do-debug: [echo] Library project: do not create apk... [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop

-post-build:

debug:

nodeps:

-set-mode-check:

-set-debug-files:

-check-env: [checkenv] Android SDK Tools Revision 23.0.2 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup: [echo] Project Name: Gallery2 [gettype] Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup: [getbuildtools] Using latest Build Tools: 20.0.0 [echo] Resolving Build Target for Gallery2... [gettarget] Project Target: Android 4.4.2 [gettarget] API level: 19 [echo] ---------- [echo] Creating output directories if needed... [echo] ---------- [echo] Resolving Dependencies for Gallery2... [dependency] Library dependencies: [dependency] No Libraries [dependency] [dependency] ------------------

-code-gen: [mergemanifest] No changes in the AndroidManifest files. [echo] Handling aidl files...

BUILD FAILED /home/yate/adt-bundle/sdk/tools/ant/build.xml:601: The following error occurred while executing this line: /home/yate/adt-bundle/sdk/tools/ant/build.xml:653: The following error occurred while executing this line: /home/yate/adt-bundle/sdk/tools/ant/build.xml:659: /home/yate/workspace/chanu/Gallery2/src does not exist.

Total time: 3 seconds

After I've copied the source folders

Buildfile: /home/yate/workspace/chanu/app/build.xml

-set-mode-check:

-set-debug-files:

-check-env: [checkenv] Android SDK Tools Revision 23.0.2 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup: [echo] Project Name: 4channer [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup: [getbuildtools] Using latest Build Tools: 20.0.0 [echo] Resolving Build Target for 4channer... [gettarget] Project Target: Android 4.4.2 [gettarget] API level: 19 [echo] ---------- [echo] Creating output directories if needed... [echo] ---------- [echo] Resolving Dependencies for 4channer... [dependency] Library dependencies: [dependency] [dependency] ------------------ [dependency] Ordered libraries: [dependency] [dependency] ------------------ [echo] ---------- [echo] Building Libraries with 'debug'...

nodeps:

-set-mode-check:

-set-debug-files:

-check-env: [checkenv] Android SDK Tools Revision 23.0.2 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup: [echo] Project Name: ActionBar_PullToRefresh [gettype] Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup: [getbuildtools] Using latest Build Tools: 20.0.0 [echo] Resolving Build Target for ActionBar_PullToRefresh... [gettarget] Project Target: Android 4.4.2 [gettarget] API level: 19 [gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions. [echo] ---------- [echo] Creating output directories if needed... [echo] ---------- [echo] Resolving Dependencies for ActionBar_PullToRefresh... [dependency] Library dependencies: [dependency] No Libraries [dependency] [dependency] ------------------

-code-gen: [mergemanifest] No changes in the AndroidManifest files. [echo] Handling aidl files... [aidl] No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [echo] ---------- [echo] Handling Resources... [aapt] No changed resources. R.java and Manifest.java untouched. [echo] ---------- [echo] Handling BuildConfig class... [buildconfig] No need to generate new BuildConfig.

-pre-compile:

-compile: [echo] Creating library output jar file...

-post-compile:

-obfuscate:

-dex: [echo] Library project: do not convert bytecode...

-crunch: [crunch] Crunching PNG Files in source dir: /home/yate/workspace/chanu/ActionBar-PullToRefresh/res [crunch] To destination dir: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/res [crunch] Crunched 0 PNG files to update cache

-package-resources: [echo] Library project: do not package resources...

-package: [echo] Library project: do not package apk...

-post-package:

-do-debug: [echo] Library project: do not create apk... [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop [propertyfile] Updating property file: /home/yate/workspace/chanu/ActionBar-PullToRefresh/bin/build.prop

-post-build:

debug:

nodeps:

-set-mode-check:

-set-debug-files:

-check-env: [checkenv] Android SDK Tools Revision 23.0.2 [checkenv] Installed at /home/yate/adt-bundle/sdk

-setup: [echo] Project Name: Gallery2 [gettype] Project Type: Android Library

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup: [getbuildtools] Using latest Build Tools: 20.0.0 [echo] Resolving Build Target for Gallery2... [gettarget] Project Target: Android 4.4.2 [gettarget] API level: 19 [echo] ---------- [echo] Creating output directories if needed... [echo] ---------- [echo] Resolving Dependencies for Gallery2... [dependency] Library dependencies: [dependency] No Libraries [dependency] [dependency] ------------------

-code-gen: [mergemanifest] Found new input file [mergemanifest] Merging AndroidManifest files into one. [mergemanifest] Manifest merger disabled. Using project manifest only. [echo] Handling aidl files... [aidl] No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [echo] ---------- [echo] Handling Resources... [aapt] Found new input file [aapt] Generating resource IDs... [echo] ---------- [echo] Handling BuildConfig class... [buildconfig] Generating BuildConfig class.

-pre-compile:

-compile: [javac] Compiling 268 source files to /home/yate/workspace/chanu/Gallery2/bin/classes [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/anim/AlphaAnimation.java:19: error: package com.android.gallery3d.common does not exist [javac] import com.android.gallery3d.common.Utils; [javac] ^ [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/anim/Animation.java:19: error: package com.android.gallery3d.common does not exist [javac] import com.android.gallery3d.common.Utils; [javac] ^ [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/ui/GLPaint.java:19: error: package com.android.gallery3d.common does not exist [javac] import com.android.gallery3d.common.Utils; [javac] ^ [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/ui/BasicTexture.java:19: error: package com.android.gallery3d.common does not exist [javac] import com.android.gallery3d.common.Utils; [javac] ^ [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/app/GalleryActivity.java:23: error: package com.chanapps.four.activity does not exist [javac] import com.chanapps.four.activity.ChanActivityId; [javac] ^ [javac] /home/yate/workspace/chanu/Gallery2/src/com/android/gallery3d/ui/GLRootView.java:23: error: package com.android.gallery3d.common does not exist . . . . a lot more like this

BUILD FAILED /home/yate/adt-bundle/sdk/tools/ant/build.xml:601: The following error occurred while executing this line: /home/yate/adt-bundle/sdk/tools/ant/build.xml:720: The following error occurred while executing this line: /home/yate/adt-bundle/sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.

Total time: 8 seconds

— Reply to this email directly or view it on GitHub https://github.com/grzegorznittner/chanu/issues/417.

yate commented 10 years ago

Thank you, I'm still getting issues after going into Gallery2 and building from there. Do I need to add an ant.properties file to point to the other Gallery2 src directory?

BUILD FAILED
/home/yate/adt-bundle/sdk/tools/ant/build.xml:653: The following error occurred while executing this line:
/home/yate/adt-bundle/sdk/tools/ant/build.xml:659: /home/yate/workspace/chanu/Gallery2/src does not exist.
johnarleyburns commented 10 years ago

Are you building from the command line or within eclipse? Try these commands:

cd chanu cd Gallery2 ant release cd ../app ant release

On Thu, Jul 24, 2014 at 11:33 AM, yate notifications@github.com wrote:

Thank you, I'm still getting issues after going into Gallery2 and building from there. Do I need to add an ant.properties file to point to the other Gallery2 src directory?

BUILD FAILED /home/yate/adt-bundle/sdk/tools/ant/build.xml:653: The following error occurred while executing this line: /home/yate/adt-bundle/sdk/tools/ant/build.xml:659: /home/yate/workspace/chanu/Gallery2/src does not exist.

— Reply to this email directly or view it on GitHub https://github.com/grzegorznittner/chanu/issues/417#issuecomment-50043246 .

yate commented 10 years ago

I'm building from the command line. I'm still get the same error building Gallery2 with ant release, I removed and cloned my fork to start fresh as well.

BUILD FAILED
/home/yate/adt-bundle/sdk/tools/ant/build.xml:653: The following error occurred while executing this line:
/home/yate/adt-bundle/sdk/tools/ant/build.xml:659: /home/yate/workspace/chanu/Gallery2/src does not exist.

Total time: 1 second
johnarleyburns commented 10 years ago

Let me see if I can reproduce.

On Thu, Jul 24, 2014 at 6:37 PM, yate notifications@github.com wrote:

I'm building from the command line. I'm still get the same error building Gallery2 with ant release, I removed and cloned my fork to start fresh as well.

BUILD FAILED /home/yate/adt-bundle/sdk/tools/ant/build.xml:653: The following error occurred while executing this line: /home/yate/adt-bundle/sdk/tools/ant/build.xml:659: /home/yate/workspace/chanu/Gallery2/src does not exist.

Total time: 1 second

— Reply to this email directly or view it on GitHub https://github.com/grzegorznittner/chanu/issues/417#issuecomment-50092150 .

johnarleyburns commented 10 years ago

Okay I think the problem may be, you need to be on the "ui-experimental" branch. That's actually the master. So switch to that branch, go to Gallery2, ant release, then back to app, ant release, see if that works.

On Thu, Jul 24, 2014 at 6:39 PM, John Arley Burns johnarleyburns@gmail.com wrote:

Let me see if I can reproduce.

On Thu, Jul 24, 2014 at 6:37 PM, yate notifications@github.com wrote:

I'm building from the command line. I'm still get the same error building Gallery2 with ant release, I removed and cloned my fork to start fresh as well.

BUILD FAILED /home/yate/adt-bundle/sdk/tools/ant/build.xml:653: The following error occurred while executing this line: /home/yate/adt-bundle/sdk/tools/ant/build.xml:659: /home/yate/workspace/chanu/Gallery2/src does not exist.

Total time: 1 second

— Reply to this email directly or view it on GitHub https://github.com/grzegorznittner/chanu/issues/417#issuecomment-50092150 .

yate commented 10 years ago

Hmm, unfortunately I am on the ui-experimental branch. Were you able to reproduce?

yate commented 10 years ago

After getting rid of the duplicate classpaths I was able to import the app, Gallery2, and ActionBar-PullToRefresh projects into eclipse and build the apk. Are you using eclipse for primary development? Maybe the readme should be updated to include how to build with eclipse?

johnarleyburns commented 10 years ago

yes if you could update the readme it would help others On Jul 27, 2014 12:37 AM, "yate" notifications@github.com wrote:

After getting rid of the duplicate classpaths I was able to import the app, Gallery2, and ActionBar-PullToRefresh projects into eclipse and build the apk. Are you using eclipse for primary development? Maybe the readme should be updated to include how to build with eclipse?

— Reply to this email directly or view it on GitHub https://github.com/grzegorznittner/chanu/issues/417#issuecomment-50256488 .

yate commented 10 years ago

Sounds good, I updated my pull request.

johnarleyburns commented 10 years ago

i think we should merge ui experimental into master, to avoid confusing people On Sep 12, 2014 1:43 PM, "yate" notifications@github.com wrote:

Closed #417 https://github.com/grzegorznittner/chanu/issues/417.

— Reply to this email directly or view it on GitHub https://github.com/grzegorznittner/chanu/issues/417#event-164910995.

yate commented 10 years ago

I agree with that.