Skip to main content
Solved

unity 3D Android Resolver Problem


Forum|alt.badge.img+2

After importing the RevenuCat package along side Admob, android resolver in unity runs and runs for like 30 mins and crashes, also happens when importing AdMob after importing RevenuCat

 

Best answer by Vinay Teja Reddy Anthannagari

i solved the problem,

  1. First import AdMob package ,but import only the file inside the folder GoogleMobileAds with the name “GoogleMobileAdsDependencies.xml”
  2. update the dependencies in the file to latest version, point 3 is original file, point 4 is updated file after changing versions
  3. <!--Below is the original file before version change-->
    <dependencies>
      <androidPackages>
        <androidPackage spec="com.google.android.gms:play-services-ads:21.3.0">
          <repositories>
            <repository>https://maven.google.com/</repository>
          </repositories>
        </androidPackage>
        <androidPackage spec="androidx.lifecycle:lifecycle-common-java8:2.4.1">
          <repositories>
            <repository>https://maven.google.com/</repository>
          </repositories>
        </androidPackage>
        <androidPackage spec="androidx.lifecycle:lifecycle-process:2.4.1">
          <repositories>
            <repository>https://maven.google.com/</repository>
          </repositories>
        </androidPackage>
      </androidPackages>
    
      <iosPods>
        <iosPod name="Google-Mobile-Ads-SDK" version="~> 9.11">
          <sources>
            <source>https://github.com/CocoaPods/Specs</source>
          </sources>
        </iosPod>
      </iosPods>
    </dependencies>
  4. <dependencies>
      <androidPackages>
        <androidPackage spec="com.google.android.gms:play-services-ads:21.5.0">
          <repositories>
            <repository>https://maven.google.com/</repository>
          </repositories>
        </androidPackage>
        <androidPackage spec="androidx.lifecycle:lifecycle-common-java8:2.5.1">
          <repositories>
            <repository>https://maven.google.com/</repository>
          </repositories>
        </androidPackage>
        <androidPackage spec="androidx.lifecycle:lifecycle-process:2.5.1">
          <repositories>
            <repository>https://maven.google.com/</repository>
          </repositories>
        </androidPackage>
      </androidPackages>
    
      <iosPods>
        <iosPod name="Google-Mobile-Ads-SDK" version="~> 9.11">
          <sources>
            <source>https://github.com/CocoaPods/Specs</source>
          </sources>
        </iosPod>
      </iosPods>
    </dependencies>

     

  5. then reimport AdMob package ,untick the “GoogleMobileAdsDependencies.xml” file before importing
  6. android resolver will do it’s work
  7. then “Clean Build” the project
  8. Successfully Built and no dependency problem with RevenueCat package.
View original
Did this post help you find an answer to your question?

7 replies

Forum|alt.badge.img+2

Here is the file with error info attached


cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 492 replies
  • February 1, 2023

Hey @Vinay Teja Reddy Anthannagari,

Definitely strange - I’m not sure we have enough context to know if this is directly related the Purchases import. What method of installation are you using? Are you able to compile with each of the packages individually?


Forum|alt.badge.img+2

Yes, each of the packages are successfully compiled ,but when one after the other is imported then I get these errors


Forum|alt.badge.img+2
cody wrote:

Hey @Vinay Teja Reddy Anthannagari,

Definitely strange - I’m not sure we have enough context to know if this is directly related the Purchases import. What method of installation are you using? Are you able to compile with each of the packages individually?

Yes, each of the packages are successfully compiled ,but when one after the other is imported then I get these errors, i have to release the game in 15 days, need solution ASAP  for this


Forum|alt.badge.img+2
cody wrote:

Hey @Vinay Teja Reddy Anthannagari,

Definitely strange - I’m not sure we have enough context to know if this is directly related the Purchases import. What method of installation are you using? Are you able to compile with each of the packages individually?

Hi, able to successfully build the project by deduplicating the imported library files manually, did not test till now if it is working or not, will test before release and post here 🙏


Forum|alt.badge.img+2

Does not work, error all the time, given up


Forum|alt.badge.img+2

i solved the problem,

  1. First import AdMob package ,but import only the file inside the folder GoogleMobileAds with the name “GoogleMobileAdsDependencies.xml”
  2. update the dependencies in the file to latest version, point 3 is original file, point 4 is updated file after changing versions
  3. <!--Below is the original file before version change-->
    <dependencies>
      <androidPackages>
        <androidPackage spec="com.google.android.gms:play-services-ads:21.3.0">
          <repositories>
            <repository>https://maven.google.com/</repository>
          </repositories>
        </androidPackage>
        <androidPackage spec="androidx.lifecycle:lifecycle-common-java8:2.4.1">
          <repositories>
            <repository>https://maven.google.com/</repository>
          </repositories>
        </androidPackage>
        <androidPackage spec="androidx.lifecycle:lifecycle-process:2.4.1">
          <repositories>
            <repository>https://maven.google.com/</repository>
          </repositories>
        </androidPackage>
      </androidPackages>
    
      <iosPods>
        <iosPod name="Google-Mobile-Ads-SDK" version="~> 9.11">
          <sources>
            <source>https://github.com/CocoaPods/Specs</source>
          </sources>
        </iosPod>
      </iosPods>
    </dependencies>
  4. <dependencies>
      <androidPackages>
        <androidPackage spec="com.google.android.gms:play-services-ads:21.5.0">
          <repositories>
            <repository>https://maven.google.com/</repository>
          </repositories>
        </androidPackage>
        <androidPackage spec="androidx.lifecycle:lifecycle-common-java8:2.5.1">
          <repositories>
            <repository>https://maven.google.com/</repository>
          </repositories>
        </androidPackage>
        <androidPackage spec="androidx.lifecycle:lifecycle-process:2.5.1">
          <repositories>
            <repository>https://maven.google.com/</repository>
          </repositories>
        </androidPackage>
      </androidPackages>
    
      <iosPods>
        <iosPod name="Google-Mobile-Ads-SDK" version="~> 9.11">
          <sources>
            <source>https://github.com/CocoaPods/Specs</source>
          </sources>
        </iosPod>
      </iosPods>
    </dependencies>

     

  5. then reimport AdMob package ,untick the “GoogleMobileAdsDependencies.xml” file before importing
  6. android resolver will do it’s work
  7. then “Clean Build” the project
  8. Successfully Built and no dependency problem with RevenueCat package.

Did this post help you find an answer to your question?

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings