Code Monkey home page Code Monkey logo

Comments (9)

marchbold avatar marchbold commented on September 20, 2024

Looks like your JVM is running out of memory. Nothing to do with ANEs as far as I can see.

Is this in intellij? Have a look here: airsdk/Adobe-Runtime-Support#1426 (reply in thread)

from ane-androidsupport.

davecates avatar davecates commented on September 20, 2024

I'm getting the same fault - on a new Mac with 64GB RAM so no chance of running out of resources :)

It's the API version being out of date with the latest Android build tools? ANE has 1.4 but tools are looking for 1.5?

Any ideas?

from ane-androidsupport.

davecates avatar davecates commented on September 20, 2024

Here's my output:

java.io.IOException: Unable to run java: com.adobe.air.ADTException: gradle tool failed: w: Runtime JAR files in the classpath have the version 1.4, which is older than the API version 1.5. Consider using the runtime of version 1.5, or pass '-api-version 1.4' explicitly to restrict the available APIs to the runtime of version 1.4. You can also pass '-language-version 1.4' instead, which will restrict not only the APIs to the specified version, but also the language features
w: /private/var/folders/5z/p1tz8lvd09nb0ywgkwy7y1w80000gn/T/d74129ea-dc6d-4199-9a27-3696dafc6d15/app/libs/kotlin-stdlib-jdk7-1.4.10.jar: Runtime JAR file has version 1.4 which is older than required for API version 1.5
w: /private/var/folders/5z/p1tz8lvd09nb0ywgkwy7y1w80000gn/T/d74129ea-dc6d-4199-9a27-3696dafc6d15/app/libs/kotlin-stdlib-common-1.4.10.jar: Runtime JAR file has version 1.4 which is older than required for API version 1.5
w: /private/var/folders/5z/p1tz8lvd09nb0ywgkwy7y1w80000gn/T/d74129ea-dc6d-4199-9a27-3696dafc6d15/app/libs/kotlin-stdlib-1.4.10.jar: Runtime JAR file has version 1.4 which is older than required for API version 1.5
w: Runtime JAR files in the classpath have the version 1.4, which is older than the API version 1.5. Consider using the runtime of version 1.5, or pass '-api-version 1.4' explicitly to restrict the available APIs to the runtime of version 1.4. You can also pass '-language-version 1.4' instead, which will restrict not only the APIs to the specified version, but also the language features
w: /private/var/folders/5z/p1tz8lvd09nb0ywgkwy7y1w80000gn/T/d74129ea-dc6d-4199-9a27-3696dafc6d15/app/libs/kotlin-stdlib-jdk7-1.4.10.jar: Runtime JAR file has version 1.4 which is older than required for API version 1.5
w: /private/var/folders/5z/p1tz8lvd09nb0ywgkwy7y1w80000gn/T/d74129ea-dc6d-4199-9a27-3696dafc6d15/app/libs/kotlin-stdlib-common-1.4.10.jar: Runtime JAR file has version 1.4 which is older than required for API version 1.5
w: /private/var/folders/5z/p1tz8lvd09nb0ywgkwy7y1w80000gn/T/d74129ea-dc6d-4199-9a27-3696dafc6d15/app/libs/kotlin-stdlib-1.4.10.jar: Runtime JAR file has version 1.4 which is older than required for API version 1.5
/private/var/folders/5z/p1tz8lvd09nb0ywgkwy7y1w80000gn/T/d74129ea-dc6d-4199-9a27-3696dafc6d15/app/src/main/AndroidManifest.xml:139: Error: HmsMessageServiceOneSignal must extend android.app.Service [Instantiatable]
android:name="com.onesignal.HmsMessageServiceOneSignal"

from ane-androidsupport.

Shaunmax avatar Shaunmax commented on September 20, 2024

I'm getting the same fault - on a new Mac with 64GB RAM so no chance of running out of resources :)

It's the API version being out of date with the latest Android build tools? ANE has 1.4 but tools are looking for 1.5?

Any ideas?

try increasing compiler heap size
image

Error: HmsMessageServiceOneSignal must extend android.app.Service [Instantiatable] android:name="com.onesignal.HmsMessageServiceOneSignal"

remove the below block from manifest xml :


<service
            android:name="com.onesignal.HmsMessageServiceOneSignal"
            android:exported="false" >
            <intent-filter>
                <action android:name="com.huawei.push.action.MESSAGING_EVENT" />
            </intent-filter>
        </service>

        <activity
            android:name="com.onesignal.NotificationOpenedActivityHMS"
            android:noHistory="true"
            android:theme="@android:style/Theme.Translucent.NoTitleBar" >
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
            </intent-filter>
        </activity>

from ane-androidsupport.

Shaunmax avatar Shaunmax commented on September 20, 2024

For more information please follow this link airsdk/Adobe-Runtime-Support#1426 (reply in thread)

Duplicate of #1426

from ane-androidsupport.

davecates avatar davecates commented on September 20, 2024

This doesn't fix the issue for me.

from ane-androidsupport.

marchbold avatar marchbold commented on September 20, 2024

@davecates Did you remove the Huawei service? HmsMessageServiceOneSignal

That looks like the error you are seeing in that log.

from ane-androidsupport.

davecates avatar davecates commented on September 20, 2024

Yes, sure did. Still getting the 1.4 vs 1.5 error though...will investigate further but thought I'd let you know.

from ane-androidsupport.

marchbold avatar marchbold commented on September 20, 2024

That one isn't an error, just a warning and is safe to ignore. There will be an error after the warnings.

from ane-androidsupport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.