Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Failed on react-native@0.28.0 #426

Closed
sarovin opened this issue Jul 26, 2016 · 9 comments
Closed

Installation Failed on react-native@0.28.0 #426

sarovin opened this issue Jul 26, 2016 · 9 comments

Comments

@sarovin
Copy link
Contributor

sarovin commented Jul 26, 2016

Hi,
i have follow your installation doc:

npm install react-native-maps --save
rnpm link

and after i set api key.

But i have this error with "react-native run-ios":

 ** BUILD FAILED **

The following build commands failed:
    CompileC /Users/saro/Projects/openshift/FoodAZoneApp/ios/build/Build/Intermediates/AirMaps.build/Debug-iphonesimulator/AirMaps.build/Objects-normal/x86_64/AIRMapCallout.o AirMaps/AIRMapCallout.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

and this error with "react-native run-android":

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Cannot evaluate module react-native-maps : Configuration with name 'default' not found.

Any suggestion?

@linda90321
Copy link

I was having same issue. Any solution?

@linda90321
Copy link

#371 (comment)

@sarovin
Copy link
Contributor Author

sarovin commented Jul 27, 2016

@linda90321
i must update to react-native@0.30 and follow this #411 .

After you must set settings.gradle like this:

include ':react-native-maps:lib'
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/android/lib')

But i have another problem when start app:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp/com.myapp.MainActivity}: java.lang.ClassCastException: android.app.Application cannot be cast to com.facebook.react.ReactApplication
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)

@perkola
Copy link

perkola commented Jul 27, 2016

Having the same problem. React Native v.0.30.0, React Native Maps v.0.7.1 using a blank project and following the instructions.

@sarovin
Copy link
Contributor Author

sarovin commented Jul 27, 2016

yes, it fix.

@perkola
Copy link

perkola commented Jul 27, 2016

@sarovin no this just produces another error for me.

@sarovin
Copy link
Contributor Author

sarovin commented Jul 27, 2016

@perkola
Remove node_modules, ios and android folders.
Repeat instructions.

@gastonf-dev
Copy link

@perkola can you fix the problem?

@perkola
Copy link

perkola commented Aug 17, 2016

@gferreyra91 what fixed it for me was creating a new project and copying over my edited code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants