Obsolete
Status Update
Comments
uc...@google.com <uc...@google.com> #2
not reproduced .
st...@gmail.com <st...@gmail.com> #3
The device is a Samsung Galaxy S7 running Android N
uc...@google.com <uc...@google.com>
an...@google.com <an...@google.com> #4
Stephen,
Have you tried using Nexus/Pixel device? This should work with those devices. Please let us know.
Have you tried using Nexus/Pixel device? This should work with those devices. Please let us know.
sp...@demicapps.com <sp...@demicapps.com> #5
I don't own those devices, but I am really looking to reach the larger Android N family of devices in general
ma...@google.com <ma...@google.com> #6
Hi Stephen, do you mind sharing your apk with us? We'd like to reproduce this and solve your problem.
sp...@demicapps.com <sp...@demicapps.com> #7
Hi,
I just followed the steps again, creating a new project with both Instant App and C++ support, and the resulting project published as both a regular App (shows 'Hello from C++') and an Instant App (shows 'Open App' and 'Open in Browser' options).
So this issue appears to be fixed in Android Studio 3.0 Beta 6 / Build Tools 26.0.1... I still need to test my actual app that utilizes C++, but if I run into any other issues I can report them separately.
Thanks!
- Stephen
I just followed the steps again, creating a new project with both Instant App and C++ support, and the resulting project published as both a regular App (shows 'Hello from C++') and an Instant App (shows 'Open App' and 'Open in Browser' options).
So this issue appears to be fixed in Android Studio 3.0 Beta 6 / Build Tools 26.0.1... I still need to test my actual app that utilizes C++, but if I run into any other issues I can report them separately.
Thanks!
- Stephen
sp...@demicapps.com <sp...@demicapps.com> #8
Just an update - this bug still persists in Android Studio 3.0 beta6.
The above comment true, but the crash happens when you click 'Open App'
The above comment true, but the crash happens when you click 'Open App'
ja...@google.com <ja...@google.com> #9
Bug hasn't been updated in nearly 1.5 years. If this is still needed please, re-open.
a....@arproduction.ru <a....@arproduction.ru> #10
I am facing exact same issue. My instant app uses native libs one of them loads at onCreate. And on ASUS ZB602KL (Android 9) all goes fine. But on Samsung s6 edge (Android 7) and other less Android O devices crush happen because System.loadLibrary() try to finds so file in strange place:
dlopen failed: library "/data/user/0/com.google.android.instantapps.supervisor/files/native-lib/ru.arproduction.mmrs/110/libEasyAR.so" not found
I was trying to adb list that directory /data/user/0 but there is no such place on devices or permission denied.
On Samsung s6 edge (Android 7) I have Google Play services for Instant Apps (Version 6.08-release-335882674)
dlopen failed: library "/data/user/0/com.google.android.instantapps.supervisor/files/native-lib/ru.arproduction.mmrs/110/libEasyAR.so" not found
I was trying to adb list that directory /data/user/0 but there is no such place on devices or permission denied.
On Samsung s6 edge (Android 7) I have Google Play services for Instant Apps (Version 6.08-release-335882674)
Description
Android Studio 3.0 Canary 1
Build #AI-171.4010489, built on May 15, 2017
Version of Gradle Plugin:
3.0.0-alpha1
Version of Gradle:
distributionUrl=https\://
Version of Java:
JRE: 1.8.0_112-release-b736 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
OS:
macOS Sierra (Version 10.12.3)
Steps to Reproduce:
1. Open Android Studio 3.0
2. Click File > New > New Project
3. check 'Include C++ support' on the first page of the wizard then click 'Next'
4. check 'Phone and Tablet' and 'Include Android Instant App support' on the second page of the wizard then click 'Next'
5. on page 3, leave defaults and click 'Next'
6. on page 4, leave defaults and click 'Next'
7. on page 5, leave defaults and click 'Next'
8. on page 6, select 'C++11' for the C++ Standard dropdown
9. Check 'Exceptions Support (-fexceptions)' and 'Runtime Type Information Support (-frtti)'
10. Click 'Next' and wait for project to build
11. Change the build dropdown from 'instantapp' to 'app'
12. Click the 'play' icon
13. Observe the device/simulator displays the 'Hello from C++' screen
14. Change the build dropdown from 'app' to 'instantapp'
15. Click the 'play' icon for the 'instantapp' build, select valid device/emulator
16. Observe on device/emulator 'Open With' interface
17. Select the name of the instant app
18. Observe crash: 'Unfortunatley, <app name> instant app has stopped.
19. Observe Logcat error: 'couldn't find "libnative-lib.so'
Expected Result:
App should publish and find the native C++ library the same way the installed app does.
Further discussion: