distriqt / ANE-CustomResources

Android Custom Resources for AIR Applications
https://airnativeextensions.com
15 stars 4 forks source link

Windows build failed GradleWrapper #54

Closed Adrian-S closed 2 years ago

Adrian-S commented 2 years ago

Got the project, got the res icons from push notification example, replaced the values.xml with generated one. Installed Ant, downgraded java from 17 to 1.8 (as per some previous issues), still got error on build_android_windows.

I think gradle is too new for me. I've upgraded it yesterday trough Android Studio, I have not idea to what version or where is located.

Error:

d:\!!!WORK!!!\Agenda ANE CustomResources>java -version
java version "1.8.0_321"
Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)

d:\!!!WORK!!!\Agenda ANE CustomResources>ant
Buildfile: d:\!!!WORK!!!\Agenda ANE CustomResources\build.xml
    [lower] Warning: Nashorn engine is planned to be removed from a future JDK release
   [topath] Warning: Nashorn engine is planned to be removed from a future JDK release

clean:
    [lower] Warning: Nashorn engine is planned to be removed from a future JDK release
   [topath] Warning: Nashorn engine is planned to be removed from a future JDK release

clean_actionscript:
   [delete] Deleting directory d:\!!!WORK!!!\Agenda ANE CustomResources\platform\actionscript\bin
    [lower] Warning: Nashorn engine is planned to be removed from a future JDK release
   [topath] Warning: Nashorn engine is planned to be removed from a future JDK release

clean_default:
   [delete] Deleting directory d:\!!!WORK!!!\Agenda ANE CustomResources\platform\default\bin
    [lower] Warning: Nashorn engine is planned to be removed from a future JDK release
   [topath] Warning: Nashorn engine is planned to be removed from a future JDK release

clean_android:
   [delete] Deleting directory d:\!!!WORK!!!\Agenda ANE CustomResources\platform\android\app

build:
    [lower] Warning: Nashorn engine is planned to be removed from a future JDK release
   [topath] Warning: Nashorn engine is planned to be removed from a future JDK release

build_actionscript:
     [echo] Building actionscript library...
    [compc] Loading configuration: D:\AdobeAIRSDK\frameworks\air-config.xml
    [compc]
    [compc] 2169 bytes written to D:\!!!WORK!!!\Agenda ANE CustomResources\platform\actionscript\bin\distriqt.extension.customresources.swc in 0.601 seconds
     [echo] done
    [lower] Warning: Nashorn engine is planned to be removed from a future JDK release
   [topath] Warning: Nashorn engine is planned to be removed from a future JDK release

build_default:
     [echo] Building default library...
    [compc] Loading configuration: D:\AdobeAIRSDK\frameworks\air-config.xml
    [compc]
    [compc] 2012 bytes written to D:\!!!WORK!!!\Agenda ANE CustomResources\platform\default\bin\distriqt.extension.customresources.default.swc in 0.482 seconds
     [echo] done
    [lower] Warning: Nashorn engine is planned to be removed from a future JDK release
   [topath] Warning: Nashorn engine is planned to be removed from a future JDK release

create_android_project:
    [mkdir] Created dir: d:\!!!WORK!!!\Agenda ANE CustomResources\platform\android\app
     [copy] Copying 4 files to d:\!!!WORK!!!\Agenda ANE CustomResources\platform\android\app
    [mkdir] Created dir: d:\!!!WORK!!!\Agenda ANE CustomResources\platform\android\app\src\main\java\com\distriqt\extension\customresources
     [copy] Copying 2 files to d:\!!!WORK!!!\Agenda ANE CustomResources\platform\android\app\src\main\java\com\distriqt\extension\customresources
    [mkdir] Created dir: d:\!!!WORK!!!\Agenda ANE CustomResources\platform\android\app\src\main\res
     [copy] Copying 29 files to d:\!!!WORK!!!\Agenda ANE CustomResources\platform\android\app\src\main\res
     [copy] Copying 1 file to d:\!!!WORK!!!\Agenda ANE CustomResources\platform\android
     [copy] Copying 1 file to d:\!!!WORK!!!\Agenda ANE CustomResources\platform\android\app\libs

build_android:
     [echo] Building Android library...
    [lower] Warning: Nashorn engine is planned to be removed from a future JDK release
   [topath] Warning: Nashorn engine is planned to be removed from a future JDK release

build_android_osx:
    [lower] Warning: Nashorn engine is planned to be removed from a future JDK release
   [topath] Warning: Nashorn engine is planned to be removed from a future JDK release

build_android_windows:
     [exec] Exception in thread "main" java.lang.RuntimeException: Could not determine wrapper version.
     [exec]     at org.gradle.wrapper.GradleWrapperMain.wrapperVersion(GradleWrapperMain.java:111)
     [exec]     at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
     [exec] Caused by: java.lang.RuntimeException: No build receipt resource found.
     [exec]     at org.gradle.wrapper.GradleWrapperMain.wrapperVersion(GradleWrapperMain.java:97)
     [exec]     ... 1 more
     [exec] Result: 1
     [exec] Exception in thread "main" java.lang.RuntimeException: Could not determine wrapper version.
     [exec]     at org.gradle.wrapper.GradleWrapperMain.wrapperVersion(GradleWrapperMain.java:111)
     [exec]     at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
     [exec] Caused by: java.lang.RuntimeException: No build receipt resource found.
     [exec]     at org.gradle.wrapper.GradleWrapperMain.wrapperVersion(GradleWrapperMain.java:97)
     [exec]     ... 1 more
     [exec] Result: 1

package:
    [lower] Warning: Nashorn engine is planned to be removed from a future JDK release
   [topath] Warning: Nashorn engine is planned to be removed from a future JDK release

package_android:

BUILD FAILED
d:\!!!WORK!!!\Agenda ANE CustomResources\build.xml:228: The following error occurred while executing this line:
d:\!!!WORK!!!\Agenda ANE CustomResources\build.xml:178: Warning: Could not find file d:\!!!WORK!!!\Agenda ANE CustomResources\platform\android\app\build\intermediates\packaged-classes\release\classes.jar to copy.

Total time: 3 seconds
marchbold commented 2 years ago

You no longer need to use this extension, have a look at the new method for including resources in an AIR application:

https://airsdk.dev/docs/tutorials/platform/android/custom-resources

We have stopped maintaining this extension as it's no longer required.

cleverbeapps commented 2 years ago

@marchbold Michael, please, could you mention it everywhere (atleast https://docs.airnativeextensions.com/docs/firebase/setup/configuration-files/#android-values-xml https://github.com/distriqt/ANE-CustomResources ) because it is pain to spend 5 hours to get handle ANE-CustomResources and at the end get this thread, that this ane does not needed anymore))

marchbold commented 2 years ago

It is listed at the top of the readme on https://github.com/distriqt/ANE-CustomResources

I'll make sure the firebase docs are updated, I thought we had done that but not sure what's happened there.

marchbold commented 2 years ago

I've updated these docs now. Thanks for point it out.

cleverbeapps commented 2 years ago

@marchbold thanks for your work and keeping fire burning