Giter VIP home page Giter VIP logo

Comments (10)

miniman42 avatar miniman42 commented on July 25, 2024 1

Hi Ani, Appc have recognised the issue (due to incorrectly packaged GPS jars in the SDK source) - see: https://jira.appcelerator.org/browse/TIMOB-26131 - a bit of effort but we got there!
Workaround for now is to delete the 4 GPS jars from the SDK directly as they are loaded dynamically (if present) by the apk runtime.

from ti.goosh.

miniman42 avatar miniman42 commented on July 25, 2024

Anyone had any luck building with latest SDK?

from ti.goosh.

progress44 avatar progress44 commented on July 25, 2024

Hi @miniman42 I just tried building the module with the Titanium SDK version 7.1.0 and it builds and works just fine. You can use the latest release though. Don't need to build it yourself if that's causing problems.

Let me know how it goes

from ti.goosh.

miniman42 avatar miniman42 commented on July 25, 2024

I just tried again - cloned the repo and built locally and still getting the above issue so now I need to understand why it doesn't work (and does no problem for SDK 7.0.2).

I have forked the repo to add some minor updates for our use case so I do need to be able to build it myself so would really appreciate any pointers. Note: for the purpose of testing the issue I am using the master repo and not our fork - to avoid any doubt!

Here's my tooling in case that points to any obvious issue, any suggestions greatly appreciated!

Operating System
Name = Mac OS X
Version = 10.13.4
Architecture = 64bit

CPUs = 8

Memory = 16.0GB

Node.js
Node.js Version = 8.5.0
npm Version = 5.4.2

Appcelerator CLI
Installer = 4.2.12
Core Package = 7.0.2

Titanium CLI
CLI Version = 5.0.14
node-appc Version = 0.2.41

Titanium SDKs
7.1.0.GA
Version = 7.1.0
Install Location = /Users/XXX/Library/Application Support/Titanium/mobilesdk/osx/7.1.0.GA
Platforms = iphone, android
git Hash = df92fbf
git Timestamp = 3/14/2018 20:46
node-appc Version = 0.2.43

Java Development Kit
Version = 1.8.0_162
Java Home = /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home

Android SDK
Android Executable = not found
ADB Executable = /Users/XXX/Library/android-sdk-macosx/platform-tools/adb
SDK Path = /Users/XXX/Library/android-sdk-macosx

Android NDK
0NDK Path = /Users/XXX/Tools/android-ndk/android-ndk-r16b
NDK Version = 16.1.4479499

Android Platforms

  1. android-25
    Name = Android 7.1.1
    API Level = 25
    Revision = 2
    Skins = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in, AndroidWearRound, AndroidWearRound360x360, AndroidWearRound400x400, AndroidWearRound480x480, AndroidWearRoundChin320x290, AndroidWearRoundChin320x300, AndroidWearRoundChin360x325, AndroidWearRoundChin360x326, AndroidWearRoundChin360x330, AndroidWearSquare, AndroidWearSquare240x240, AndroidWearSquare320x320
    ABIs = x86, armeabi-v7a, arm64-v8a, x86_64
    Path = /Users/XXX/Library/android-sdk-macosx/platforms/android-25
  2. android-26
    Name = Android 8.0.0 (not supported by Titanium SDK 7.1.0.GA, but may work)
    API Level = 26
    Revision = 1
    Skins = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in
    ABIs = x86
    Path = /Users/XXX/Library/android-sdk-macosx/platforms/android-26

from ti.goosh.

progress44 avatar progress44 commented on July 25, 2024

Can you create a PR with your updates so I can try building it?

from ti.goosh.

miniman42 avatar miniman42 commented on July 25, 2024

Hey Ani, the output above is from the master branch - ie without my updates! I’ve no idea why it won’t build anymore, even as I said with a clean clone of the goosh repo. Nothing else I build has a problem. The only thing I can think is that perhaps as a result of the ti.playservices module now being included as a dependent module, that some of the classes may be deprecated when we use a later version of playservices (appc are using a really old version atm until they figure a clean way to force users to download the latest version). I’ve updated to a later version (11.8 I think- I’m not on my Mac atm) of playservices in our app, as we use google FIT apis and the later google sign in apis. So perhaps that’s the cause! If that’s the case the mod will need an update soon to support current GPS as appc have an update coming soon AFAIK.

from ti.goosh.

miniman42 avatar miniman42 commented on July 25, 2024

Hi Ani, I got a chance to look at this again today. I can indeed build the module if I specify the SDK bundled ti.playservices module version 11.0.40 as the specific module dep in the timodule.xml. Curiously this is not necessary pre Ti SDK 7.1.0 as the module will build perfectly using an updated ti.playservices dependency.

We use an updated ti.playservices with GPS V11.8.0 from this PR (tidev/ti.playservices#9) as we need other updated libs in GPS (e.g. fit etc..). Ti.Goosh builds perfectly with this when using SDK 7.0.2, however the error above starts to happen when SDK versions higher than 7.0.2 are used.

I'm not sure I understand why this is happening, as clearly the module can be built when depending on the updated GPS jars/aars. Have you any thoughts on how to resolve? Is this an SDK bug possibly?

from ti.goosh.

miniman42 avatar miniman42 commented on July 25, 2024

I've filed an issue with Appcelerator to see if they can help : https://jira.appcelerator.org/browse/AC-5748

from ti.goosh.

progress44 avatar progress44 commented on July 25, 2024

I'll try to build the module with the updated GPS you mention and I'll get back to you. It seems strange though because the Intent class where you're getting the errors is not under the GPS namespace. It's an android feature.

from ti.goosh.

progress44 avatar progress44 commented on July 25, 2024

@miniman42 That's great. Closing the issue.

from ti.goosh.

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.