Comments (7)
We're aware of this and have been working on a fix that will be rolled out with one of the next Android Studio 4.0 canary builds.
from app-bundle-samples.
I had the same issue, we are keeping our project on AGP 3.4.2
Using any newer AGP fails, I got it working by adding androidTestImplementation(project(":..."))
for each module we need resources from, but, then it crashed on execution on each test with:
Attempt to invoke virtual method 'void androidx.appcompat.widget.ContentFrameLayout.setId(int)' on a null object reference
at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:845)
at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:659)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:552)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161)
at com.anuntis.fotocasa.v5.base.bottombar.view.BottomBarActivity.onCreate(BottomBarActivity.kt:30)
I feel like running UI Tests on dynamic features, sadly, hasn't been really part of the plan at all.
from app-bundle-samples.
is it live already?
from app-bundle-samples.
Dear team,
We would appreciate any updates on this issue. Thanks in advance.
from app-bundle-samples.
Still not working, I tried today with:
Android Studio 4.1 Canary 6
Build #AI-193.6911.18.41.6381907, built on April 9, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.4
GC: ParNew, ConcurrentMarkSweep
Memory: 8108M
Cores: 12
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: Lombook Plugin, org.jetbrains.kotlin, com.thoughtworks.gauge, org.intellij.plugins.markdown, wu.seal.tool.jsontokotlin)
And I get the error, running through AS. If I run via ./gradlew it works, but I'm not able to debug:
INSTRUMENTATION_FAILED: myapp.qa.test/android.test.InstrumentationTestRunnerandroid.util.AndroidException: INSTRUMENTATION_FAILED: myapp.qa.test/android.test.InstrumentationTestRunner
Error Unable to find instrumentation info for: ComponentInfo{myapp.qa.test/android.test.InstrumentationTestRunner}
idActivityManagerService at com.android.commands.am.Instrument.run(Instrument.java:486)
at com.android.commands.am.Am.runInstrument(Am.java:194)
at com.android.commands.am.Am.onRun(Am.java:80)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:54)
at com.android.commands.am.Am.main(Am.java:50)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:340)
from app-bundle-samples.
@andresfabreu can you verify the issue on the samples in this repository with either Android Studio 4.0 Beta 4 or 4.1 Canary 6.
If this is not related to samples in this repository directly, take a look at this bug.
from app-bundle-samples.
@keyboardsurfer I was able to run with the Beta version, thx.
Android Studio 4.0 Beta 4
Build #AI-193.6911.18.40.6348893, built on March 30, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.4
GC: ParNew, ConcurrentMarkSweep
Memory: 1237M
Cores: 12
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: Lombook Plugin, org.jetbrains.kotlin, com.thoughtworks.gauge, org.intellij.plugins.markdown, wu.seal.tool.jsontokotlin
Now I'm able to run instrumental and unit tests with dynamic features.
from app-bundle-samples.
Related Issues (20)
- Duplicate class in play.core On Build Unity 2020 LTS
- AAssetManager cannot handle a pack nearly 2GB on 32 bit device
- Resource Not Found Exception
- Q: Instant Apps
- dynamic-feature mlkit translate
- Resource Not Found Relaunch Application on-Demand Dynamic Feature Module HOT 4
- Resources$NotFoundException HOT 4
- Sample code at app-bundle-samples/PlayAssetDelivery/NativeSample/ not generating all standalone apks HOT 1
- Play Asset Delivery Error Code does not match HOT 1
- Can PAD deliver SO?
- Security Policy violation Binary Artifacts HOT 28
- I want put all arr files to dynamic feature module, but have question
- Question: Would the install-time delivery still violate the maximum size limitation?
- GoogleAnalytics sample app build fails with "Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible"
- ContentProvider in dynamic module HOT 1
- What about the assets file in the aar package?
- Dynamic feature UnsatisfiedLinkError
- Error receiving broadcast Intent
- How to customise downloading UI for on demand instant modules
- When I use Admob in dynamic feature module, the project build failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from app-bundle-samples.