Appverse / Nativescript-NG2-Showcase

This is a showcase application that try to make easy to learn how to use common components with Angular 2
20 stars 4 forks source link

File path too long on Windows #1

Closed LakshmiEvana closed 8 years ago

LakshmiEvana commented 8 years ago

Giving error on tns run android as below \Nativescript-NG2-Showcase-master\Nativescript-NG2-Showc ase-master\platforms\android\gradlew.bat failed with exit code 1

aecz commented 8 years ago

Please execute "gradlew.bat buildapk --stacktrace --info" and paste the error here. Also on which system are you ? Thanks.

LakshmiEvana commented 8 years ago

Iam Working On Windows Machine -nstrial-release\jars\classes.jar E:\Native Script\Nativescript-NG2-Showcase-mas ter\Nativescript-NG2-Showcase-master\platforms\android\build\intermediates\explo ded-aar\Input-2016.2.811-nstrial-release\jars\classes.jar E:\Native Script\Nativ escript-NG2-Showcase-master\Nativescript-NG2-Showcase-master\platforms\android\b uild\intermediates\exploded-aar\List-2016.2.811-nstrial-release\jars\classes.jar E:\Native Script\Nativescript-NG2-Showcase-master\Nativescript-NG2-Showcase-mas ter\platforms\android\build\intermediates\exploded-aar\Primitives-2016.2.811-nst rial-release\jars\classes.jar E:\Native Script\Nativescript-NG2-Showcase-master\ Nativescript-NG2-Showcase-master\platforms\android\build\intermediates\exploded- aar\showcase\runtime\unspecified\jars\classes.jar E:\Native Script\Nativescript- NG2-Showcase-master\Nativescript-NG2-Showcase-master\platforms\android\build\int ermediates\exploded-aar\showcase\runtime\unspecified\jars\libs\binding-generator .jar E:\Native Script\Nativescript-NG2-Showcase-master\Nativescript-NG2-Showcase -master\platforms\android\build\intermediates\exploded-aar\widgets-release\jars\ classes.jar Successfully started process 'command 'C:\Program Files\Java\jdk1.8.0_102\bin\ja va.exe'' :asbg:generateBindings (Thread[main,5,main]) completed. Took 6.793 secs. :mergeF0F1F2F3F4DebugShaders (Thread[main,5,main]) started. :mergeF0F1F2F3F4DebugShaders Skipping task ':mergeF0F1F2F3F4DebugShaders' as it is up-to-date (took 0.011 sec s). :mergeF0F1F2F3F4DebugShaders UP-TO-DATE :mergeF0F1F2F3F4DebugShaders (Thread[main,5,main]) completed. Took 0.03 secs. :compileF0F1F2F3F4DebugShaders (Thread[main,5,main]) started. :compileF0F1F2F3F4DebugShaders Skipping task ':compileF0F1F2F3F4DebugShaders' as it is up-to-date (took 0.013 s ecs). :compileF0F1F2F3F4DebugShaders UP-TO-DATE :compileF0F1F2F3F4DebugShaders (Thread[main,5,main]) completed. Took 0.022 secs.

:generateF0F1F2F3F4DebugAssets (Thread[main,5,main]) started. :generateF0F1F2F3F4DebugAssets Skipping task ':generateF0F1F2F3F4DebugAssets' as it has no actions. :generateF0F1F2F3F4DebugAssets UP-TO-DATE :generateF0F1F2F3F4DebugAssets (Thread[main,5,main]) completed. Took 0.006 secs.

