Giter VIP home page Giter VIP logo

motator's Issues

build.sh: Auto-detect Android SDK location

Currently the build script sets absolute paths for the Android SDK build tools and android.jar locations:

# TODO: auto-detect android.jar location
ANDROID_JAR=/usr/lib/android-sdk/platforms/android-23/android.jar
# TODO: auto-detect SDK build-tools location
BUILD_TOOLS=/usr/lib/android-sdk/build-tools/27.0.1

These are based on installing sudo apt install android-sdk on Debian 10.10 (Buster) used in both CloudShell and ChromeOS.

I'd like the script to do the following differently:

  1. Inherit variables from environment if already set.
  2. Look in $HOME/android-sdk/
  3. Look for /usr/lib/android-sdk/

There may be some other way to detect the Android SDK location but I haven't found it yet.

Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)

After coming back to this from several months hiatus I find that it no longer builds. I installed the Debian android-sdk, kotlinc (1.5.21) and OSMDroid (6.1.10); javac is version 11.0.12. The error comes from the line that attempts to convert all the compiled classes into Dalvik using the dx in build-tools.

There's no class file listed with the error so I'm at a loss to determine what class is causing this or if it has something to do with the versions of things on my system.

[kotlinc] WARNING: An illegal reflective access operation has occurred

Compiling the Kotlin code always shows this warning:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil to method java.util.ResourceBundle.setParent(java.util.ResourceBundle)
WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

The command-line flag -no-reflect doesn't fix this. The problem doesn't seem to affect the resulting class code at all but I'm not using any special reflection yet either.

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.