A demo application for martoreto/aauto-sdk
.
Well, you probably need to enable unknown sources in Android Auto developer settings, see the official documentation.
Android Auto SDK Demo App
A demo application for martoreto/aauto-sdk
.
Well, you probably need to enable unknown sources in Android Auto developer settings, see the official documentation.
Hello, Thank you for this application, but I can't run it! This is the message will be appear
"error running 'app': Default Activity not found"
Have you pleased a solution for this error?
Thanks a lot.
App compiled against com.github.martoreto:aauto-sdk:v4.2 causes constant crashes on start. Just black screen is shown.
11-28 20:02:00.442 4777-17284/? I/ActivityManager: Start proc 13974:com.github.martoreto.aademo/u0a670 for service com.github.martoreto.aademo/.CarService
11-28 20:02:00.592 13974-13974/com.github.martoreto.aademo I/ApiFactory: Initialized ApiFactory to load from remote APK
11-28 20:02:00.896 13974-13974/com.github.martoreto.aademo W/zygote64: Unsupported class loader
11-28 20:02:00.904 13974-13974/com.github.martoreto.aademo I/DynamicApiFactory: Will load car API impls dynamically from com.google.android.projection.gearhead
11-28 20:02:00.918 13974-13974/com.github.martoreto.aademo I/CAR.CLIENT: SdkVersion: 4 ImplVersion: 4
11-28 20:02:01.015 13974-13987/com.github.martoreto.aademo W/DynamiteModule: Local module descriptor class for com.google.android.gms.googlecertificates not found.
11-28 20:02:01.020 13974-13987/com.github.martoreto.aademo W/zygote64: Unsupported class loader
11-28 20:02:01.022 13974-13987/com.github.martoreto.aademo W/zygote64: Skipping duplicate class check due to unsupported classloader
11-28 20:02:01.024 13974-13987/com.github.martoreto.aademo I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:4
11-28 20:02:01.024 13974-13987/com.github.martoreto.aademo I/DynamiteModule: Selected remote version of com.google.android.gms.googlecertificates, version >= 4
11-28 20:02:01.047 13974-13987/com.github.martoreto.aademo W/zygote64: Unsupported class loader
11-28 20:02:01.048 13974-13987/com.github.martoreto.aademo W/zygote64: Skipping duplicate class check due to unsupported classloader
11-28 20:02:01.127 4777-17287/? I/DisplayManagerService: Display device added: DisplayDeviceInfo{"com.github.martoreto.aademo/com.github.martoreto.aademo.MainCarActivity": uniqueId="virtual:com.github.martoreto.aademo,10670,com.github.martoreto.aademo/com.github.martoreto.aademo.MainCarActivity,0", 800 x 400, modeId 41, defaultModeId 41, supportedModes [{id=41, width=800, height=400, fps=60.0}], colorMode 0, supportedColorModes [0], HdrCapabilities null, density 160, 160.0 x 160.0 dpi, appVsyncOff 0, presDeadline 16666666, touch NONE, rotation 0, type VIRTUAL, state ON, owner com.github.martoreto.aademo (uid 10670), FLAG_PRIVATE, FLAG_NEVER_BLANK, FLAG_PRESENTATION, FLAG_OWN_CONTENT_ONLY}
11-28 20:02:01.128 13974-13974/com.github.martoreto.aademo D/AndroidRuntime: Shutting down VM
11-28 20:02:01.131 13974-13974/com.github.martoreto.aademo E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.github.martoreto.aademo, PID: 13974
java.lang.RuntimeException: Exception while instantiating class com.github.martoreto.aademo.MainCarActivity
at com.google.android.gms.car.internal.CarActivityHostImpl.a(CarActivityHostImpl.java:429)
at com.google.android.gms.car.internal.CarActivityHostImpl.a(CarActivityHostImpl.java:205)
at com.google.android.gms.car.internal.CarActivityHostImpl.a(CarActivityHostImpl.java:595)
at com.google.android.gms.car.internal.i.run(CarActivityHostImpl.java:2)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.NoSuchMethodException: <init> []
at java.lang.Class.getConstructor0(Class.java:2320)
at java.lang.Class.getConstructor(Class.java:1725)
at com.google.android.gms.car.internal.CarActivityHostImpl.a(CarActivityHostImpl.java:426)
at com.google.android.gms.car.internal.CarActivityHostImpl.a(CarActivityHostImpl.java:205)
at com.google.android.gms.car.internal.CarActivityHostImpl.a(CarActivityHostImpl.java:595)
at com.google.android.gms.car.internal.i.run(CarActivityHostImpl.java:2)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
11-28 20:02:01.133 13974-13974/com.github.martoreto.aademo E/CAR.CLIENT.EXN: FATAL EXCEPTION: main
Process: com.github.martoreto.aademo
PID: 13974
java.lang.RuntimeException: Exception while instantiating class com.github.martoreto.aademo.MainCarActivity
at com.google.android.gms.car.internal.CarActivityHostImpl.a(CarActivityHostImpl.java:429)
at com.google.android.gms.car.internal.CarActivityHostImpl.a(CarActivityHostImpl.java:205)
at com.google.android.gms.car.internal.CarActivityHostImpl.a(CarActivityHostImpl.java:595)
at com.google.android.gms.car.internal.i.run(CarActivityHostImpl.java:2)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.NoSuchMethodException: <init> []
at java.lang.Class.getConstructor0(Class.java:2320)
at java.lang.Class.getConstructor(Class.java:1725)
at com.google.android.gms.car.internal.CarActivityHostImpl.a(CarActivityHostImpl.java:426)
at com.google.android.gms.car.internal.CarActivityHostImpl.a(CarActivityHostImpl.java:205)
at com.google.android.gms.car.internal.CarActivityHostImpl.a(CarActivityHostImpl.java:595)
at com.google.android.gms.car.internal.i.run(CarActivityHostImpl.java:2)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Reported working with 25.2.0 appcompat-v7 and support-v4.
Thanks to @borconi for pointing it out.
Hei Guys
I tried to import and use the demo app. But I'm not able to load it into the emulator or into my device as it couldn't find a "Default Activity" in the AndroidManifest. Any suggestions what I'm doing wrong? Or what I need to do that I can work on it? Thanks!
Sadly on my car I cannot see the demo option after build it. I tried to change the package name too, but didn't work. On PC, with the same smarthpone and app, with AA emulator works perfectly. How is it possible?
I downgraded AA to 2.9 version, but I cannot downgrade the google play services.
Failed to compile when running command
./gradlew assembleDebug
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/apps/auto/sdk/ui/R$attr;
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.