:mergeF0F1F2F3F4DebugAssets (Thread[main,5,main]) started. :mergeF0F1F2F3F4DebugAssets Skipping task ':mergeF0F1F2F3F4DebugAssets' as it is up-to-date (took 5.311 secs ). :mergeF0F1F2F3F4DebugAssets UP-TO-DATE :mergeF0F1F2F3F4DebugAssets (Thread[main,5,main]) completed. Took 5.343 secs. :generateF0F1F2F3F4DebugResValues (Thread[main,5,main]) started. :generateF0F1F2F3F4DebugResValues Skipping task ':generateF0F1F2F3F4DebugResValues' as it is up-to-date (took 0.00 2 secs). :generateF0F1F2F3F4DebugResValues UP-TO-DATE :generateF0F1F2F3F4DebugResValues (Thread[main,5,main]) completed. Took 0.029 se cs. :generateF0F1F2F3F4DebugResources (Thread[main,5,main]) started. :generateF0F1F2F3F4DebugResources Skipping task ':generateF0F1F2F3F4DebugResources' as it has no actions. :generateF0F1F2F3F4DebugResources UP-TO-DATE :generateF0F1F2F3F4DebugResources (Thread[main,5,main]) completed. Took 0.01 sec s. :mergeF0F1F2F3F4DebugResources (Thread[main,5,main]) started. :mergeF0F1F2F3F4DebugResources Executing task ':mergeF0F1F2F3F4DebugResources' (up-to-date check took 2.653 sec s) due to: No history is available. All input files are considered out-of-date for incremental task ':mergeF0F1F2F3F 4DebugResources'. Unable do incremental execution: full task run QueuedCruncher is using C:\Program Files (x86)\Android\android-sdk\build-tools\2 3.0.3\aapt.exe E:\Native Script\Nativescript-NG2-Showcase-master\Nativescript-NG2-Showcase-mast er\platforms\android\build\intermediates\exploded-aar\com.android.support\appcom pat-v7\23.1.0\res\drawable-xxhdpi\abc_textfield_search_activated_mtrl_alpha.9.pn g: Error: File path too long on Windows, keep below 240 characters : E:\Native S cript\Nativescript-NG2-Showcase-master\Nativescript-NG2-Showcase-master\platform s\android\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.1 .0\res\drawable-xxhdpi\abc_textfield_search_activated_mtrl_alpha.9.png :mergeF0F1F2F3F4DebugResources FAILED :mergeF0F1F2F3F4DebugResources (Thread[main,5,main]) completed. Took 6.267 secs.

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 4 mins 6.909 secs Stopped 0 compiler daemon(s).

aecz commented 8 years ago

Error: File path too long on Windows, keep below 240 characters.

Please try to move the project folder to E:\ and try again.

LakshmiEvana commented 8 years ago

Yeah Done. Again giving error on tns run android as below Command \Ref-App\platforms\android\gradlew.bat failed with exit code 1

aecz commented 8 years ago

Please execute again "gradlew.bat buildapk --stacktrace --info" and paste the error here.

LakshmiEvana commented 8 years ago

