Code Monkey home page Code Monkey logo

Comments (13)

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

πŸ€·β€β™‚οΈ Hard to say. I didn't had this issue.

But from the top of my head you can try 2 things:

  • Try resync Gradle in Android Studio. It often takes 2 tries to load the modules
  • Try from the menu "File" -> "Invalidate Caches / Restart" Android Studio

I'll try to look into this next week if you can't solve it before.

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

https://stackoverflow.com/questions/51433769/why-android-gradle-maven-publish-artifact-bundlerelease-not-found

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

Which version of com.android.tools.build:gradle:x.x.x do you use.

That is the first part of my MY_APP/android/build.gradle.

buildscript {

  repositories {
    google()
    jcenter()
  }
  dependencies {
    classpath 'com.android.tools.build:gradle:3.1.4'


    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
  }
}

from generic-oauth2.

leshik avatar leshik commented on August 10, 2024

I tried different versions (3.1.4 as well as 3.2.1) but no luck unfortunately. Restart / Invalidate didn't help. I was able to make it work by deleting all stuff related to publishing, but now a different struggle:

error: cannot access AppCompatActivity
class file for android.support.v7.app.AppCompatActivity not found

That's in Oauth2ClientPlugin.java.

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

Sry but I have no idea.

Which android version do you target?
Do you build for simulator or real device?
Which versions of Capacitor and other relevant libs do you use?

from generic-oauth2.

leshik avatar leshik commented on August 10, 2024

I target SDK version 27, building for the simulator (but just "Make Project" also fails).
Capacitor is 1.0.0-beta.8, other dependencies are:

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support:cardview-v7:27.1.1'
    implementation 'com.android.support:customtabs:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation project(':capacitor-android')
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation project(':capacitor-android-plugins')
    implementation 'com.google.firebase:firebase-core:16.0.5'
    implementation 'com.google.firebase:firebase-messaging:17.3.4'
    implementation 'com.android.support:support-v4:27.1.1'
    implementation 'com.facebook.android:facebook-login:[4,5)'
}

from generic-oauth2.

leshik avatar leshik commented on August 10, 2024

Ok, both issues solved, the first one by changing bundleRelease to bundleReleaseAar; the second – by adding implementation 'com.android.support:appcompat-v7:27.1.1' to the plugin dependencies. Seems that my project uses it somewhere and if it doesn't exist in dependencies of the plugin, the build fails.

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

Great :). I was to slow ;).

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

the second – by adding implementation 'com.android.support:appcompat-v7:27.1.1' to the plugin dependencies. Seems that my project uses it somewhere and if it doesn't exist in dependencies of the plugin, the build fails.

Do you have any idea why its needed in the plugins dependencies. The plugin does not even use the class android.support.v7.app.AppCompatActivity?

from generic-oauth2.

leshik avatar leshik commented on August 10, 2024

No idea, but maybe it’s somehow related to Capacitor, because it depends on it for some reason: https://github.com/ionic-team/capacitor/blob/master/android-template/app/build.gradle#L32

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

I close this for now and try to remember the issues when upgrading to Capacitor beta11 #11. Maybe I can tackle the issues with the integration.

from generic-oauth2.

leshik avatar leshik commented on August 10, 2024

@moberwasserlechner Sure, JFYI it works fine with beta.11.

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

@leshik thx for letting me know :)

from generic-oauth2.

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.