Git Product home page Git Product logo

Comments (7)

keyboardsurfer avatar keyboardsurfer commented on August 25, 2024 3

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.

CristianGM avatar CristianGM commented on August 25, 2024 1

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.

andresfabreu avatar andresfabreu commented on August 25, 2024

is it live already?

from app-bundle-samples.

jwitwit avatar jwitwit commented on August 25, 2024

Dear team,

We would appreciate any updates on this issue. Thanks in advance.

from app-bundle-samples.

andresfabreu avatar andresfabreu commented on August 25, 2024

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.

keyboardsurfer avatar keyboardsurfer commented on August 25, 2024

@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.

andresfabreu avatar andresfabreu commented on August 25, 2024

@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)

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.