found file or directory 'E:\Native Script\Ref-App\platforms\android\src\F3\java', not found file or directory 'E:\Native Script\Ref-App\platforms\android\src\F2\java', not found file or directory 'E:\Native Script\Ref-App\platforms\android\src\F1\java', not found file or directory 'E:\Native Script\Ref-App\platforms\android\src\F0\java', not found file or directory 'E:\Native Script\Ref-App\platforms\android\src\F0F1F2F3F4\jav a', not found file or directory 'E:\Native Script\Ref-App\platforms\android\src\debug\java', n ot found file or directory 'E:\Native Script\Ref-App\platforms\android\src\F0F1F2F3F4Debu g\java', not found Executing task ':compileF0F1F2F3F4DebugJavaWithJavac' (up-to-date check took 0.0 5 secs) due to: Output file E:\Native Script\Ref-App\platforms\android\build\intermediates\cla sses\F0F1F2F3F4\debug has changed. Output file E:\Native Script\Ref-App\platforms\android\build\intermediates\cla sses\F0F1F2F3F4\debug\com\tns\gen\android\text\TextWatcher.class has been remove d. Output file E:\Native Script\Ref-App\platforms\android\build\intermediates\cla sses\F0F1F2F3F4\debug\com\tns\gen\android\webkit has been removed. All input files are considered out-of-date for incremental task ':compileF0F1F2F 3F4DebugJavaWithJavac'. Compiling with source level 1.7 and target level 1.7. :compileF0F1F2F3F4DebugJavaWithJavac - is not incremental (e.g. outputs have cha nged, no previous execution, etc.). file or directory 'E:\Native Script\Ref-App\platforms\android\src\F4\java', not found file or directory 'E:\Native Script\Ref-App\platforms\android\src\F3\java', not found file or directory 'E:\Native Script\Ref-App\platforms\android\src\F2\java', not found file or directory 'E:\Native Script\Ref-App\platforms\android\src\F1\java', not found file or directory 'E:\Native Script\Ref-App\platforms\android\src\F0\java', not found file or directory 'E:\Native Script\Ref-App\platforms\android\src\F0F1F2F3F4\jav a', not found file or directory 'E:\Native Script\Ref-App\platforms\android\src\debug\java', n ot found file or directory 'E:\Native Script\Ref-App\platforms\android\src\F0F1F2F3F4Debu g\java', not found Compiling with JDK Java compiler API. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Class dependency analysis for incremental compilation took 0.835 secs. Created jar classpath snapshot for incremental compilation in 3.731 secs. Written jar classpath snapshot for incremental compilation in 0.03 secs. :compileF0F1F2F3F4DebugJavaWithJavac (Thread[main,5,main]) completed. Took 9.643 secs. :compileF0F1F2F3F4DebugNdk (Thread[main,5,main]) started. :compileF0F1F2F3F4DebugNdk Skipping task ':compileF0F1F2F3F4DebugNdk' as it has no source files. :compileF0F1F2F3F4DebugNdk UP-TO-DATE :compileF0F1F2F3F4DebugNdk (Thread[main,5,main]) completed. Took 0.01 secs. :compileF0F1F2F3F4DebugSources (Thread[main,5,main]) started. :compileF0F1F2F3F4DebugSources Skipping task ':compileF0F1F2F3F4DebugSources' as it has no actions. :compileF0F1F2F3F4DebugSources (Thread[main,5,main]) completed. Took 0.0 secs. :buildMetadata (Thread[main,5,main]) started. :buildMetadata Executing task ':buildMetadata' (up-to-date check took 0.09 secs) due to: No history is available. Starting process 'command 'C:\Program Files\Java\jdk1.8.0_102\bin\java.exe''. Wo rking directory: E:\Native Script\Ref-App\platforms\android\build-tools Command: C:\Program Files\Java\jdk1.8.0_102\bin\java.exe -Dfile.encoding=windows-1252 -D user.country=US -Duser.language=en -Duser.variant -jar metadata-generator.jar E: \Native Script\Ref-App\platforms\android/metadata/output/assets/metadata E:\Nati ve Script\Ref-App\platforms\android\libs\runtime-libs\nativescript.aar C:\Users\ Xavica.gradle\caches\modules-2\files-2.1\com.github.gcacace\signature-pad\1.0.3 \6abb1b243fb92ef7b9262c0d648984234037da88\signature-pad-1.0.3.aar C:\Program Fil es (x86)\Android\android-sdk\extras\android\m2repository\com\android\support\rec yclerview-v7\23.1.0\recyclerview-v7-23.1.0.aar E:\Native Script\Ref-App\platform s\android\libs\aar\barcodescanner-release-2.0.1.aar E:\Native Script\Ref-App\pla tforms\android\libs\aar\Chart-2016.2.811-nstrial-release.aar E:\Native Script\Re f-App\platforms\android\libs\aar\Common-2016.2.811-nstrial-release.aar E:\Native Script\Ref-App\platforms\android\libs\aar\Data-2016.2.811-nstrial-release.aar E :\Native Script\Ref-App\platforms\android\libs\aar\Feedback-2016.2.811-nstrial-r elease.aar E:\Native Script\Ref-App\platforms\android\libs\aar\Input-2016.2.811- nstrial-release.aar E:\Native Script\Ref-App\platforms\android\libs\aar\List-201 6.2.811-nstrial-release.aar E:\Native Script\Ref-App\platforms\android\libs\aar\ Primitives-2016.2.811-nstrial-release.aar E:\Native Script\Ref-App\platforms\and roid\libs\aar\widgets-release.aar C:\Program Files (x86)\Android\android-sdk\ext ras\android\m2repository\com\android\support\appcompat-v7\23.1.0\appcompat-v7-23 .1.0.aar C:\Program Files (x86)\Android\android-sdk\extras\android\m2repository\ com\android\support\support-annotations\23.1.0\support-annotations-23.1.0.jar C: \Program Files (x86)\Android\android-sdk\extras\android\m2repository\com\android \support\support-v4\23.1.0\support-v4-23.1.0.aar C:\Program Files (x86)\Android\ android-sdk/platforms/android-23/android.jar E:\Native Script\Ref-App\platforms\ android\build\intermediates\exploded-aar\barcodescanner-release-2.0.1\jars\class es.jar E:\Native Script\Ref-App\platforms\android\build\intermediates\exploded-a ar\Chart-2016.2.811-nstrial-release\jars\classes.jar E:\Native Script\Ref-App\pl atforms\android\build\intermediates\exploded-aar\com.android.support\animated-ve ctor-drawable\23.4.0\jars\classes.jar E:\Native Script\Ref-App\platforms\android \build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.1.0\jars\c lasses.jar E:\Native Script\Ref-App\platforms\android\build\intermediates\explod ed-aar\com.android.support\appcompat-v7\23.4.0\jars\classes.jar E:\Native Script \Ref-App\platforms\android\build\intermediates\exploded-aar\com.android.support\ recyclerview-v7\23.1.0\jars\classes.jar E:\Native Script\Ref-App\platforms\andro id\build\intermediates\exploded-aar\com.android.support\support-v4\23.1.0\jars\c lasses.jar E:\Native Script\Ref-App\platforms\android\build\intermediates\explod ed-aar\com.android.support\support-v4\23.1.0\jars\libs\internal_impl-23.1.0.jar E:\Native Script\Ref-App\platforms\android\build\intermediates\exploded-aar\com. android.support\support-v4\23.4.0\jars\classes.jar E:\Native Script\Ref-App\plat forms\android\build\intermediates\exploded-aar\com.android.support\support-v4\23 .4.0\jars\libs\internal_impl-23.4.0.jar E:\Native Script\Ref-App\platforms\andro id\build\intermediates\exploded-aar\com.android.support\support-vector-drawable\ 23.4.0\jars\classes.jar E:\Native Script\Ref-App\platforms\android\build\interme diates\exploded-aar\com.github.gcacace\signature-pad\1.0.3\jars\classes.jar E:\N ative Script\Ref-App\platforms\android\build\intermediates\exploded-aar\Common-2 016.2.811-nstrial-release\jars\classes.jar E:\Native Script\Ref-App\platforms\an droid\build\intermediates\exploded-aar\Data-2016.2.811-nstrial-release\jars\clas ses.jar E:\Native Script\Ref-App\platforms\android\build\intermediates\exploded- aar\Feedback-2016.2.811-nstrial-release\jars\classes.jar E:\Native Script\Ref-Ap p\platforms\android\build\intermediates\exploded-aar\Input-2016.2.811-nstrial-re lease\jars\classes.jar E:\Native Script\Ref-App\platforms\android\build\intermed iates\exploded-aar\List-2016.2.811-nstrial-release\jars\classes.jar E:\Native Sc ript\Ref-App\platforms\android\build\intermediates\exploded-aar\Primitives-2016. 2.811-nstrial-release\jars\classes.jar E:\Native Script\Ref-App\platforms\androi d\build\intermediates\exploded-aar\showcase\runtime\unspecified\jars\classes.jar E:\Native Script\Ref-App\platforms\android\build\intermediates\exploded-aar\sho wcase\runtime\unspecified\jars\libs\binding-generator.jar E:\Native Script\Ref-A pp\platforms\android\build\intermediates\exploded-aar\widgets-release\jars\class es.jar E:\Native Script\Ref-App\platforms\android\build\intermediates\classes\F0 F1F2F3F4\debug Successfully started process 'command 'C:\Program Files\Java\jdk1.8.0_102\bin\ja va.exe'' Exception in thread "main" java.lang.IllegalArgumentException: Class android.sup port.v7.widget.AppCompatCheckedTextView conflict: E:\Native Script\Ref-App\platf orms\android\build\intermediates\exploded-aar\com.android.support\appcompat-v7\2 3.4.0\jars\classes.jar and E:\Native Script\Ref-App\platforms\android\build\inte rmediates\exploded-aar\com.android.support\appcompat-v7\23.1.0\jars\classes.jar at com.telerik.metadata.ClassRepo.cacheJarFile(ClassRepo.java:21) at com.telerik.metadata.Builder.build(Builder.java:39) at com.telerik.metadata.Generator.main(Generator.java:44) :buildMetadata FAILED :buildMetadata (Thread[main,5,main]) completed. Took 3.683 secs.

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 4 mins 17.911 secs Stopped 0 compiler daemon(s).

aecz commented 8 years ago

Path error seems to be fixed. Ill open a new issue.

3